⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 write.php

📁 php写的论坛,代码精简到极点 请相看说明文件。是从英文翻译过来的:)
💻 PHP
字号:
<?/*

======================================================
write form
======================================================

*/?>
 
 
 
<?
//////////////////////////////////////////////////when write
if($mode=="write"){
$subject="Write Article";//title
$button="<input type=image src=$skin/button_write.gif onfocus=this.blur()>";//button
}

//////////////////////////////////////////////////when edit
if($mode=="edit"){
$subject="Edit Article";//title
$button="<input type=image src=$skin/button_edit.gif onfocus=this.blur()>";//button
}

//////////////////////////////////////////////////when reply
if($mode=="reply"){
$subject="Reply Article";//title
$button="<input type=image src=$skin/button_reply.gif onfocus=this.blur()>";//button
}

//////////////////////////////////////////////////form
$form_title="$re_mark<input type=text name=title class=input size=40 value=\"$title_value\">";
$form_name="<input type=text name=name class=input size=15 value=\"$name_value\" $name_readonly>";
$form_mail="<input type=text name=mail class=input size=40 value=\"$mail_value\">";
$form_home="<input type=text name=home class=input size=40 value=\"$home_value\">";
$form_pass="<input type=password name=pass class=input size=10>";

$form_reply="<label for=reply>Reply mail</label> <input id=reply type=checkbox name=remail value=1 $remail_value> ";
$form_html="<label for=html>Use HTML</label> <input id=html type=checkbox name=html value=1 $html_value>";
$form_secret="<label for=secret>Secret</label> <input id=secret type=checkbox name=secret value=1 $secret_value>";
if($notice_enable){$form_notice="<label for=notice>Notice</label> <input id=notice type=checkbox name=notice value=1 $notice_value>";}
$form_attach1="<input type=file name=attach class=input  style=\"width=80%\">";
$form_attach2="<input type=file name=attach2 class=input  style=\"width=80%\">";
$form_link1="<input type=text name=link class=input style=\"width=80%\" value='$link1_value'>";
$form_link2="<input type=text name=link2 class=input style=\"width=80%\" value='$link2_value'>";
?>

<table align=center width=450 cellpadding=2 cellspacing=0 border=0>
<tr><td colspan=2 bgcolor=white>&nbsp;<font size=4 color=gray><b><?=$subject?></b></font></td></tr>
</table>

<table align=center width=450 cellpadding=0 cellspacing=0 border=0 background=<?=$skin?>/title_bg.gif>
<tr>
<td width=50%><img src=<?=$skin?>/title_left.gif></td>
<td width=50% align=right><img src=<?=$skin?>/title_right.gif></td>
</tr>
</table>

<table width=440 cellpadding=1 cellspacing=1 align=center>
<?include"$skin/write_form.php";///////////member check?>
<tr>
<td bgcolor=#eeeeee width=1% nowrap>&nbsp;Title&nbsp;</td>
<td width=98%>&nbsp;<?=$form_title?></td>
<td width=1% align=right nowrap>&nbsp;<?=$form_secret?> <?=$form_notice?></td>
</tr>
<tr>
<td bgcolor=#eeeeee width=1% nowrap valign=top>&nbsp;Memo&nbsp;</td>
<td width=99% colspan=2>&nbsp;<textarea name=memo class=input style="overflow:auto;word-break:break-all;" style="width=98%" rows=9><?=$memo_value?></textarea></td>
</tr>
<?include"$skin/write_attach.php";/////////file link?>
<tr>
<td width=1% nowrap></td>
<td width=99% colspan=2>&nbsp;<?=$button?><a href=javascript:memo.reset() onfocus=this.blur()><img src=<?=$skin?>/button_reset.gif border=0></a></td>
</tr>
</table>

<table align=center width=450 cellpadding=2 cellspacing=0 border=0 bgcolor=#F1F9FD>
<tr><td colspan=2 height=2 bgcolor=#eeeeee></td></tr>
<tr bgcolor=white>
<td width=1%><?=$copyright?></td>
<td width=99% align=right><a href=naboard.php?bd=<?=$bd?> onfocus=this.blur()><img src=<?=$skin?>/button_list.gif border=0 align=absmiddle></a></td>
</tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -