📄 forumdisplay.htm
字号:
<!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
- [{lang reward_solved}]
<!--{/if}-->
<!--{if $thread['attachment']}-->
<img src="images/attachicons/common.gif" alt="{lang attachment}" class="attach" />
<!--{/if}-->
<!--{if $thread[multipage]}-->
<span class="threadpages">$thread[multipage]</span>
<!--{/if}-->
<!--{if $thread['new']}-->
<a href="redirect.php?tid=$thread[tid]&goto=newpost$highlight#newpost" class="new">New</a>
<!--{/if}-->
</th>
<td class="author">
<cite>
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="space.php?uid=$thread[authorid]">$thread[author]</a>
<!--{else}-->
<!--{if $forum['ismoderator']}-->
<a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>
<!--{else}-->
{lang anonymous}
<!--{/if}-->
<!--{/if}-->
</cite>
<em>$thread[dateline]</em>
</td>
<td class="nums"><strong>$thread[replies]</strong> / <em>$thread[views]</em></td>
<td class="lastpost">
<em><a href="{if $thread[digest] != -2}redirect.php?tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}viewthread.php?tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
<cite>{lang forum_lastpost_by} <!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}space.php?username=$thread[lastposterenc]{else}viewthread.php?tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
</td>
</tr>
</tbody>
<!--{/loop}-->
<!--{else}-->
<tbody><tr><th colspan="6">{lang forum_nothreads}</th></tr></tbody>
<!--{/if}-->
</table>
<!--{if $forum['ismoderator'] && $threadcount}-->
<div class="footoperation">
<input type="hidden" name="operation" />
<label><input class="checkbox" type="checkbox" name="chkall" onclick="checkall(this.form, 'moderate')" /> {lang checkall}</label>
<!--{if $allowdelpost}--><button onclick="modthreads('delete')">{lang admin_delthread}</button><!--{/if}-->
<button onclick="modthreads('move')">{lang admin_move}</button>
<button onclick="modthreads('highlight')">{lang admin_highlight}</button>
<!--{if empty($form[threadtypes])}--><button onclick="modthreads('type')">{lang admin_type}</button> <!--{/if}-->
<button onclick="modthreads('close')">{lang admin_openclose}</button>
<button onclick="modthreads('bump')">{lang admin_bump_down}</button>
<!--{if $allowstickthread}--><button onclick="modthreads('stick')">{lang admin_stick_unstick}</button><!--{/if}-->
<button onclick="modthreads('digest')">{lang admin_digest_addremove}</button>
<!--{if $forum['modrecommend']['open'] && $forum['modrecommend']['sort'] != 1}--><button type="button" onclick="modthreads('recommend')">{lang admin_recommend}</button><!--{/if}-->
<script type="text/javascript">
function modthreads(operation) {
document.moderate.operation.value = operation;
document.moderate.submit();
}
</script>
</div>
<!--{/if}-->
</form>
</div>
<!--{if $infosidestatus[0]}-->
</div><div id="infoside">
{eval request($infosidestatus, 1, 0);}
</div>
<!--{/if}-->
<div class="pages_btns">
$multipage
<!--{if $allowpost || !$discuz_uid}-->
<span class="postbtn" id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu(this.id)"><a href="post.php?action=newthread&fid=$fid&extra=$extra" title="{lang post_newthread}"><img src="{IMGDIR}/newtopic.gif" alt="{lang post_newthread}" /></a></span>
<!--{/if}-->
</div>
<!--{if $fastpost && $allowpost}-->
<script type="text/javascript" src="include/javascript/post.js"></script>
<script type="text/javascript">
var postminchars = parseInt('$minpostsize');
var postmaxchars = parseInt('$maxpostsize');
var disablepostctrl = parseInt('$disablepostctrl');
var typerequired = parseInt('$forum[threadtypes][required]');
var charset = '$charset';
function validate(theform) {
if(theform.typeid && theform.typeid.options[theform.typeid.selectedIndex].value == 0 && typerequired) {
alert("{lang post_type_isnull}");
theform.typeid.focus();
return false;
} else if(theform.subject.value == "" || theform.message.value == "") {
alert("{lang post_subject_and_message_isnull}");
theform.subject.focus();
return false;
} else if(mb_strlen(theform.subject.value) > 80) {
alert("{lang post_subject_toolong}");
theform.subject.focus();
return false;
}
if(!disablepostctrl && ((postminchars != 0 && mb_strlen(theform.message.value) < postminchars) || (postmaxchars != 0 && mb_strlen(theform.message.value) > postmaxchars))) {
alert("{lang post_message_length_invalid}\n\n{lang post_curlength}: "+mb_strlen(theform.message.value)+" {lang bytes}\n{lang board_allowed}: "+postminchars+" {lang lento} "+postmaxchars+" {lang bytes}");
return false;
}
if(!fetchCheckbox('parseurloff')) {
theform.message.value = parseurl(theform.message.value, 'bbcode');
}
theform.topicsubmit.disabled = true;
return true;
}
</script>
<form method="post" id="postform" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" onSubmit="return validate(this)">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div id="quickpost" class="box">
<span class="headactions"><a href="member.php?action=credits&view=forum_post&fid=$fid" target="_blank">{lang credits_policy_view}</a></span>
<h4>{lang post_fastpost}</h4>
<div class="postoptions">
<h5>{lang options}</h5>
<p><label><input class="checkbox" type="checkbox" name="parseurloff" id="parseurloff" value="1" /> {lang disable} {lang post_parseurl}</label></p>
<p><label><input class="checkbox" type="checkbox" name="smileyoff" id="smileyoff" value="1" /> {lang disable} </label>{faq smilies}</p>
<p><label><input class="checkbox" type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1" /> {lang disable} </label>{faq discuzcode}</p>
<!--{if $allowanonymous || $forum['allowanonymous']}--><p><label><input class="checkbox" type="checkbox" name="isanonymous" value="1" /> {lang post_anonymous}</label></p><!--{/if}-->
<p><label><input class="checkbox" type="checkbox" name="usesig" value="1" $usesigcheck /> {lang post_show_sig}</label></p>
<p><label><input class="checkbox" type="checkbox" name="emailnotify" value="1" /> {lang post_email_notify}</label></p>
<!--{if $uc['addfeed'] && $ucappopen['UCHOME']}--><p><label><input type="checkbox" name="addfeed" value="1" $addfeedcheck> {lang addfeed}</label></p><!--{/if}-->
</div>
<div class="postform">
<h5><label for="subject">{lang subject}</label>
$typeselect <input type="text" id="subject" name="subject" tabindex="1" /></label></h5>
<div id="threadtypes"></div>
<p><label>{lang content}</label>
<textarea rows="7" cols="80" class="autosave" name="message" id="message" onKeyDown="ctlent(event);" tabindex="2"></textarea>
</p>
<p class="btns">
<button type="submit" name="topicsubmit" id="postsubmit" tabindex="3">{lang post_topicsubmit}</button>{lang post_submit_hotkey}
<a href="###" id="previewpost" onclick="$('postform').action=$('postform').action + '&previewpost=yes';$('postform').submit();">{lang post_previewpost}</a>
<a href="###" id="restoredata" title="{lang post_autosave_last_restore}" onclick="loadData()">{lang post_autosave_restore}</a>
<a href="###" onclick="$('postform').reset()">{lang post_topicreset}</a>
</p>
</div>
<!--{if $smileyinsert}-->
<div class="smilies">
<div id="smilieslist">{subtemplate post_smilies}</div>
</div>
<!--{/if}-->
<script type="text/javascript">
var textobj = $('message');
window.onbeforeunload = function () {saveData(textobj.value)};
if(is_ie >= 5 || is_moz >= 2) {
lang['post_autosave_none'] = "{lang post_autosave_none}";
lang['post_autosave_confirm'] = "{lang post_autosave_confirm}";
} else {
$('restoredata').style.display = 'none';
}
</script>
</div>
</form>
<!--{/if}-->
<!--{if $whosonlinestatus}-->
<div class="box">
<!--{if $detailstatus}-->
<span class="headactions"><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=no#online"><img src="{IMGDIR}/collapsed_no.gif" alt="" /></a></span>
<h4>{lang forum_activeusers}</h4>
<ul class="userlist">
<!--{loop $whosonline $key $online}-->
<li title="{lang time}: $online[lastactivity]{LF} {lang action}: $online[action]{LF} {lang forum}: $forumname">
<img src="images/common/$online[icon]" alt="" />
<!--{if $online['uid']}-->
<a href="space.php?uid=$online[uid]">$online[username]</a>
<!--{else}-->
$online[username]
<!--{/if}-->
</li>
<!--{/loop}-->
</ul>
<!--{else}-->
<span class="headactions"><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=yes#online" class="nobdr"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span>
<h4>{lang forum_activeusers}</h4>
<!--{/if}-->
</div>
<!--{/if}-->
<div id="footfilter" class="box">
<form method="get" action="forumdisplay.php">
<input type="hidden" name="fid" value="$fid" />
<!--{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="DESC" $check[DESC]>{lang order_desc}</option>
<option value="ASC" $check[ASC]>{lang order_asc}</option>
</select>
<button type="submit">{lang submit}</button>
</form>
<!--{if $forumjump && !$jsmenu[1]}-->
<span id="forumjump" onmouseover="showMenu(this.id, false, 2)" class="dropmenu">{lang forum_jump}</span>
<ul class="popupmenu_popup" id="forumjump_menu" style="display: none">
$forumselect
</ul>
<!--{/if}-->
<!--{if $visitedforums}-->
<span id="visited_forums" onmouseover="showMenu(this.id, false, 2)" class="dropmenu">{lang visited_forums}</span>
<ul class="popupmenu_popup" id="visited_forums_menu" style="display: none">
$visitedforums
</ul>
<!--{/if}-->
</div>
<div class="legend">
<label><img src="{IMGDIR}/folder_new.gif" alt="{lang thread_newposts}" />{lang thread_newposts}</label>
<label><img src="{IMGDIR}/folder_common.gif" alt="{lang thread_nonewpost}" />{lang thread_nonewpost}</label>
<label><img src="{IMGDIR}/folder_hot.gif" alt="{lang thread_more_replies}" />{lang thread_more_replies}</label>
<label><img src="{IMGDIR}/folder_lock.gif" alt="{lang thread_closed}" />{lang thread_closed}</label>
</div>
<!--{if $forumjump && $jsmenu[1]}-->
<div class="popupmenu_popup" id="forumlist_menu" style="display: none">
{$forummenu}
</div>
<!--{/if}-->
<script type="text/javascript">
var maxpage = {if $maxpage}$maxpage{else}1{/if};
if(maxpage > 1) {
document.onkeyup = function(e){
e = e ? e : window.event;
var tagname = is_ie ? e.srcElement.tagName : e.target.tagName;
if(tagname == 'INPUT' || tagname == 'TEXTAREA') return;
actualCode = e.keyCode ? e.keyCode : e.charCode;
{if $page < $maxpage}
if(actualCode == 39) {
window.location = 'forumdisplay.php?fid=$fid$forumdisplayadd&page={echo $page+1;}';
}
{/if}
{if $page > 1}
if(actualCode == 37) {
window.location = 'forumdisplay.php?fid=$fid$forumdisplayadd&page={echo $page-1;}';
}
{/if}
}
}
</script>
{subtemplate footer}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -