一个模仿oso的php论坛程序源码(之二)第13页

2018-09-07 14:17

阅读:285

  程序二:addforum.php
<html>
<head>
<linkrel=STYLESHEETtype=text/csshref=fp_zhangcg.css>
<metahttp-equiv=Content-Typecontent=text/html;charset=gb2312>
<metaname=MicrosoftThemecontent=none>
<metaname=MicrosoftBordercontent=none>
<title>发表信息</title>
</head>
<bodybgcolor=#C0C0C0background=backcolor.gif>
<SCRIPTlanguage=JavaScript>
<!--
varsubmitcount=0;
functioncheckSubmit(){
if(submitcount==0)
{
submitcount++;
returntrue;
}
else{
if(submitcount>0){
alert(帖子已成功提交,请勿重复发帖!nDontsubmittheformtwice,please.);returnfalse;
}
}
}
functioncheck_com(){
submitcount--;
alert(请输入您的网上大名!nPleaseinputyourusername.);
returnfalse;
}
if(document.form.forumtitle.value.length==0){
submitcount--;
alert(主题不能为空!nYoumustsupplyasubject.);
returnfalse;
}
if(document.form.forumcontent.value.length==0){
submitcount--;
alert(加贴内容不能为空!nYoumustsupplyamessage.);
returnfalse;
}
returntrue;
}
//-->
</SCRIPT>
<?
?>
<?
if(empty($theme_id)){
$theme_id=0;
}
?>
<tablewidth=750border=0>
<tr>
<?
if($theme_id==0){
print<tdclass=text>当前位置:主页——论坛——发表论坛</td>;
}
else
{
print<tdclass=text>当前位置:主页——论坛——回复帖子</td>;
}
?>
<td></td>
</tr>
</table>
<?
print<formaction=readforum.php?readflag=0;
printmethod=postname=formonsubmit=returncheck_com()>;
?>
<tablewidth=750border=0>
<tr>
<tdwidth=131class=text>
<divalign=right><spanclass=text><spanclass=text>您的大</span>名:</span></div>
</td>
<tdwidth=609>
<inputtype=textname=usernamesize=80value=maxlength=12>
<fontcolor=#ff0000>*</font></td>
</tr>
<tr>
<tdwidth=131class=text>
<divalign=right>E_mail:</div>
</td>
<tdwidth=609>
<inputtype=textname=useremailsize=80>
</td>
</tr>
<tr>
<tdwidth=131class=text>
<divalign=right>你的主页:</div>
</td>
<tdwidth=609>
<p>
<inputtype=textname=userhttpsize=80value=
</p>
</td>
</tr>
<tr>
<tdwidth=131class=text>
<?
if($theme_id==0){
print<divalign=right>加帖标题:</div>;
print</td><tdwidth=609>;
123下一页阅读全文


评论


亲,登录后才可以留言!