📄 forumdisplay.htm
字号:
<!--{else}-->
{lang anonymous}
<!--{/if}-->
<!--{/if}-->
<br><span class="smalltxt">$thread[dateline]</span></td>
<td class="f_replies">$thread[replies]</td>
<td class="f_views">$thread[views]</td>
<td class="f_last" nowrap>$thread[lastpost]<br>{lang forum_lastpost_by}
<!--{if $thread['lastposter']}--><a href="viewpro.php?username=$thread[lastposterenc]">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}-->
<a href="redirect.php?tid=$thread[tid]&goto=lastpost$highlight#lastpost"><img src="{IMGDIR}/lastpost.gif" border="0" class="absmiddle" alt="" /></a>
</td></tr></table>
<!--{/loop}-->
</div>
<!--{else}-->
<div class="maintable">
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="margin-top:-1px;border-top:none" class="tableborder">
<tr><td colspan="7" class="altbg1">{lang forum_nothreads}</td></tr>
</table>
</div>
<!--{/if}-->
<!--{if $forum['ismoderator'] && $threadcount}-->
<div class="maintable">
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="border-top:none;" class="tableborder">
<tr><td align="center" class="altbg1">
<span class="bold">{lang admin_moderate}</span>
<input type="checkbox" name="chkall" onclick="checkall(this.form, 'moderate')">{lang checkall}
<!--{if $allowdelpost}--><input type="radio" name="operation" value="delete">{lang admin_delthread} <!--{/if}-->
<input type="radio" name="operation" value="move">{lang admin_move}
<input type="radio" name="operation" value="highlight">{lang admin_highlight}
<input type="radio" name="operation" value="type">{lang admin_type}
<input type="radio" name="operation" value="close">{lang admin_openclose}
<!--{if $allowstickthread}--><input type="radio" name="operation" value="stick">{lang admin_stick_unstick} <!--{/if}-->
<input type="radio" name="operation" value="digest">{lang admin_digest_addremove}
{if $supe_status && $forum['supe_pushsetting']['status'] == 2}
<input type="radio" name="operation" value="supe_push">{lang admin_supe_push_addremove}
{/if}
<a href="###" onclick="javascript: document.moderate.submit()" class="bold">[{lang submit}]</a>
</td></tr></table></div>
<!--{else}-->
<div class="maintable">
<table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" border="0" align="center">
<tr><td bgcolor="{BORDERCOLOR}"></td></tr>
</table></div>
<!--{/if}-->
</form>
<div class="maintable">
<table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center">
<tr><td valign="top">$multipage</td><td align="right">
<!--{if $allowpost || !$discuz_uid}--> <a href="post.php?action=newthread&fid=$fid&extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if $allowpostpoll || !$discuz_uid}--> <a href="post.php?action=newthread&fid=$fid&extra=$extra&poll=yes"><img src="{IMGDIR}/poll.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if ($allowposttrade && $ec_id) || !$discuz_uid}--> <a href="post.php?action=newthread&fid=$fid&extra=$extra&trade=yes"><img src="{IMGDIR}/trade.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if $allowpostreward || !$discuz_uid}--> <a href="post.php?action=newthread&fid=$fid&extra=$extra&reward=yes"><img src="{IMGDIR}/reward.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if $allowpostactivity || !$discuz_uid}--> <a href="post.php?action=newthread&fid=$fid&extra=$extra&activity=yes"><img src="{IMGDIR}/activity.gif" border="0" alt="" /></a><!--{/if}-->
</td></tr></table><br></div>
<!--{if $fastpost && $allowpost}-->
<script type="text/javascript">
var postminchars = parseInt('$minpostsize');
var postmaxchars = parseInt('$maxpostsize');
var disablepostctrl = parseInt('$disablepostctrl');
var typerequired = parseInt('$forum[threadtypes][required]');
function validate(theform) {
if (theform.typeid && theform.typeid.options[theform.typeid.selectedIndex].value == 0 && typerequired) {
alert("{lang post_type_isnull}");
return false;
} else if (theform.subject.value == "" || theform.message.value == "") {
alert("{lang post_subject_or_message_isnull}");
return false;
} else if (theform.subject.value.length > 80) {
alert("{lang post_subject_toolong}");
return false;
}
if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
alert("{lang post_message_length_invalid}\n\n{lang post_curlength}: "+theform.message.value.length+" {lang bytes}\n{lang board_allowed}: "+postminchars+" {lang to} "+postmaxchars+" {lang bytes}");
return false;
}
theform.topicsubmit.disabled = true;
return true;
}
</script>
<form method="post" name="input" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" onSubmit="return validate(this)">
<input type="hidden" name="formhash" value="{FORMHASH}">
<div class="maintable">
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
<tr><td colspan="2" class="header"><a href="member.php?action=credits&view=forum_post&fid=$fid" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0" /></a>{lang post_fastpost}</td></tr>
<tr>
<td width="18%" class="altbg1">{lang subject}:</td>
<td width="82%" class="altbg2">$typeselect <input type="text" name="subject" size="80" value="" tabindex="1"></td>
</tr>
<tr>
<td width="18%" class="altbg1" valign="top">{lang options}:<br>
<input type="checkbox" name="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br>
<input type="checkbox" name="smileyoff" value="1"> {lang disable} <a href="faq.php?page=messages#6" target="_blank">{lang post_smilies}</a><br>
<input type="checkbox" name="bbcodeoff" value="1"> {lang disable} <a href="faq.php?page=misc#1" target="_blank">{lang post_discuzcode}</a><br>
<!--{if $allowanonymous || $forum['allowanonymous']}--><input type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br><!--{/if}-->
<input type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
<input type="checkbox" name="emailnotify" value="1"> {lang post_email_notify}
<!--{if $allowuseblog && $forum['allowshare']}--><br><input type="checkbox" name="addtoblog" value="1"> {lang post_blog_thread}<!--{/if}-->
</td>
<td width="82%" class="altbg2" valign="middle">
<div style="width:80%; float:left;"><span class="smalltxt">
<textarea rows="7" cols="30" style="width: 100%; height:120px; word-break: break-all" name="message" onKeyDown="ctlent(event);" tabindex="2"></textarea><br>
<input type="submit" name="topicsubmit" value="{lang post_topicsubmit}" tabindex="3">
<input type="submit" name="previewpost" value="{lang post_previewpost}" tabindex="4">
<input type="reset" name="topicsreset" value="{lang post_topicreset}" tabindex="5"> {lang post_submit_hotkey}</span></div>
<!--{if $smileyinsert}-->
<div id="{$editorid}_smiliebox" style="width:20%; float:left">
<table cellpadding="3" cellspacing="0" width="80%" border="0" align="center">
$smilies
<!--{if $moresmilies}-->
<tr>
<td colspan="$smcols" align="center"><br>
<a href="#" onclick="opensmiliewindow(200, 500); return false">
<span class="bold">{lang post_smilies_more}</span></a></td>
</tr>
<!--{/if}-->
</table>
</div>
<script type="text/javascript">initSmilies('{$editorid}_smiliebox');</script>
<!--{/if}-->
</td></tr></table><br></div></form>
<!--{/if}-->
<!--{if $whosonlinestatus}-->
<div class="maintable">
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
<!--{if $detailstatus}-->
<tr class="header"><td width="100%">
<a name="online"></a><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=no#online"><img src="{IMGDIR}/collapsed_no.gif" align="right" border="0" alt="" /></a>{lang forum_activeusers}
</td></tr>
<tr><td class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
<table cellspacing="0" cellpadding="0" border="0" width="98%" align="center">
<tr><td nowrap>
<!--{loop $whosonline $key $online}-->
<!--{if $key % 7 == 0}--></td></tr><tr><td width="15%" nowrap><!--{else}--></td><td width="15%" nowrap><!--{/if}-->
<img src="images/common/$online[icon]" alt="" />
<a href="viewpro.php?uid=$online[uid]" title="{lang time}: $online[lastactivity]{LF}
{lang action}: $online[action]{LF}
{lang forum}: $forumname">$online[username]</a>
<!--{/loop}-->
</td></tr></table></td></tr>
<!--{else}-->
<tr class="header"><td width="100%">
<a name="online"></a><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=yes#online"><img src="{IMGDIR}/collapsed_yes.gif" align="right" border="0" alt="" /></a>{lang forum_activeusers}
</td></tr>
<!--{/if}-->
</table><br></div>
<!--{/if}-->
<div class="maintable">
<form method="get" action="forumdisplay.php">
<input type="hidden" name="fid" value="$fid">
<div class="subtable outertxt" style="width:{TABLEWIDTH}">
<div class="right smalltxt">
<!--{if $filter == 'digest' || $filter == 'type'}-->
<input type="hidden" name="filter" value="$filter">
<input type="hidden" name="typeid" value="$typeid">
<!--{else}-->
{lang show} <select name="filter">
<option value="0" $check[0]>{lang threads_all}</option>
<option value="86400" $check[86400]>{lang last_1_days}</option>
<option value="172800" $check[172800]>{lang last_2_days}</option>
<option value="604800" $check[604800]>{lang last_7_days}</option>
<option value="2592000" $check[2592000]>{lang last_30_days}</option>
<option value="7948800" $check[7948800]>{lang last_90_days}</option>
<option value="15897600" $check[15897600]>{lang last_180_days}</option>
<option value="31536000" $check[31536000]>{lang last_356_days}</option>
</select>
<!--{/if}-->
{lang orderby}
<select name="orderby">
<option value="lastpost" $check[lastpost]>{lang order_lastpost}</option>
<option value="dateline" $check[dateline]>{lang order_starttime}</option>
<option value="replies" $check[replies]>{lang order_replies}</option>
<option value="views" $check[views]>{lang order_views}</option>
</select>
<select name="ascdesc">
<option value="ASC" $check[ASC]>{lang order_asc}</option>
<option value="DESC" $check[DESC]>{lang order_desc}</option>
</select>
<input type="submit" value="{lang submit}">
</div>
<span class="smalltxt">
<!--{if $forumjump && !$jsmenu[1]}-->
<select onchange="if(this.options[this.selectedIndex].value != '') {
window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&sid=$sid') }">
<option value="">{lang forum_jump}</option>
$forumselect
</select>
<!--{/if}-->
<!--{if $visitedforums}-->
<select onchange="if(this.options[this.selectedIndex].value != '')
window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&sid=$sid')">
<option value="">{lang visited_forums}</option>
$visitedforums
</select>
<!--{/if}-->
</span>
</div></form>
<br><table cellspacing="0" cellpadding="0" border="0" width="500" align="center" class="outertxt">
<tr class="smalltxt"><td><img src="{IMGDIR}/red_folder.gif" class="absmiddle" alt="{lang thread_newposts}" /> {lang thread_newposts}</td><td class="smalltxt">( <img src="{IMGDIR}/hot_red_folder.gif" class="absmiddle" alt="{lang thread_more_replies}" /> {lang thread_more_replies} )</td><td class="smalltxt"><img src="{IMGDIR}/lock_folder.gif" class="absmiddle" alt="{lang thread_closed}" /> {lang thread_closed}</td></tr>
<tr class="smalltxt"><td><img src="{IMGDIR}/folder.gif" class="absmiddle" alt="{lang thread_nonewpost}" /> {lang thread_nonewpost}</td><td class="smalltxt">( <img src="{IMGDIR}/hot_folder.gif" class="absmiddle" alt="{lang thread_more_replies}" /> {lang thread_more_replies} )</td><td class="smalltxt"> </td></tr>
</table>
{template footer}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -