📄 forums.php
字号:
} else if (swtch == 0) {
helpstat = false;
stprompt = false;
basic = true;
} else if (swtch == 2) {
helpstat = false;
basic = false;
stprompt = true;
}
}
function AddText(NewCode) {
document.FORM.articlecontent.value+=NewCode
}
function validate(theform) {
if (theform.articletitle.value==\"\" || theform.articlecontent.value==\"\") {
alert(\"$jsinfo[1]\");
clckcnt=0;
return false; }
if (postmaxchars != 0) {
if (theform.articlecontent.value.length > $max_post_length) {
alert(\"$jsinfo[2] \"+theform.articlecontent.value.length+\" $jsinfo[3]\");
clckcnt=0;
return false; }
else { return true; }
} else { return true; }
}
function checklength(theform) {
if (postmaxchars != 0) { message = \"$jsinfo[4]\"; }
else { message = \"\"; }
alert(\"$jsinfo[5]\"+theform.articlecontent.value.length+\" $jsinfo[3]\"+message);
}
//-->
</script>
";
$po[14]="<form name=\"FORM\" method=\"post\" action=\"post.php\" onSubmit=\"return validate(this)\" enctype=\"multipart/form-data\">
$decorate2
<table cellspacing=0 cellpadding=0 width=$tablewidth align=center border=0 class=btablelow>
<tr>
<td height=22>
<table cellspacing=1 cellpadding=0 width=100% border=0>
<tr >
<td valign=center align=left class=title> <img src=\"$otherimages/system/firstnew.gif\"> <b><font color=$categoryfontcolor>$forum_pos[28]</b> </font></td>
<td valign=center align=right class=title> </td>
</tr>
</table>
</td>
<td valign=center width=1 bgcolor=$bordercolor height=22></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 width=$tablewidth% align=center bgcolor=$bordercolor border=0>
<tr>
<td height=1></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 width=$tablewidth% align=center border=1 bordercolor=\"$bordercolor\">
<tr>
<td bgcolor=$dbgcolor>
<table cellspacing=0 cellpadding=4 width=100% height=\"100%\" bgcolor=\"$bgcolor\">
<tr>
<td valign=top width=20% bgcolor=$dbgcolor rowspan=2 align=\"center\">
<br>
<b>$forum_pos[4]</b><br>
<br>
$htmlcodeinfo
<input type=checkbox name=\"openbmbcode\" value=\"checkbox\" id=\"open_2\"><label for=\"open_2\">$forum_pos[6]<B>BMB Code</b></label><br><input type=checkbox name=\"openbmbemot\" value=\"checkbox\" id=\"open_3\"><label for=\"open_3\">$forum_pos[6]<B>Emot Code</b></label><br>
<b>$forum_pos[5]</b><br>
<font face=verdana>
$codeinfoc
</font> <br><font face=\"verdana, arial\"><B>{$forum_pos[7]}[{$forum_pos[8]}$leftuploadnum{$forum_pos[9]}]:<br>$uploadinfoshow</font>
</td>
<td width=* bgcolor=\"$dbgcolor\" height=100% rowspan=2>
<table height=100% cellspacing=0 cellpadding=0 width=1 bgcolor=$bordercolor>
<tr>
<td width=1></td>
</tr>
</table>
</td>
<td width=* bgcolor=$dbgcolor rowspan=2>
<script>
function DoTitle(addTitle) {
var revisedTitle;
var currentTitle = document.FORM.articletitle.value;
revisedTitle = currentTitle+addTitle;
document.FORM.articletitle.value=revisedTitle;
document.FORM.articletitle.focus();
return; }
function DoComments(addTitle) {
var revisedTitle;
var currentTitle = document.FORM.articlecontent.value; revisedTitle = currentTitle+addTitle; document.FORM.articlecontent.value=revisedTitle; document.FORM.articlecontent.focus();
return;
}</script>
<br>
$forum_pos[10]
<input type=\"text\" name=\"articletitle\" value=\"\" size=\"45\" maxlength=\"45\" style=\"background-color:#ffffff; border: 1 double #B4B4B4\" onMouseOver = \"this.style.backgroundColor = '#E5F0FF'\" onMouseOut = \"this.style.backgroundColor = ''\">
<input type=checkbox name=\"usesignature\" value=\"checkbox\" checked id=\"open_4\"><label for=\"open_4\">
$forum_pos[11]</label> <input type=checkbox name=\"autourl\" value=\"yes\" checked id=\"open_5\"><label for=\"open_5\">$forum_pos[12]</label>
<INPUT class=input3 type=checkbox CHECKED value=yes name=actioneot id=\"open_6\"><label for=\"open_6\">$forum_pos[13]</label>
<SELECT onchange=DoComments(this.options[this.selectedIndex].value)>
<OPTION value=\"\" selected>$forum_pos[14]</OPTION>$actshows</SELECT><br>
<textarea onkeydown=ctlent() name=\"articlecontent\" cols=\"90\" rows=\"6\" style=\"background-color:#F0F0f3; border: 1 double #B4B4B4\"></textarea>
<br>
<input type=hidden value=2 name=step>
<input type=hidden value=\"new\" name=action>
<input type=hidden value=$forumid name=forumid>
<input type=hidden value=\"$filename\" name=filename>
<br>
<input onclick=\"return clckcntr();\" type=\"submit\" value=\"$forum_pos[15]\" style=\"height:20px;background-color:#f3f3f3;border:1 solid black\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\">
<input type=\"reset\" value=\"$forum_pos[16]\" style=\"height:20px;background-color:#f3f3f3;border:1 solid black\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\">
[{$showinfoofforum}]<br>
$addinfoone
$showuploads
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>";
$po[15]="
<table cellspacing=0 cellpadding=0 align=right>
<tr><td>
<input type=hidden value=$listby name=listby>
<SELECT name=jinhua>
<OPTION value=30>$forum_picie[20]</OPTION>
<OPTION value=1>$forum_picie[21]</OPTION>
<OPTION value=2>$forum_picie[22]</OPTION>
<OPTION value=5>$forum_picie[23]</OPTION>
<OPTION value=10>$forum_picie[24]</OPTION>
<OPTION value=20>$forum_picie[25]</OPTION>
<OPTION value=60>$forum_picie[26]</OPTION>
<OPTION value=100>$forum_picie[27]</OPTION>
<OPTION value=365>$forum_picie[28]</OPTION>
<OPTION value=''>$forum_picie[29]</OPTION>
</SELECT>
<INPUT type=submit value=\" GO \" style=\"color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1\" onMouseOver =\"this.style.backgroundColor='#ffffff'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"> <br><br></table></table></form>";
$po[16]="<table cellpadding=5 cellspacing=1 border=0 width=$tablewidth bgcolor=$bordercolor align=center>
<tr >
<td bgcolor='$categorycolor' background='$tile_back'><font color=$categoryfontcolor>$online_info_show[6] <b>$sum</b> $online_info_show[7] <b>$suma</b> $online_info_show[8] ($online_info_show[9] $usernoc $online_info_show[10]), $online_info_show[11] <b>$guestno</b> $online_info_show[12] <SCRIPT FOR=forum EVENT=onclick>a();</SCRIPT></td>
<td align=center bgcolor='$categorycolor' background='$tile_back'><a onfocus=this.blur() href=javascript:JM_setTarget() value='' id=globalTarget><img src='$winimages/w.gif' border=0 alt=$online_info_show[13] align=absmiddle></a></td>
</tr>
$usergroup
</table>
<script language=\"JavaScript\">
function a(){
el=event.srcElement;
if (el.tagName=='A') el.target=(globalTarget.value);
}
function setVMcookie(vtype){
var expDays = 30;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));SetCookie('viewMode',vtype,exp);
}
function getCookieVal (offset) {
var endstr=document.cookie.indexOf (\";\",offset);
if (endstr==-1) endstr=document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name){
var arg=name+\"=\";
var alen=arg.length;
var clen=document.cookie.length;
var i = 0;while (i<clen){var j=i+alen;
if (document.cookie.substring(i,j)==arg) return getCookieVal (j);
i = document.cookie.indexOf(\" \",i)+1;if (i==0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + \"=\" + escape (value) + ((expires == null) ? \"\" : (\"; expires=\" + expires.toGMTString())) + ((path == null) ? \"\" : (\"; path=\" + path)) + ((domain == null) ? \"\" : (\"; domain=\" + domain)) + ((secure == true) ? \"; secure\" : \"\");
}
function DeleteCookie (name) {
var exp=new Date();
exp.setTime (exp.getTime()-1);
var cval=GetCookie (name);
document.cookie=name+\"=\"+cval+\"; expires=\"+exp.toGMTString();
}
function JM_setTarget(){
globalTarget.value=(globalTarget.value=='_blank')?'':'_blank';
globalTarget.children[0].src=(globalTarget.value=='')?'$winimages/w.gif':'$winimages/nw.gif';
setVMcookie(globalTarget.value);
}
function initViewMode(){
viewMode=GetCookie('viewMode');
globalTarget.value=(!viewMode)?'':'_blank';globalTarget.children[0].src=(!viewMode)?'$winimages/w.gif':'$winimages/nw.gif';
}
initViewMode()
function SetAction(A){
Action.action.value=A;
}
</script>
";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -