📄 viewthread.htm
字号:
<!--{if $forum['ismoderator'] && $allowbanpost && $post['adminid'] <= 0}-->
<a href="topicadmin.php?action=warn&fid=$fid&tid=$tid&pid=$post[pid]&referer=$referer">{if $post['warned']}{lang topicadmin_warn_delete}{else}{lang warn}{/if}</a>
<!--{elseif $discuz_uid && $reportpost && $discuz_uid != $post['authorid']}-->
<a href="misc.php?action=report&fid=$fid&tid=$tid&pid=$post[pid]&page=$page" id="ajax_report_$post[pid]" onclick="ajaxmenu(event, this.id, 9000000, null, 0)">{lang reportpost}</a>
<!--{/if}-->
<!--{if $raterange && $post['authorid']}-->
<a href="misc.php?action=rate&tid=$tid&pid=$post[pid]&page=$page" id="ajax_rate_$post[pid]" onclick="ajaxmenu(event, this.id, 9000000, null, 0)">{lang rate}</a>
<!--{/if}-->
<!--{if $post['rate'] && $forum['ismoderator']}-->
<a href="misc.php?action=removerate&tid=$tid&pid=$post[pid]&page=$page">{lang removerate}</a>
<!--{/if}-->
<!--{if $fastpost && $allowpostreply}-->
<a href="###" onclick="fastreply('{lang post_fastreply_author}', $post[pid])">{lang reply}</a>
<!--{/if}-->
<!--{if $forum['ismoderator']}-->
<!--{if $allowdelpost}-->
<a href="topicadmin.php?action=delpost&fid=$fid&tid=$tid&topiclist[]=$post[pid]&page=$page">{lang delete}</a>
<!--{/if}-->
<!--{if $allowbanpost}-->
<a href="topicadmin.php?action=banpost&fid=$fid&tid=$tid&topiclist[]=$post[pid]&page=$page&banstatus=$post[banned]">
<!--{if !$post['banned']}-->{lang admin_banpost}<!--{else}-->{lang admin_unbanpost}<!--{/if}-->
</a>
<!--{/if}-->
<!--{/if}-->
<strong onclick="scroll(0,0)" title="{lang top}">TOP</strong>
</p>
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['thread1'][$post['count']])}--><div class="ad_textlink1" id="ad_thread1_$post[count]">$advlist[thread1][$post[count]]</div><!--{else}--><div id="ad_thread1_$post[count]"></div><!--{/if}-->
</div>
</td>
</tr>
</table>
<!--{if $post['first'] && $thread['replies']}--></div><!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['interthread'])}--><div class="ad_column" id="ad_interthread">$advlist[interthread]<!--{else}--><div id="ad_interthread"><!--{/if}--><!--{/if}-->
<!--{/loop}-->
</div>
</form>
$tagscript
<!--{if $infoside}-->
</div><div id="infoside">
{eval request($infosidestatus, 1, 1);}
</div>
<!--{/if}-->
<div class="pages_btns">
<div class="threadflow"><a href="redirect.php?fid=$fid&tid=$tid&goto=nextoldset"> ‹‹ {lang last_thread}</a> | <a href="redirect.php?fid=$fid&tid=$tid&goto=nextnewset">{lang next_thread} ››</a></div>
$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"><img src="{IMGDIR}/newtopic.gif" border="0" alt="{lang post_newthread}" title="{lang post_newthread}" /></a></span>
<!--{/if}-->
<!--{if $allowpostreply || !$discuz_uid}--><span class="replybtn"><a href="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra"><img src="{IMGDIR}/reply.gif" border="0" alt="" /></a></span><!--{/if}-->
</div>
<!--{if $relatedthreadlist && $qihoo['relate']['position']}-->
{subtemplate viewthread_relatedthread}
<!--{/if}-->
<!--{if $fastpost && $allowpostreply}-->
<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 charset = '$charset';
function validate(theform) {
if(theform.message.value == '' && theform.subject.value == '') {
alert("{lang post_subject_and_message_isnull}");
theform.message.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.replysubmit.disabled = true;
return true;
}
</script>
<form method="post" id="postform" action="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra&replysubmit=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_reply&fid=$fid" target="_blank">{lang credits_policy_view}</a></span>
<h4>{lang post_fastreply}</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} {faq smilies}</label></p>
<p><label><input class="checkbox" type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1"> {lang disable} {faq discuzcode}</label></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>{lang subject}
<input type="text" name="subject" value="" tabindex="1"></label></h5>
<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="replysubmit" id="postsubmit" value="replysubmit" 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 $forumjump && !$jsmenu[1] || $visitedforums}-->
<div id="footfilter" class="box">
<!--{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>
<!--{/if}-->
<!--{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 = 'viewthread.php?tid=$tid&page={echo $page+1;}';
}
{/if}
{if $page > 1}
if(actualCode == 37) {
window.location = 'viewthread.php?tid=$tid&page={echo $page-1;}';
}
{/if}
}
}
</script>
{subtemplate footer}
<!--{if $relatedthreadupdate}-->
<script type="text/javascript" src="relatethread.php?tid=$tid&subjectenc=$thread[subjectenc]&tagsenc=$thread[tagsenc]&verifykey=$verifykey&up=$qihoo_up"></script>
<!--{/if}-->
<!--{if $tagupdate}-->
<script type="text/javascript" src="relatekw.php?tid=$tid"></script>
<!--{/if}-->
<!--{if $qihoo['relate']['bbsnum'] && $statsdata}-->
<img style="display:none;" src="http://pvstat.qihoo.com/dimana.gif?_pdt=discuz&_pg=s100812&_r=$randnum&_dim_k=orgthread&_dim_v={echo urlencode($boardurl);}||{$statsdata}||0" width="1" height="1" alt="" />
<img style="display:none;" src="http://pvstat.qihoo.com/dimana.gif?_pdt=discuz&_pg=s100812&_r=$randnum&_dim_k=relthread&_dim_v={$statskeywords}||{$statsurl}" width="1" height="1" alt="" />
<!--{/if}-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -