这是我站viewthread文件的所有代码,你提供的代码,我在这里搜索不到啊..请教一下如何修改..麻烦你了.- {template header}
- <div class="smain">
- <p class="lbox"><!--{if $forumjump && $jsmenu[1]}--><span id="forumlist" onmouseover="showMenu(this.id)"><a href="$indexname">$bbname</a></span><!--{else}--><a href="$indexname">$bbname</a><!--{/if}--> $navigation</p>
- </div>
- <!--{if !empty($advlist['text'])}-->
- <div class="smain">
- <table cellspacing="1" border="0" cellpadding="{TABLESPACE}" width="100%" style="background: {BGBORDER}">$advlist[text]</table>
- </div>
- <!--{/if}-->
- <div class="main">
- <div class="left">$multipage</div>
- <div class="right" style="width: 40%">
- <!--{if $allowpostreply || !$discuz_uid}--><div class="right"> <a href="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra"><img src="{IMGDIR}/reply.gif" border="0" alt="" /></a></div><!--{/if}-->
- <!--{if $allowpost || !$discuz_uid}-->
- <div id="newspecialheader" class="right" onmouseover="showMenu(this.id)"><a <!--{if !$forum['allowspecialonly']}-->href="post.php?action=newthread&fid=$fid&extra=$extra"<!--{/if}-->><img src="{IMGDIR}/newtopic.gif" border="0" alt="" /></a><a href="###"><img src="{IMGDIR}/newspecial.gif" border="0" alt="" /></a></div>
- <!--{/if}-->
- </div>
- </div>
- <!--{if $thread['special'] == 1 && $polloptions}-->
- {template viewthread_poll}
- <!--{elseif $thread['special'] == 2}-->
- {template viewthread_trade}
- <!--{elseif $thread['special'] == 4}-->
- {template viewthread_activity}
- <!--{/if}-->
- <script type="text/javascript">
- function fastreply(subject) {
- if($('postform')) {
- $('postform').subject.value = subject;
- $('postform').message.focus();
- }
- }
- </script>
- <div class="smain" style="margin-bottom: 0px; border-bottom: none; padding-bottom: 0px">
- <div class="header">
- <div class="topic">{lang subject}:
- <!--{if $thread['special'] == 3}-->
- <!--{if $thread['price'] > 0}-->
- [{lang reward_unsolved}]
- <!--{elseif $thread['price'] < 0}-->
- [{lang reward_solved}]
- <!--{/if}-->
- <script type="text/javascript">
- function setanswer(pid){
- if(confirm("{lang reward_set_bestanswer_confirm}")){
- document.delpost.action='misc.php?action=bestanswer&tid=$thread['tid']&pid=' + pid + '&bestanswersubmit=yes';
- document.delpost.submit();
- }
- }
- </script>
- <!--{/if}-->
- $thread[subject]
- </div>
- <div class="topic" style="float: right; font-weight: lighter">
- <a href="redirect.php?fid=$fid&tid=$tid&goto=nextoldset" title="{lang last_thread}">‹‹</a>
- <a href="viewthread.php?action=printable&tid=$tid" target="_blank">{lang thread_printable}</a> | <a href="misc.php?action=emailfriend&tid=$tid">{lang thread_email_friend}</a> | <a href="my.php?item=subscriptions&subadd=$tid" id="ajax_subscription" onclick="ajaxmenu(event, this.id)">{lang thread_subscribe}</a> | <a href="my.php?item=favorites&tid=$tid" id="ajax_favorite" onclick="ajaxmenu(event, this.id)">{lang thread_favorite}</a>
- <!--{if $supe['status'] && $xspacestatus && $thread['authorid'] == $discuz_uid}-->
- <!--{if !$thread['itemid']}-->
- | <a href="$supe[siteurl]/spacecp.php?action=spaceblogs&op=add&tid=$tid" target="_blank">{lang supe_join_xspace}</a>
- <!--{else}-->
- | <a href="$supe[siteurl]/index.php?action/viewspace/itemid/$thread[itemid]/fromdiscuz/$supe_fromdiscuz" target="_blank">{lang supe_view_in_xspace}</a>
- <!--{/if}-->
- | <a href="$supe[siteurl]/spacecp.php?action=spacenews&op=add&tid=$tid" target="_blank">{lang supe_resource_add}</a>
- <!--{elseif $thread['authorid'] && ($thread['authorid'] == $discuz_uid || $forum['ismoderator'])}-->
- <!--{if $thread['blog']}-->
- | <a href="misc.php?action=blog&tid=$tid" id="ajax_blog" onclick="ajaxmenu(event, this.id, 2000, 'changestatus', 0)">{lang blog_remove}</a>
- <!--{elseif $allowuseblog && $forum['allowshare'] && $thread['authorid'] == $discuz_uid}-->
- | <a href="misc.php?action=blog&tid=$tid" id="ajax_blog" onclick="ajaxmenu(event, this.id, 2000, 'changestatus', 0)">{lang blog_add}</a>
- <!--{/if}-->
- <script type="text/javascript">
- function changestatus(obj) {
- obj.innerHTML = obj.innerHTML == '{lang blog_remove}' ? '{lang blog_add}' : '{lang blog_remove}';
- }
- </script>
- <!--{/if}-->
- <!--{if $lastmod['modaction'] || $thread['blog'] || $thread['readperm'] || $thread['price'] != 0 || $thread[itemid] || $lastmod['magicname']}-->
- | <a href="misc.php?action=viewthreadmod&tid=$tid" title="管理记录">记录</a>
- <!--{/if}-->
- <a href="redirect.php?fid=$fid&tid=$tid&goto=nextnewset" title="{lang next_thread}">››</a>
- </div>
- </div>
- <!--{if $forum['ismoderator']}-->
- <div class="category" style="height: 32px">
- <div class="topic" style="margin-top: 4px; float: left;">
- <script type="text/javascript">
- function doadminop(op){
- if (!op) return false;
- if (op != '') {
- if (op != 'delpost') {
- window.location=('topicadmin.php?tid=$tid&fid=$fid&action='+op+'&sid=$sid');
- } else {
- document.delpost.submit();
- }
- }
- }
- </script>
- <!--{if $allowdelpost}-->
- <input type="button" class="lightbutton" value="{lang admin_delpost}" onclick="doadminop('delpost')">
- <input type="button" class="lightbutton" value="{lang admin_delthread}" onclick="doadminop('delete')">
- <!--{/if}-->
- <!--{if $thread['closed']}-->
- <input type="button" class="lightbutton" value="{lang admin_open}" onclick="doadminop('close')">
- <!--{else}-->
- <input type="button" class="lightbutton" value="{lang admin_close}" onclick="doadminop('close')">
- <!--{/if}-->
- <!--{if !$thread['special']}-->
- <input type="button" class="lightbutton" value="{lang admin_move}" onclick="doadminop('move')">
- <!--{/if}-->
- <!--{if !$thread['special']}-->
- <input type="button" class="lightbutton" value="{lang admin_copy}" onclick="doadminop('copy')">
- <!--{/if}-->
- <input type="button" class="lightbutton" value="{lang admin_highlight}" onclick="doadminop('highlight')">
- <!--{if $thread['digest']}-->
- <input type="button" class="lightbutton" value="{lang admin_digest_remove}" onclick="doadminop('digest')">
- <!--{else}-->
- <input type="button" class="lightbutton" value="{lang admin_digest_add}" onclick="doadminop('digest')">
- <!--{/if}-->
- <!--{if $allowstickthread}-->
- <!--{if $thread['displayorder']}-->
- <input type="button" class="lightbutton" value="{lang admin_unstick}" onclick="doadminop('stick')">
- <!--{else}-->
- <input type="button" class="lightbutton" value="{lang admin_stick}" onclick="doadminop('stick')">
- <!--{/if}-->
- <!--{/if}-->
- <span id="ismoderator_1" style="display: none">
- <!--{if $thread['price'] > 0 && $allowrefund}-->
- <input type="button" class="lightbutton" value="{lang admin_refund}" onclick="doadminop('refund')">
- <!--{/if}-->
- <!--{if !$thread['special']}-->
- <input type="button" class="lightbutton" value="{lang admin_split}" onclick="doadminop('split')">
- <!--{/if}-->
- <!--{if !$thread['special']}-->
- <input type="button" class="lightbutton" value="{lang admin_merge}" onclick="doadminop('merge')">
- <!--{/if}-->
- <input type="button" class="lightbutton" value="{lang admin_bump}" onclick="doadminop('bump')">
- <input type="button" class="lightbutton" value="{lang admin_repair}" onclick="doadminop('repair')">
- <!--{if $supe_status && $allowpushthread && $forum['supe_pushsetting']['status'] == 2 && $thread['supe_pushstatus'] == 0}-->
- <input type="button" class="lightbutton" value="{lang admin_supe_push}" onclick="doadminop('supe_push')">
- <!--{/if}-->
- </span>
- </div>
- <div class="collapsed_img"><a href="###" onclick="toggle_collapse('ismoderator_1');"><img id="ismoderator_1_img" src="images/default/collapsed_no.gif" border="0" alt="" /></a></div>
- </div>
- <!--{/if}-->
- </div>
- <form method="post" name="delpost" action="topicadmin.php?action=delpost&fid=$fid&tid=$tid&page=$page">
- <input type="hidden" name="formhash" value="{FORMHASH}">
- <!--{loop $postlist $post}-->
- <div class="smain">
- <div class="maxspeed altbg1" style="width: 100%; border-top: none">
- <div style="width: 20%; float: left">
- <p class="lbox">
- <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
- <a href="space.php?uid=$post[authorid]" target="_blank" class="bold">$post[author]</a><!--{if $post['nickname']}--> <span class="smalltxt">($post[nickname])</span><!--{/if}-->
- <!--{else}-->
- <!--{if !$post['authorid']}-->
- <span class="bold">{lang guest}</span> $post[useip]
- <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
- <span class="bold"><!--{if $forum['ismoderator']}--><a href="space.php?uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}--></span>
- <!--{else}-->
- <span class="bold">$post[author]</span>
- <!--{/if}-->
- <!--{/if}-->
- </p>
- </div>
- <div style="width:79%">
- <span class="p_bar" style="margin: 1px; padding: 2px; float: right">
- <!--{if MSGBIGSIZE || MSGSMALLSIZE}-->
- <!--{if MSGBIGSIZE}--><a href="###" class="p_curpage" style="{CATBGCODE}" onclick="$('message$post[pid]').className='t_bigfont'">{lang big}</a><!--{/if}-->
- <a href="###" class="p_curpage" style="{CATBGCODE}" onclick="$('message$post[pid]').className='t_msgfont'">{lang middle}</a>
- <!--{if MSGSMALLSIZE}--><a href="###" class="p_curpage" style="{CATBGCODE}" onclick="$('message$post[pid]').className='t_smallfont'">{lang small}</a><!--{/if}-->
- <!--{/if}-->
- <!--{if $magicstatus}-->
- <a class="p_other" href="magic.php?action=user&pid=$post[pid]" target="_blank">{lang magics_use}</a>
- <!--{/if}-->
- <!--{if $thread['special'] == 3 && $thread['price'] < 0 && $thread['dateline'] + 1 == $post['dbdateline'] && $post['first'] == 0 }-->
- <b> {lang reward_bestanswer}</b>
- <!--{/if}-->
- </span>
- <span style="margin: 1px; padding: 2px; float: left"><span class="p_bar">
- <!--{if $post['username'] && !$post['anonymous']}-->
- <a class="p_other" href="viewpro.php?uid=$post[authorid]" target="_blank">{lang view_profile}</a>
- <!--{if $supe['status'] && $xspacestatus}-->
- <a class="p_other" href="$supe[siteurl]?uid/$post[authorid]" target="_blank">{lang space}</a>
- <!--{elseif $spacestatus}-->
- <!--{if !empty($post[spacename])}-->
- <a class="p_other" href="space.php?uid=$post[authorid]" target="_blank" title="$post[spacename]">
- <!--{else}-->
- <a class="p_other" href="space.php?uid=$post[authorid]" target="_blank" title="{$post[username]}{lang space_userspace}">
- <!--{/if}-->
- {lang space}</a>
- <!--{/if}-->
- <!--{if $post['site']}--><a class="p_other" href="$post[site]" target="_blank">{lang homepage}</a><!--{/if}-->
- <a class="p_other" href="pm.php?action=send&uid=$post[authorid]" target="_blank">{lang pm}</a>
- <a class="p_other" href="memcp.php?action=buddylist&newbuddyid=$post[authorid]&buddysubmit=yes" target="_blank" id="ajax_buddy_$post['count']" onclick="ajaxmenu(event, this.id)">{lang add_to_buddylist}</a>
- <!--{if $post['msn']}--><a class="p_other" href="#" onclick="msnoperate('chat', '$post[msn]')">Msn</a><!--{/if}-->
- <!--{if $post['qq']}--><a class="p_other" href="http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$bbname&Menu=yes" target="_blank">OICQ</a><!--{/if}-->
- <!--{if $post['taobao']}--><script type="text/javascript">document.write('<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid='+encodeURIComponent('$post[taobao]')+'&s=2"><img src="http://amos1.taobao.com/online.ww?v=2&uid='+encodeURIComponent('$post[taobao]')+'&s=2" alt="{lang taobao}" border="0" /></a> ');</script><!--{/if}-->
- <!--{/if}-->
- <!--{if ($forum['ismoderator'] || $thread['authorid'] == $discuz_uid) && $discuz_uid != $post['authorid'] && $post['authorid'] != $thread['authorid'] && $post['first'] == 0 && $thread['price'] > 0 && $thread['special'] == 3}-->
- <a class="p_other" href="###" onclick="setanswer($post['pid'])">{lang reward_set_bestanswer}</a>
- <!--{/if}-->
- <!--{if ($forum['ismoderator'] && $alloweditpost && !(in_array($post['adminid'], array(1, 2, 3)) && $adminid > $post['adminid'])) || ($forum['alloweditpost'] && $discuz_uid && $post['authorid'] == $discuz_uid)}--><a class="p_other" href="post.php?action=edit&fid=$fid&tid=$tid&pid=$post[pid]&page=$page&extra=$extra">{lang edit}</a><!--{/if}-->
- <!--{if $allowpostreply}--><a class="p_other" href="post.php?action=reply&fid=$fid&tid=$tid&repquote=$post[pid]&extra=$extra&page=$page">{lang reply_quote}</a><!--{/if}-->
- <!--{if $discuz_uid && $reportpost}--><a class="p_other" href="misc.php?action=report&fid=$fid&tid=$tid&pid=$post[pid]&page=$page">{lang reportpost}</a><!--{/if}-->
- <!--{if $raterange && $post['authorid']}--><a class="p_other" href="misc.php?action=rate&tid=$tid&pid=$post[pid]&page=$page">{lang rate}</a><!--{/if}-->
- <!--{if $post['rate'] && $forum['ismoderator']}--><a class="p_other" href="misc.php?action=removerate&tid=$tid&pid=$post[pid]&page=$page">{lang removerate}</a><!--{/if}-->
- <!--{if $fastpost && $allowpostreply}--><a class="p_other" href="###" onclick="fastreply('{lang post_fastreply_author}')">{lang reply}</a><!--{/if}-->
- <!--{if $forum['ismoderator'] && $allowdelpost}--><!--{if $post['number'] == 1}--><input class="checkbox" type="checkbox" disabled><!--{else}--><input class="checkbox" type="checkbox" name="delete[]" value="$post[pid]"><!--{/if}--><!--{/if}-->
- </span></span>
- </div>
- </div>
- <div class="memcpspeed" style="border-top: 1px solid {INNERBORDERCOLOR}">
- <div style="float: left; width: 20%; overflow: hidden"><a name="pid$post[pid]"></a> $post[newpostanchor] $post[lastpostanchor]
- <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
- <div class="lxbox" style="line-height: 140%">
- <!--{if $post['avatar'] && $showavatars}-->
- <a href="###" onclick="toggle_collapse('user_$post[number]');" title="点击查看详细信息">$post[avatar]</a><br />
- <!--{else}-->
- <a href="###" onclick="toggle_collapse('user_$post[number]');" title="点击查看详细信息"><div class="avatar"><img src="images/avatars/noavatar.gif" border="0" /></div></a><br />
- <!--{/if}-->
- <!--{if $post['medals']}-->
- <!--{loop $post['medals'] $medal}-->
- <img src="images/common/$medal[image]" border="0" alt="$medal[name]" />
- <!--{/loop}-->
- <br />
- <!--{/if}-->
- {eval showstars($post['stars']);}<br />
- <!--{if $post['customstatus']}-->$post[customstatus]<br /><!--{/if}-->
- 级别 $post[authortitle]<br />
- {lang posts} $post[posts]<br />
- {lang credits} $post[credits]<br />
- <span id="user_$post[number]" style="display: none">
- {lang digest_posts} <!--{if $post['digestposts']}--><a href="digest.php?authorid=$post[authorid]">$post[digestposts]</a><!--{else}-->$post[digestposts]<!--{/if}--><br />
- {lang uid} $post[uid]<br />
- <!--{loop $extcredits_thread $key $credit}-->
- $credit[title] $post[$key] $credit[unit]<br />
- <!--{/loop}-->
- {lang readperm} $post[readaccess]<br />
- {lang regtime} $post[regdate]
- <!--{loop $_DCACHE['fields_thread'] $field}-->
- <br />$field[title]
- <!--{if $field['selective']}-->
- $field['choices'][$post['field_'.$field['fieldid']]]
- <!--{else}-->
- $post['field_'.$field['fieldid']]
- <!--{/if}-->
- <!--{/loop}-->
- <!--{if $post['location']}--><br />{lang location} $post[location]<!--{/if}--><br />
- <!--{if $vtonlinestatus && $post['authorid']}-->
- <!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
- {lang online_status} <b>{lang online}</b>
- <!--{else}-->
- {lang online_status} {lang offline}
- <!--{/if}-->
- <!--{/if}-->
- </span>
- <!--{if $post['alipay']}--><br /><a href="https://www.alipay.com/payto:$post[alipay]?partner=20880020258585430156" target="_blank"><img src="{IMGDIR}/payto.gif" border="0" alt="{lang payto_author}" /></a><!--{/if}-->
- </div>
- <!--{else}-->
- <div class="box" style="width: 88%; text-align: left; line-height: 18px;">
- <!--{if !$post['authorid']}-->
- {lang unregistered}
- <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
- {lang member_anonymous}
- <!--{else}-->
- {lang member_deleted}
- <!--{/if}-->
- </div>
- <!--{/if}-->
- </div>
- <div style="float: right; width: 79%;">
- <div class="postmain">
- <a href="misc.php?action=viewratings&tid=$tid&pid=$post[pid]" title="{lang rate} $post[rate]">$post[ratings]</a>
- <!--{if $post['subject']}--><span class="bold">$post[subject]</span><br /><!--{/if}--><br />
- <!--{if $adminid !=1 && $bannedmessages && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
- {lang message_banned}
- <!--{else}-->
- <table width="100%"><tr><td><span id="message$post[pid]" class="t_msgfont postmsg"><!--{if !empty($advlist['thread3'][$post['count']])}--><div style="float: right">$advlist[thread3][$post[count]]</div><!--{/if}-->$post[message]</span></td></tr></table>
- <!--{if $post['attachment']}-->
- <br /><br /><img src="images/attachicons/common.gif" alt="" /> {lang attachment}: <i>{lang attach_nopermission}</i>
- <!--{elseif $hideattach && $post['attachments']}-->
- <br /><br /><img src="images/attachicons/common.gif" alt="" /> {lang attachment}: <i>{lang attachment_reply_show}</i>
- <!--{elseif $post['attachlist']}-->
- <br /><br />
- <div class="msgbody"><div class="msgheader">
- <!--{if CURSCRIPT != 'blog'}--><div class="right"><a href="member.php?action=credits&view=getattach" target="_blank"><img src="{IMGDIR}/credits_attachlist.gif" border="0" alt="{lang credits_policy_view}" /></a></div><!--{/if}-->
- {lang attachment}</div><div class="msgborder" style="padding: 0px; border-bottom: 0px;">
- $post[attachlist]
- </div></div>
- <!--{/if}-->
- <!--{if $post['number'] == 1 && $relatedkeywords}--><br /><br /><span class="bold">{lang thread_keywords}</span> $relatedkeywords<br /><br /><!--{/if}-->
- <!--{if $relatedthreadlist && !$qihoo_location && $post['number'] == 1}-->
- <br /><fieldset><legend>{lang qihoo_relatedthreads}</legend><br />
- <!--{loop $relatedthreadlist $key $threads}-->
- <a href="viewthread.php?tid=$threads[tid]" target="_blank">$threads[title]</a><br />
- <!--{/loop}-->
- </fieldset>
- <!--{/if}-->
- <!--{if !empty($post['ratelog'])}-->
- <br /><fieldset><legend><a href="misc.php?action=viewratings&tid=$tid&pid=$post[pid]" title="{lang rate_view}">{lang thread_rate_log_lately}</a></legend><br />
- <table border="0" cellspacing="0" cellpadding="0">
- <!--{loop $post['ratelog'] $ratelog}-->
- <tr><td><a href="space.php?uid=$ratelog[uid]" target="_blank">$ratelog[username]</a></td>
- <td> $ratelog[dateline]</td><td> {$extcredits[$ratelog[extcredits]][title]}</td><td> <b>$ratelog[score]</b></td>
- <td> $ratelog[reason]</td></tr>
- <!--{/loop}-->
- </table>
- </fieldset>
- <!--{/if}-->
- <!--{/if}-->
- <br /><br />
- </div>
- <!--{if $post['signature'] && !$post['anonymous'] && $showsignatures}-->
- <div class="postmain" style="margin-top: 80px">
- <span class="postmsg" style="font-size: 12px;"><img src="images/common/sigline.gif" alt="" /><br /><br /><table><tr><td><div class="t_signature" $maxsigrows>$post[signature]</div></td></tr></table></span>
- <br />
- </div>
- <!--{/if}-->
- </div>
- </div>
- <!--{if !empty($advlist['thread1'][$post['count']])}-->
- <div class="memcpspeed" style="width: 100%">
- <div class="memcpleft" style="width: 20%; float: left"><p class="lbox"> </p></div>
- <div style="float: left; width: 79%; background-color: {POSTNOTICEBG}"><p class="lbox">[{lang advertisement}] $advlist[thread1][$post[count]]</p></div>
- </div>
- <!--{/if}-->
- <div class="maxspeed altbg1" style="width: 100%">
- <div style="width:20%; float: left"><p class="lbox"><!--{if $forum['ismoderator']}--><!--{if $allowviewip}--><a href="topicadmin.php?action=getip&fid=$fid&tid=$tid&pid=$post[pid]"><strong>IPaddress</strong></a><!--{/if}--><!--{/if}--></p></div>
- <div style="width:79%">
- <p class="lbox"><a href="###" style="color: #ff0000" onclick="window.clipboardData.setData('text','{$boardurl}viewthread.php?tid=$tid&page=$page#pid$post[pid]')">[ 第$post[number]楼 ]</a> | <strong>Posted:</strong><!--{if $thread['special'] != 3 || $thread['price'] >= 0 || $thread['dateline'] + 1 != $post['dbdateline'] || $post['first']}-->$post[dateline] <!--{/if}--><a href="###" onclick="scroll(0,0)"><img src="{IMGDIR}/top.gif" border="0" alt="{lang top}" /></a></p>
- </div>
- </div>
- </div>
- <!--{if !empty($advlist['interthread']) && $post['first'] && $thread['replies']}-->
- <div class="smain"><p class="lbox">$advlist[interthread]</p></div><!--{/if}-->
- <!--{/loop}-->
- </form>
- <div class="main">
- <div class="left">$multipage</div>
- <div class="right" style="width: 40%">
- <!--{if $allowpostreply || !$discuz_uid}--><div class="right"> <a href="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra"><img src="{IMGDIR}/reply.gif" border="0" alt="" /></a></div><!--{/if}-->
- <!--{if $allowpost || !$discuz_uid}-->
- <div id="newspecialfooter" class="right" onmouseover="showMenu(this.id)"><a href="post.php?action=newthread&fid=$fid&extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0" alt="" /></a><a href="###"><img src="{IMGDIR}/newspecial.gif" border="0" alt="" /></a></div>
- <!--{/if}-->
- </div>
- </div>
- <!--{if $relatedthreadlist && $qihoo_location}-->
- <div class="smain">
- <div class="header">
- <div class="topic">{lang qihoo_relatedthreads}</div>
- <div class="topic" style="float: right">{lang qihoo_relatedthreads} <a href="http://www.qihoo.com" target="_blank">{lang qihoo_afford}</a> <a href="http://search.qihoo.com/usearch.html?kw=$searchkeywords&relate=$thread['subjectenc']&sort=rdate&site=discuzall&site=$site" target="_blank">{lang thread_more_related_threads}</a></div>
- <div class="collapsed_img"><a href="###" onclick="toggle_collapse('relatedthreads');"><img id="relatedthreads_img" src="{IMGDIR}/{$relatedthreads['img']}" border="0" alt="" /></div>
- </div>
- <div class="category">
- <div style="width: 14%; float: left">{lang forum}</div>
- <div style="width: 15%">{lang lastpost}</div>
- <div style="width: 6%">{lang views}</div>
- <div style="width: 6%">{lang replies}</div>
- <div style="width: 14%">{lang author}</div>
- <div style="width: 44%">{lang subject}</div>
- </div>
- <!--{loop $relatedthreadlist $key $threads}-->
- <div class="maxspeed">
- <div style="width: 14%; float: left"><p class="box"><a href="forumdisplay.php?fid=$threads[fid]" target="_blank">$_DCACHE[forum][fid][name]</a></p></div>
- <div style="width: 15%"><p class="box">$threads[rdate]</p></div>
- <div style="width: 6%"><p class="box">$threads[vnum]</p></div>
- <div style="width: 6%"><p class="box">$threads[rnum]</p></div>
- <div style="width: 14%"><p class="sbox"><a href="space.php?username={echo rawurlencode($threads[author])}" target="_blank">$threads[author]</a><br />$threads[pdate]</p></div>
- <div style="width: 44%"><p class="box"><a href="viewthread.php?tid=$threads[tid]" target="_blank">$threads[title]</a></p></div>
- </div>
- <!--{/loop}-->
- </div>
- <!--{/if}-->
- <!--{if $fastpost && $allowpostreply}-->
- <script type="text/javascript">
- var postminchars = parseInt('$minpostsize');
- var postmaxchars = parseInt('$maxpostsize');
- var disablepostctrl = parseInt('$disablepostctrl');
- function validate(theform) {
- if (theform.message.value == "" && theform.subject.value == "") {
- alert("{lang post_subject_and_message_isnull}");
- theform.message.focus();
- return false;
- } else if (theform.subject.value.length > 80) {
- alert("{lang post_subject_toolong}");
- theform.subject.focus();
- 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;
- }
- 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 class="smain">
- <div class="header">
- <div class="topic">{lang post_fastreply}</div>
- <div class="collapsed_img">
- <a href="member.php?action=credits&view=forum_reply&fid=$fid" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" border="0" /></a>
- </div>
- </div>
- <div class="maxspeed">
- <div style="float: left; width: 18%;"><p class="box bold">{lang options}</p></div>
- <div style="float: left; width: 6%;"><p class="box bold">{lang subject}</p></div>
- <div style="width: 25%"><p class="box bold">Smilies</p></div>
- <div style="width: 50%; text-align: left; padding-top: 2px;"><input type="text" name="subject" style="width:60%" value="" tabindex="1"></div>
- </div>
- <div class="memcpspeed">
- <div style="float: left; width: 18%;">
- <p class="lxbox">
- <input class="checkbox" type="checkbox" name="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br />
- <input class="checkbox" type="checkbox" name="smileyoff" value="1"> {lang disable} {faq smilies}<br />
- <input class="checkbox" type="checkbox" name="bbcodeoff" value="1"> {lang disable} {faq discuzcode}<br />
- <!--{if $allowanonymous || $forum['allowanonymous']}--><input class="checkbox" type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br /><!--{/if}-->
- <input class="checkbox" type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br />
- <input class="checkbox" type="checkbox" name="emailnotify" value="1"> {lang post_email_notify}
- </p>
- </div>
- <div style="float: left; width: 6%;"><p class="box bold">{lang content}</p></div>
- <script type="text/javascript">
- var textobj = $('message');
- window.onbeforeunload = function () {saveData(textobj.value)};
- if(is_ie >= 5 || is_moz >= 2) {
- var lang = new Array();
- lang['post_autosave_none'] = "{lang post_autosave_none}";
- lang['post_autosave_confirm'] = "{lang post_autosave_confirm}";
- } else {
- $('restoredata').style.display = 'none';
- }
- </script>
- <div style="float: right; width: 25%">
- <!--{if $smileyinsert && $_DCACHE['smiliestable']}-->
- <div id="smiliestable"><div id="smtbl_1"><table cellpadding="3" cellspacing="0" width="80%" border="0" align="center">
- <script language="javascript">document.write('$_DCACHE[smiliestable]');</script>
- <!--{if $smmultipage}-->
- <tr><td colspan="$smcols">$smmultipage</td></tr>
- <!--{/if}-->
- </table></div></div>
- <!--{if $smpage > 1}-->
- <script type="text/javascript">
- <!--{if $attackevasive & 1}-->setTimeout('getSmilies()', 2001);<!--{else}-->getSmilies();<!--{/if}-->
- </script>
- <!--{/if}-->
- <!--{/if}-->
- </div>
- <div style="float: right; width: 50%; text-align: left">
- <textarea rows="7" cols="10" name="message" id="message" class="autosave" style="width: 98%; height: 120px; word-break: break-all" onKeyDown="ctlent(event);" tabindex="2"></textarea><br /><br />
- <input class="button" type="submit" name="replysubmit" id="postsubmit" value="{lang post_topicsubmit}" tabindex="3" title="{lang post_submit_hotkey}">
- <input type="submit" name="previewpost" class="lightbutton" value="{lang post_previewpost}" tabindex="4">
- <input type="button" class="lightbutton" name="restoredata" id="restoredata" value="{lang post_autosave_restore}" tabindex="5" title="{lang post_autosave_last_restore}" onclick="loadData()">
- <input type="reset" name="topicsreset" class="lightbutton" value="{lang post_topicreset}" tabindex="6"><br /><br />
- </div>
- </div>
- </div>
- </form>
- <!--{/if}-->
- <!--{if $forumjump && $jsmenu[1]}-->
- <div class="headermenu_popup" id="forumlist_menu" style="display: none">
- <table cellpadding="4" cellspacing="0" border="0">
- <tr><td class="popupmenu_option"><a href="$indexname" class="nav">$bbname</a></td></tr>
- {$forummenu}
- </table>
- </div>
- <!--{/if}-->
- {template footer}
- <script type="text/javascript" src="include/javascript/msn.js"></script>
- <!--{if $relatedthreadupdate}-->
- <script type="text/javascript" src="relatethread.php?tid=$tid&subjectenc=$thread[subjectenc]&verifykey=$verifykey"></script>
- <!--{/if}-->
复制代码
[ 本帖最后由 kaobai 于 2007-6-3 18:13 编辑 ] |