{template supesite_header}
<div class="msglist" style="margin-top: 10px;">
	<h3 class="topblock"><a href="$supe[siteurl]/?action_mygroup_gid_$sgid">$circle[groupname]</a> &raquo; <a href="$supe[siteurl]/?action_mygroup_gid_$thread[sgid]_op_list_type_bbs">{lang circle_bbs}</a> $navigation</h3>
</div>

<!--{if !empty($qihoo_status) && $searchboxstatus}-->
<div class="searchbar">
	<form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';" class="right">
		<input type="hidden" name="searchsubmit" value="yes">
		<input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="27" class="input" style="{BGCODE}" onmouseover="this.focus();this.value='';this.onmouseover=null;" onfocus="this.select()">
		<input name="searchsubmit" class="button" type="submit" value="{lang search}">
	</form>
</div>
<!--{/if}-->

<!--{if !empty($advlist['text'])}-->
<table class="advlist" cellspacing="0" border="0" cellpadding="5" width="100%">$advlist[text]</table>
<!--{/if}-->

<!--{if !empty($newpmexists) || $announcepm}-->
<div class="maintable">
	{template supesite_pmprompt}
</div>
<!--{/if}-->

<table width="100%" cellspacing="0" cellpadding="0" id="threadtopact">
	<tr>
		<td>$multipage</td>
		<td align="right">
		<!--{if $allowpostreply || !$discuz_uid}--><div class="right">&nbsp;<a href="post.php?action=reply&amp;fid=$fid&amp;tid=$tid&amp;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&amp;fid=$fid&amp;sgid=$thread[sgid]&amp;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 ($allowposttrade && $ec_id) || $allowpostpoll || $allowpostreward || $allowpostactivity || !$discuz_uid}-->
				<div class="popupmenu_popup newspecialmenu" id="newspecialheader_menu" style="display: none">
				<table cellpadding="4" cellspacing="0" border="0" width="100%">
				<!--{if $allowpostpoll || !$discuz_uid}--><tr><td class="popupmenu_option"><div class="newspecial"><a href="post.php?action=newthread&amp;fid=$fid&amp;sgid=$thread[sgid]&amp;extra=$extra&amp;poll=yes">{lang thread_poll}</a></div></td></tr><!--{/if}-->
				<!--{if ($allowposttrade && $ec_id) || !$discuz_uid}--><tr><td class="popupmenu_option"><div class="newspecial"><a href="post.php?action=newthread&amp;fid=$fid&amp;sgid=$thread[sgid]&amp;extra=$extra&amp;trade=yes">{lang thread_trade}</a></div></td></tr><!--{/if}-->
				<!--{if $allowpostreward || !$discuz_uid}--><tr><td class="popupmenu_option"><div class="newspecial"><a href="post.php?action=newthread&amp;fid=$fid&amp;sgid=$thread[sgid]&amp;extra=$extra&amp;reward=yes">{lang thread_reward}</a></div></td></tr><!--{/if}-->
				<!--{if $allowpostactivity || !$discuz_uid}--><tr><td class="popupmenu_option"><div class="newspecial"><a href="post.php?action=newthread&amp;fid=$fid&amp;sgid=$thread[sgid]&amp;extra=$extra&amp;activity=yes">{lang thread_activity}</a></div></td></tr><!--{/if}-->
				</table></div>
			<!--{/if}-->
		<!--{/if}-->
		</td>
	</tr>
</table>

<!--{if $thread['special'] == 1 && $polloptions}-->
	{template supesite_viewthread_poll}
<!--{elseif $thread['special'] == 2}-->
	{template supesite_viewthread_trade}
<!--{elseif $thread['special'] == 4}-->
	{template supesite_viewthread_activity}
<!--{/if}-->

<script type="text/javascript">
function fastreply(subject) {
	if($('postform')) {
		$('postform').subject.value = subject;
		$('postform').message.focus();
	}
}
</script>

<div class="msglist">
	<div class="morelinks">
		<a href="viewthread.php?action=printable&amp;tid=$tid" target="_blank">{lang thread_printable}</a> |
		<a href="misc.php?action=emailfriend&amp;tid=$tid">{lang thread_email_friend}</a> |
		<a href="my.php?item=subscriptions&amp;subadd=$tid" id="ajax_subscription" onclick="ajaxmenu(event, this.id)">{lang thread_subscribe}</a> |
		<a href="my.php?item=favorites&amp;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&amp;op=add&amp;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&amp;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&amp;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}-->
	</div>
	<h3 class="topblock"><strong>{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]</strong>
	</h3>

<!--{if $lastmod['modaction'] || $thread['blog'] || $thread['readperm'] || $thread['price'] != 0 || $thread[itemid] || $lastmod['magicname']}-->
	<div class="threadinfo">
	<!--{if $thread[itemid]}-->
		<a href="$supe[siteurl]/index.php?action/viewspace/itemid/$thread[itemid]" target="_blank">{lang supe_thread_already_been_join_to_xspace}</a>
	<!--{/if}-->
	<!--{if $thread['special'] == '0' && $thread['price'] > 0}-->
		&nbsp; <a href="misc.php?action=viewpayments&amp;tid=$tid">{lang price_thread} {$extcredits[$creditstrans][title]} <span class="bold">$thread[price]</span> {$extcredits[$creditstrans][unit]}</a> &nbsp;
	<!--{elseif $thread['special'] == 3}-->
		&nbsp; <strong>
		<!--{if $thread['price'] > 0 }-->
			[{lang reward_unsolved}]
		<!--{elseif $thread['price'] < 0}-->
			[{lang reward_solved}]
		<!--{/if}-->
		{lang reward_thethread} {$extcredits[$creditstrans][title]} $rewardprice</strong> {$extcredits[$creditstrans][unit]}</a> &nbsp;
	<!--{/if}-->
	<!--{if $lastmod['modaction']}-->&nbsp; <a href="misc.php?action=viewthreadmod&amp;tid=$tid" title="{lang thread_mod}" target="_blank">{lang thread_mod_by}</a>&nbsp;<!--{/if}-->
	<!--{if $thread['blog']}-->&nbsp; <a href="space.php?$thread[authorid]/myblogs" target="_blank">{lang thread_blog}</a> &nbsp;<!--{/if}-->
	<!--{if $thread['readperm']}-->&nbsp; {lang readperm_thread} <strong>$thread[readperm]</strong> &nbsp;<!--{/if}-->
	<!--{if $lastmod['magicname']}-->&nbsp; <a href="misc.php?action=viewthreadmod&amp;tid=$tid" title="{lang thread_mod}" target="_blank">{lang magics_logs}</a>&nbsp;<!--{/if}-->
	</div>
<!--{/if}-->
</div>

<form method="post" name="delpost" action="topicadmin.php?action=delpost&amp;fid=$fid&amp;tid=$tid&amp;page=$page">
	<input type="hidden" name="formhash" value="{FORMHASH}">
	<!--{loop $postlist $post}-->
		<table summary="post#$post[pid]" cellspacing="0" cellpadding="0" class="viewthread" id="pid$post[pid]">
			<tr>
				<th>$post[newpostanchor] $post[lastpostanchor]
				<!--{if $forum['ismoderator']}-->
					<!--{if $allowviewip}--><a href="topicadmin.php?action=getip&amp;fid=$fid&amp;tid=$tid&amp;pid=$post[pid]" id="ajax_getip_$post[count]" onclick="ajaxmenu(event, this.id, 10000)"><img src="{IMGDIR}/ip.gif" border="0" align="right" alt="{lang admin_getip}" /></a><!--{/if}-->
				<!--{/if}-->
				<!--{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}-->
					[<a href="magic.php?action=user&amp;pid=$post[pid]" target="_blank">{lang magics_use}</a>]
					<br />
						$post[authortitle]<br />
						{eval showstars($post['stars']);}<br />
						<!--{if $post['customstatus']}-->$post[customstatus]<br /><!--{/if}-->
						<!--{if $post['avatar'] && $showavatars}-->
							$post[avatar]
						<!--{else}-->
							<br /><br />
						<!--{/if}-->
						<!--{if $post['medals']}-->
							<!--{loop $post['medals'] $medal}-->
								<img src="images/common/$medal[image]" border="0" alt="$medal[name]" /> &nbsp;
							<!--{/loop}-->
						<br>
						<!--{/if}-->
						{lang uid} $post[uid]<br />
						{lang digest_posts} <!--{if $post['digestposts']}--><a href="digest.php?authorid=$post[authorid]">$post[digestposts]</a><!--{else}-->$post[digestposts]<!--{/if}--><br />
						{lang credits} $post[credits]<br />
						{lang posts} $post[posts]<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]&nbsp;
							<!--{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}-->
						<!--{if $vtonlinestatus && $post['authorid']}-->
							<!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
								<br />{lang online_status} <strong>{lang online}</strong>
							<!--{else}-->
								<br />{lang online_status} {lang offline}
							<!--{/if}-->
						<!--{/if}-->
						<!--{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}-->
					<!--{else}-->
						<!--{if !$post['authorid']}-->
							<span class="bold">{lang guest}</span> <span class="smalltxt">$post[useip]<br />{lang unregistered}</span>
						<!--{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><br>{lang member_anonymous}
						<!--{else}-->
							<span class="bold">$post[author]</span><br>
							{lang member_deleted}
						<!--{/if}-->
					<!--{/if}-->
					</th>
					<td style="vertical-align: top;">
	<table summary="" border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr><td>
		<a href="{$boardurl}viewthread.php?tid=$tid&amp;page=$page$fromuid#pid$post[pid]" class="floor">$post[number]</a>
		<!--{if $thread['special'] == 3 && $thread['price'] < 0 && $thread['dateline'] + 1 == $post['dbdateline'] && $post['first'] == 0 }-->
			<span class="bestanswer">{lang reward_bestanswer}</span>
		<!--{/if}-->
		<p class="postlinks">
			<!--{if $thread['special'] != 3 || $thread['price'] >= 0 || $thread['dateline'] + 1 != $post['dbdateline'] || $post['first']}-->{lang poston} $post[dateline]&nbsp;<!--{/if}-->
			<!--{if $post['username'] && !$post['anonymous']}-->
			<a href="viewpro.php?uid=$post[authorid]" target="_blank">{lang view_profile}</a>&nbsp;
			<!--{if !empty($post[spacename])}-->
				<a href="space.php?$post[authorid]" target="_blank" title="$post[spacename]">
			<!--{else}-->
				<a href="space.php?$post[authorid]" target="_blank" title="{$post[username]}{lang space_userspace}">
			<!--{/if}-->
			{lang space}</a>&nbsp;
			<!--{if $post['site']}--><a href="$post[site]" target="_blank">{lang homepage}</a><!--{/if}-->
			<a href="pm.php?action=send&amp;uid=$post[authorid]" target="_blank">{lang pm}</a>&nbsp;
			<a 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>&nbsp;
			<!--{if $post['msn']}--><a href="#" onclick="msnoperate('add', '$post[msn]')"><img src="{IMGDIR}/msnadd.gif" border="0" alt="{lang msn_add}"></a>&nbsp;<a href="#" onclick="msnoperate('chat', '$post[msn]')"><img src="{IMGDIR}/msnchat.gif" border="0" alt="{lang msn_chat}"></a><!--{/if}-->
			<!--{if $post['qq']}--><a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=$post[qq]&amp;Site=$bbname&amp;Menu=yes" target="_blank"><img src="http://wpa.qq.com/pa?p=1:$post[qq]:4"  border="0" alt="QQ" /></a><!--{/if}-->
			<!--{if $post['icq']}--><a href="http://wwp.icq.com/scripts/search.dll?to=$post[icq]" target="_blank"><img src="http://web.icq.com/whitepages/online?icq=$post[icq]&amp;img=5" alt="ICQ {lang online_status}" border="0"  /></a><!--{/if}-->
			<!--{if $post['yahoo']}--><a href="http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg" target="_blank"><img src="{IMGDIR}/yahoo.gif" alt="Yahoo!" border="0"  /></a><!--{/if}-->
			<!--{if $post['taobao']}--><script type="text/javascript">document.write('<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&amp;uid='+encodeURIComponent('$post[taobao]')+'&amp;s=2"><img src="http://amos1.taobao.com/online.ww?v=2&uid='+encodeURIComponent('$post[taobao]')+'&s=2" alt="{lang taobao}" border="0"  /></a>&nbsp;');</script><!--{/if}-->
		<!--{/if}-->
		</p>
		<!--{if !empty($advlist['thread2'][$post['count']])}-->[{lang advertisement}] $advlist[thread2][$post[count]]<br><!--{/if}-->
	</td></tr>
	<tr><td>
	<div class="postcontent">
	<span class="right">
		<a href="misc.php?action=viewratings&amp;tid=$tid&amp;pid=$post[pid]" title="{lang rate} $post[rate]">$post[ratings]</a>
		<!--{if MSGBIGSIZE || MSGSMALLSIZE}-->
			&nbsp;
			<!--{if MSGSMALLSIZE}--><a href="###" onclick="$('message$post[pid]').style.fontSize='{MSGSMALLSIZE}'">{lang small}</a><!--{/if}-->
			<a href="###" onclick="$('message$post[pid]').style.fontSize='{MSGFONTSIZE}'">{lang middle}</a>
			<!--{if MSGBIGSIZE}--><a href="###" onclick="$('message$post[pid]').style.fontSize='{MSGBIGSIZE}'">{lang big}</a><!--{/if}-->
		<!--{/if}-->
		<!--{if !empty($advlist['thread3'][$post['count']])}--><br>$advlist[thread3][$post[count]]<!--{/if}-->
	</span>
	<!--{if $post['subject']}-->
		<h4>$post[subject]</h4>
	<!--{/if}-->
	<!--{if $adminid !=1 && $bannedmessages && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
		{lang message_banned}
	<!--{else}-->
		<div id="message$post[pid]" class="postmessage">$post[message]</div>
		<!--{if $post['attachment']}-->
			<br><br><img src="images/attachicons/common.gif" alt="" />&nbsp;{lang attachment}: <i>{lang attach_nopermission}</i>
		<!--{elseif $hideattach && $post['attachments']}-->
			<br><br><img src="images/attachicons/common.gif" alt="" />&nbsp;{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&amp;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}--><p><strong>{lang thread_keywords}</strong> $relatedkeywords</p><!--{/if}-->
		<!--{if $relatedthreadlist && !$qihoo_location && $post['number'] == 1}-->
			<fieldset><legend>{lang qihoo_relatedthreads}</legend>
				<ul>
				<!--{loop $relatedthreadlist $key $threads}-->
					<li><a href="viewthread.php?tid=$threads[tid]" target="_blank">$threads[title]</a></li>
				<!--{/loop}-->
				</ul>
			</fieldset>
		<!--{/if}-->
		<!--{if !empty($post['ratelog'])}-->
			<fieldset>
				<legend><a href="misc.php?action=viewratings&amp;tid=$tid&amp;pid=$post[pid]" title="{lang rate_view}">{lang thread_rate_log_lately}</a></legend>
				<ul>
				<!--{loop $post['ratelog'] $ratelog}-->
					<li><a href="space.php?uid=$ratelog[uid]" target="_blank">$ratelog[username]</a>
					&nbsp;&nbsp;$ratelog[dateline]
					&nbsp;&nbsp;{$extcredits[$ratelog[extcredits]][title]}
					&nbsp;&nbsp;<strong>$ratelog[score]</strong>
					&nbsp;&nbsp;$ratelog[reason]</li>
				<!--{/loop}-->
				</ul>
			</fieldset>
		<!--{/if}-->
		</div>
		</td></tr>
		<!--{if $post['signature'] && !$post['anonymous'] && $showsignatures}-->
			<tr><td valign="bottom">
			<img src="images/common/sigline.gif" alt="" /><br><div class="t_signature" $maxsigrows>$post[signature]</div>
			</td></tr>
		<!--{/if}-->
		<tr><td align="right">
			<!--{if ($forum['ismoderator'] || $thread['authorid'] == $discuz_uid) && $discuz_uid != $post['authorid'] && $post['authorid'] != $thread['authorid'] && $post['first'] == 0 && $thread['price'] > 0 && $thread['special'] == 3}-->
			&nbsp;<a href="###" onclick="setanswer($post['pid'])"><img src="{IMGDIR}/right.gif" border="0" alt="" /> <span class="bold">{lang reward_set_bestanswer}</span></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)}-->&nbsp;<a href="post.php?action=edit&amp;fid=$fid&amp;tid=$tid&amp;pid=$post[pid]&amp;page=$page&amp;extra=$extra">{lang edit}</a><!--{/if}-->
			<!--{if $allowpostreply}-->&nbsp;<a href="post.php?action=reply&amp;fid=$fid&amp;tid=$tid&amp;repquote=$post[pid]&amp;extra=$extra&amp;page=$page">{lang reply_quote}</a><!--{/if}-->
			<!--{if $discuz_uid && $reportpost}-->&nbsp;<a href="misc.php?action=report&amp;fid=$fid&amp;tid=$tid&amp;pid=$post[pid]&amp;page=$page">{lang reportpost}</a><!--{/if}-->
			<!--{if $raterange && $post['authorid']}-->&nbsp;<a href="misc.php?action=rate&amp;tid=$tid&amp;pid=$post[pid]&amp;page=$page">{lang rate}</a><!--{/if}-->
			<!--{if $post['rate'] && $forum['ismoderator']}-->&nbsp;<a href="misc.php?action=removerate&amp;tid=$tid&amp;pid=$post[pid]&amp;page=$page">{lang removerate}</a><!--{/if}-->
			<!--{if $fastpost && $allowpostreply}--><a href="###" onclick="fastreply('{lang post_fastreply_author}')">{lang reply}</a><!--{/if}-->
			<a href="###" onclick="scroll(0,0)"><img src="{IMGDIR}/top.gif" border="0" alt="{lang top}" /></a>
			<!--{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}-->
		</td></tr>
		<!--{if !empty($advlist['thread1'][$post['count']])}--><tr class="t_infoline"><td class="line" style="padding: 5px">[{lang advertisement}] $advlist[thread1][$post[count]]</td></tr><!--{/if}-->
	<!--{/if}-->
	</table></td></tr></table>
	<!--{if !empty($advlist['interthread']) && $post['first'] && $thread['replies']}--><div style="margin-bottom: 4px; width: 100%; overflow: hidden;">$advlist[interthread]</div><!--{/if}-->
<!--{/loop}-->
</form>


<table width="100%" cellspacing="0" cellpadding="0" style="margin-bottom: 6px;">
	<tr>
		<td valign="top">$multipage</td>
		<td align="right" valign="top">
		<!--{if $allowpostreply || !$discuz_uid}--><div class="right">&nbsp;<a href="post.php?action=reply&amp;fid=$fid&amp;tid=$tid&amp;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&amp;fid=$fid&amp;sgid=$thread[sgid]&amp;extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0" alt="" /></a><a href="###"><img src="{IMGDIR}/newspecial.gif" border="0" alt="" /></a></div>
			<!--{if ($allowposttrade && $ec_id) || $allowpostpoll || $allowpostreward || $allowpostactivity || !$discuz_uid}-->
				<div class="popupmenu_popup newspecialmenu" id="newspecialfooter_menu" style="display: none">
				<table cellpadding="4" cellspacing="0" border="0" width="100%">
				<!--{if $allowpostpoll || !$discuz_uid}--><tr><td class="popupmenu_option"><div class="newspecial"><a href="post.php?action=newthread&amp;fid=$fid&amp;sgid=$thread[sgid]&amp;extra=$extra&amp;poll=yes">{lang thread_poll}</a></div></td></tr><!--{/if}-->
				<!--{if ($allowposttrade && $ec_id) || !$discuz_uid}--><tr><td class="popupmenu_option"><div class="newspecial"><a href="post.php?action=newthread&amp;fid=$fid&amp;sgid=$thread[sgid]&amp;extra=$extra&amp;trade=yes">{lang thread_trade}</a></div></td></tr><!--{/if}-->
				<!--{if $allowpostreward || !$discuz_uid}--><tr><td class="popupmenu_option"><div class="newspecial"><a href="post.php?action=newthread&amp;fid=$fid&amp;sgid=$thread[sgid]&amp;extra=$extra&amp;reward=yes">{lang thread_reward}</a></div></td></tr><!--{/if}-->
				<!--{if $allowpostactivity || !$discuz_uid}--><tr><td class="popupmenu_option"><div class="newspecial"><a href="post.php?action=newthread&amp;fid=$fid&amp;sgid=$thread[sgid]&amp;extra=$extra&amp;activity=yes">{lang thread_activity}</a></div></td></tr><!--{/if}-->
				</table></div>
			<!--{/if}-->
		<!--{/if}-->
		</td>
	</tr>
</table>

<!--{if $relatedthreadlist && $qihoo_location}-->
	<div class="block">
		<div class="right" style="line-height: 26px;">
		<a href="http://www.qihoo.com" target="_blank">{lang qihoo_afford}</a>
		<a href="http://search.qihoo.com/usearch.html?kw=$searchkeywords&amp;relate=$thread['subjectenc']&amp;sort=rdate&amp;site=discuzall&amp;site=$site" target="_blank">{lang thread_more_related_threads}</a>
		</div>
		<h3>{lang qihoo_relatedthreads}</h3>
		<table cellpadding="0" cellspacing="0" border="0" class="forumdisplay">
			<tr>
				<th class="f_subject">{lang subject}</th>
				<th class="f_author">{lang author}</th>
				<th class="f_views">{lang replies}/{lang views}</th>
				<th class="f_last">{lang lastpost}</th>
			</tr>
			<!--{loop $relatedthreadlist $key $threads}-->
			<tbody>
			<tr>
				<td class="f_subject"><a href="viewthread.php?tid=$threads[tid]" target="_blank">$threads[title]</a></td>
				<td class="f_author"><a href="space.php?username={echo rawurlencode($threads[author])}" target="_blank">$threads[author]</a><span class="forumdateline">$threads[pdate]</span></td>
				<td class="f_views">$threads[rnum]/$threads[vnum]</td>
				<td class="f_last">$threads[rdate]</td>
			</tr>
			</tbody>
			<!--{/loop}-->
		</table>
	</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&amp;fid=$fid&amp;tid=$tid&amp;extra=$extra&amp;replysubmit=yes" onSubmit="return validate(this)">
	<input type="hidden" name="formhash" value="{FORMHASH}">
	<div class="block">
		<span class="morelinks"><a href="member.php?action=credits&amp;view=forum_reply&amp;fid=$fid" target="_blank">{lang credits_policy_view}</a></span>
		<h3>{lang post_fastreply}</h3>
		<table cellspacing="0" cellpadding="3" width="100%">
			<tr>
				<td width="18%">&nbsp;<span class="bold">{lang options}</span></td>
				<td width="6%" align="center"><span class="bold">{lang subject}</span></td>
				<td width="59%"><input type="text" name="subject" style="width:60%" value="" tabindex="1"></td>
				<td width="18%"><span class="bold" style="margin-left: 10%">Smilies</span></td>
			</tr>
			<tr class="bottom">
				<td width="18%" valign="top">
				<input class="checkbox" type="checkbox" name="parseurloff" id="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br>
				<input class="checkbox" type="checkbox" name="smileyoff" id="smileyoff" value="1"> {lang disable} {faq smilies}<br>
				<input class="checkbox" type="checkbox" name="bbcodeoff" id="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}
				</td>
				<td width="6%" class="altbg2" align="center" valign="top"><span class="bold">{lang content}</span></td>
				<td width="59%" class="altbg2" valign="top">
				<div style="width: 97%" class="smalltxt" align="right">
				<textarea rows="7" cols="10" name="message" id="message" class="autosave" style="width: 100%; height: 120px; word-break: break-all" onKeyDown="ctlent(event);" tabindex="2"></textarea>
				<div class="left" style="float: left;">
				<input class="button" type="submit" name="replysubmit" id="postsubmit" value="{lang post_topicsubmit}" tabindex="3" title="{lang post_submit_hotkey}">
				</div>
				<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">
				</div>
				</td>
				<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>
				<td width="18%" class="altbg1">
					<!--{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}-->
				</td>
			</tr>
		</table>
	</div>
	</form>
<!--{/if}-->

<!--{if $forum['ismoderator'] || $forumjump && !$jsmenu[1] || $visitedforums}-->
	<div class="block" style="padding: 5px; overflow: hidden;">
	<div class="right">
	<!--{if $forum['ismoderator']}-->
		<select name="action" id="action" onchange="if(this.options[this.selectedIndex].value != '') { if(this.options[this.selectedIndex].value != 'delpost') {
		window.location=('topicadmin.php?tid=$tid&amp;fid=$fid&amp;action='+this.options[this.selectedIndex].value+'&amp;sid=$sid');
		} else { document.delpost.submit(); } }">
		<option value="" selected>{lang admin_modoptions}</option>
		<!--{if $allowdelpost}-->
			<option value="delpost">{lang admin_delpost}</option>
			<option value="delete">{lang admin_delthread}</option>
		<!--{/if}-->
		<option value="close">{lang admin_close}</option>
		<option value="move">{lang admin_move}</option>
		<!--{if !$thread['special']}--><option value="copy">{lang admin_copy}</option><!--{/if}-->
		<option value="highlight">{lang admin_highlight}</option>
		<option value="type">{lang admin_type}</option>
		<option value="digest">{lang admin_digest}</option>
		<!--{if $allowstickthread}--><option value="stick">{lang admin_stick}</option><!--{/if}-->
		<!--{if $thread['price'] > 0 && $allowrefund && $thread['special'] == 0}--><option value="refund">{lang admin_refund}</option><!--{/if}-->
		<!--{if !$thread['special']}--><option value="split">{lang admin_split}</option><!--{/if}-->
		<!--{if !$thread['special']}--><option value="merge">{lang admin_merge}</option><!--{/if}-->
		<!--{if $thread['special'] == 3 && $thread['price'] < 0}--><option value="removereward">{lang admin_remove_reward}</option><!--{/if}-->
		<option value="bump">{lang admin_bump}</option>
		<option value="repair">{lang admin_repair}</option>
		<!--{if $supe['status'] && $allowpushthread && $forum['supe_pushsetting']['status'] == 2 && $thread['supe_pushstatus'] == 0}-->
			<option value="supe_push">{lang admin_supe_push}</option>
		<!--{/if}-->
		</select>
	<!--{/if}-->
	</div>
	<!--{if $forumjump && !$jsmenu[1]}-->
		<select onchange="if(this.options[this.selectedIndex].value != '') {
		window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&amp;sid=$sid') }">
		<option value="">{lang forum_jump}</option>
		$forumselect
		</select>&nbsp;
	<!--{/if}-->
	<!--{if $visitedforums}-->
		<select onchange="if(this.options[this.selectedIndex].value != '') {
		window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&amp;sid=$sid') }">
		<option value="">{lang visited_forums}</option>
		$visitedforums
		</select>
	<!--{/if}-->
	</div>
<!--{/if}-->

<!--{if $forumjump && $jsmenu[1]}-->
	<div class="popupmenu_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 supesite_footer}
<script type="text/javascript" src="include/javascript/msn.js"></script>
<!--{if $relatedthreadupdate}-->
<script type="text/javascript" src="relatethread.php?tid=$tid&amp;subjectenc=$thread[subjectenc]&amp;verifykey=$verifykey"></script>
<!--{/if}-->

