{template header}
<div class="subtable nav" style="width: {TABLEWIDTH}">
<a href="$indexname">$bbname</a> $navigation &raquo;
<!--{if $operation == 'delete'}-->
	{lang admin_delthread}
<!--{elseif $operation == 'move'}-->
	{lang admin_move}
<!--{elseif $operation == 'highlight'}-->
	{lang admin_highlight}
<!--{elseif $operation == 'type'}-->
	{lang admin_type}
<!--{elseif $operation == 'close'}-->
	{lang admin_openclose}
<!--{elseif $operation == 'stick'}-->
	{lang admin_stick_unstick}
<!--{elseif $operation == 'digest'}-->
	{lang admin_digest_addremove}
<!--{elseif $operation == 'supe_push'}-->
	{lang admin_supe_push_addremove}
<!--{elseif $operation == 'removereward'}-->
	{lang admin_supe_push_addremove}
<!--{elseif $operation == 'bump'}-->
	{lang admin_bump_down}
<!--{/if}-->
</div><br>

<form method="post" action="topicadmin.php?action=moderate&operation=$operation" id="postform">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="fid" value="$fid">
<input type="hidden" name="referer" value="$referer">

<div class="spaceborder" style="width: {TABLEWIDTH}">
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
<tr class="header">
<td colspan="2">
<!--{if $operation == 'delete'}-->
	{lang admin_delthread}
<!--{elseif $operation == 'move'}-->
	{lang admin_move}
<!--{elseif $operation == 'highlight'}-->
	{lang admin_highlight}
<!--{elseif $operation == 'type'}-->
	{lang admin_type}
<!--{elseif $operation == 'close'}-->
	{lang admin_openclose}
<!--{elseif $operation == 'stick'}-->
	{lang admin_stick_unstick}
<!--{elseif $operation == 'digest'}-->
	<a href="member.php?action=credits&view=digest" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0" /></a>{lang admin_digest_addremove}
<!--{elseif $operation == 'supe_push'}-->
	{lang admin_remove}
<!--{elseif $operation == 'bump'}-->
	{lang admin_bump_down}
<!--{/if}-->
</td>
</tr>

<tr>
<td class="altbg1" width="21%"><span class="bold">{lang username}</span></td>
<td class="altbg2">$discuz_userss <span class="smalltxt">[<a href="$link_logout">{lang member_logout}</a>]</span></td>
</tr>

<!--{if $operation == 'move'}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang admin_move_target}</span></td>
	<td class="altbg2"><select name="moveto">
	$forumselect
	</select></td>
	</tr>

	<tr>
	<td class="altbg1" valign="top"><span class="bold">{lang admin_move_type}</span></td>
	<td class="altbg2"><input class="radio" type="radio" name="type" value="normal" checked> {lang admin_move}<br>
	<input class="radio" type="radio" name="type" value="redirect"> {lang admin_move_redirect}<br></td>
	</tr>
<!--{elseif $operation == 'highlight'}-->
	<tr>
	<td class="altbg1" width="21%"><span class="bold">{lang admin_highlight_style}</span></td>
	<td class="altbg2">
	<input class="checkbox" type="checkbox" name="highlight_style[1]" value="1" $stylecheck[1]> <b>{lang admin_highlight_bold}</b>&nbsp;
	<input class="checkbox" type="checkbox" name="highlight_style[2]" value="1" $stylecheck[2]> <i>{lang admin_highlight_italic}</i>&nbsp;
	<input class="checkbox" type="checkbox" name="highlight_style[3]" value="1" $stylecheck[3]> <u>{lang admin_highlight_underline}</u>
	</td>
	</tr>

	<tr>
	<td class="altbg1" width="21%"><span class="bold">{lang admin_highlight_color}</span></td>
	<td class="altbg2">

	<table border="0" cellspacing="0" cellpadding="0"><tr>
	<td><input class="radio" type="radio" name="highlight_color" value="0" $colorcheck[0]></td><td>{lang default}</td>
	<td> &nbsp; <input class="radio" type="radio" name="highlight_color" value="1" $colorcheck[1]></td><td width="20" bgcolor="red">&nbsp;</td>
	<td> &nbsp; <input class="radio" type="radio" name="highlight_color" value="2" $colorcheck[2]></td><td width="20" bgcolor="orange">&nbsp;</td>
	<td> &nbsp; <input class="radio" type="radio" name="highlight_color" value="3" $colorcheck[3]></td><td width="20" bgcolor="yellow">&nbsp;</td>
	<td> &nbsp; <input class="radio" type="radio" name="highlight_color" value="4" $colorcheck[4]></td><td width="20" bgcolor="green">&nbsp;</td>
	<td> &nbsp; <input class="radio" type="radio" name="highlight_color" value="5" $colorcheck[5]></td><td width="20" bgcolor="cyan">&nbsp;</td>
	<td> &nbsp; <input class="radio" type="radio" name="highlight_color" value="6" $colorcheck[6]></td><td width="20" bgcolor="blue">&nbsp;</td>
	<td> &nbsp; <input class="radio" type="radio" name="highlight_color" value="7" $colorcheck[7]></td><td width="20" bgcolor="purple">&nbsp;</td>
	<td> &nbsp; <input class="radio" type="radio" name="highlight_color" value="8" $colorcheck[8]></td><td width="20" bgcolor="gray">&nbsp;</td>
	</tr></table>
<!--{elseif $operation == 'type'}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang admin_move_target}</span></td>
	<td class="altbg2">$typeselect</td>
	</tr>
<!--{elseif $operation == 'close'}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang action}</span></td>
	<td class="altbg2">
		<input class="radio" type="radio" name="close" value="0" $closecheck[0]> {lang admin_open} &nbsp; &nbsp;
		<input class="radio" type="radio" name="close" value="1" $closecheck[1]> {lang admin_close}
	</tr>
<!--{elseif $operation == 'stick'}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang level}</span></td>
	<td class="altbg2">
	<!--{if !$single || $threadlist[$tid]['displayorder'] > 0}-->
		<input class="radio" type="radio" name="level" value="0" onclick="$('expirationarea').disabled=1"> {lang admin_unstick} &nbsp; &nbsp;
	<!--{/if}-->
		<input class="radio" type="radio" name="level" value="1" $stickcheck[1] onclick="$('expirationarea').disabled=0"> <img src="{IMGDIR}/pin_1.gif" alt="" /> $threadsticky[2]
	<!--{if $allowstickthread >= 2}-->
		<input class="radio" type="radio" name="level" value="2" $stickcheck[2] onclick="$('expirationarea').disabled=0"> <img src="{IMGDIR}/pin_2.gif" alt="" /> $threadsticky[1]
		<!--{if $allowstickthread == 3}-->
			<input class="radio" type="radio" name="level" value="3" $stickcheck[3] onclick="$('expirationarea').disabled=0"> <img src="{IMGDIR}/pin_3.gif" alt="" /> $threadsticky[0]</td>
		<!--{/if}-->
	<!--{/if}-->
	</tr>
<!--{elseif $operation == 'digest'}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang level}</span></td>
	<td class="altbg2">
	<!--{if !$single || ($single && $threadlist[$tid]['digest'])}-->
		<input class="radio" type="radio" name="level" value="0" $digestcheck[0] onclick="$('expiration').disabled=1"> {lang admin_digest_remove} &nbsp; &nbsp;
	<!--{/if}-->
		<input class="radio" type="radio" name="level" value="1" $digestcheck[1] onclick="$('expiration').disabled=0"> <img src="{IMGDIR}/digest_1.gif" alt="" />
		<input class="radio" type="radio" name="level" value="2" $digestcheck[2] onclick="$('expiration').disabled=0"> <img src="{IMGDIR}/digest_2.gif" alt="" />
		<input class="radio" type="radio" name="level" value="3" $digestcheck[3] onclick="$('expiration').disabled=0"> <img src="{IMGDIR}/digest_3.gif" alt="" /></td></tr>

<!--{elseif $operation == 'supe_push'}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang topicadmin_push_supesite}</span></td>
	<td class="altbg2">
	<input class="radio" type="radio" name="supe_pushstatus" value="2" $supe_pushstatus[2]> {lang topicadmin_push_add} &nbsp; &nbsp;
	<input class="radio" type="radio" name="supe_pushstatus" value="-2" $supe_pushstatus[-2]> {lang topicadmin_push_remove} &nbsp; &nbsp;</td>
	</tr>

<!--{elseif $operation == 'bump'}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang action}</span></td>
	<td class="altbg2">
		<input class="radio" type="radio" name="isbump" value="1" checked> {lang admin_bump} &nbsp; &nbsp;
		<input class="radio" type="radio" name="isbump" value="0" > {lang admin_down}
	</tr>
<!--{/if}-->

<!--{if in_array($operation, array('stick', 'digest', 'highlight', 'close'))}-->
	<tr id="expirationarea">
	<td class="altbg1"><span class="bold">{lang thread_moderations_expiration}</span></td>
	<td class="altbg2"><span class="smalltxt"><input onclick="showcalendar(event, this, true)" type="text" name="expiration" id="expiration" size="15" value="$expirationdefault"> {lang thread_moderations_expiration_comment}</span></td>
	</tr>
<!--{/if}-->

{template topicadmin_reason}

<!--{if in_array($operation, array('stick', 'digest', 'highlight'))}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang admin_next}</span></td>
	<td class="altbg2"><input class="radio" type="radio" name="next" value="" checked> {lang none} &nbsp;
	<!--{if $operation != 'highlight'}--><input class="radio" type="radio" name="next" value="highlight"> {lang admin_highlight} &nbsp; <!--{/if}-->
	<!--{if $operation != 'stick'}--><input class="radio" type="radio" name="next" value="stick"> {lang admin_stick_unstick} &nbsp; <!--{/if}-->
	<!--{if $operation != 'digest'}--><input class="radio" type="radio" name="next" value="digest"> {lang admin_digest_addremove} &nbsp; <!--{/if}-->
	</tr>
<!--{/if}-->

</table></div><br>

<!--{if $single}-->
	<input type="hidden" name="moderate[]" value="$moderate[0]">
	<!--{if $loglist}-->
		<div class="spaceborder" style="width: {TABLEWIDTH}">
		<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
		<tr class="header"><td colspan="4">{lang thread_moderations}</td></tr>
		<tr align="center" class="category"><td width="15%">{lang thread_moderations_username}</td><td width="25%">{lang time}</td><td width="30%">{lang thread_moderations_action}</td><td width="30%">{lang thread_moderations_expiration}</td></tr>
		<!--{loop $loglist $log}-->
			<tr align="center" class="row" onMouseOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
			<td><!--{if $log[uid]}--><a href="space.php?uid=$log['uid']" target="_blank">$log['username']</a><!--{else}-->{lang thread_moderations_cron}<!--{/if}--></td>
			<td>$log['dateline']</td>
			<td $log['status']>{$modactioncode[$log['action']]}</td>
			<td $log['status']><!--{if $log['expiration']}-->$log['expiration']<!--{elseif in_array($log['action'], array('STK', 'HLT', 'DIG', 'CLS', 'OPN'))}-->{lang thread_moderations_expiration_unlimit}<!--{/if}--></td>
			</tr>
		<!--{/loop}-->
		</table></div><br>
	<!--{/if}-->
<!--{else}-->
	<div class="spaceborder" style="width: {TABLEWIDTH}">
	<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
	<tr align="center" class="header">
	<td width="48">&nbsp;</td>
	<td width="42%">{lang subject}</td>
	<td>{lang author}</td>
	<td>{lang replies}</td>
	<td>{lang lastpost}</td>
	</tr>
	<!--{loop $threadlist $thread}-->
		<tr class="row" onMouseOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
		<td align="center"><input class="checkbox" type="checkbox" name="moderate[]" value="$thread[tid]" checked></td>
		<td class="subject"><a href="viewthread.php?tid=$thread[tid]&extra=$extra">$thread[subject]</a></td>
		<td align="center"><!--{if $thread[author]}--><a href="space.php?uid=$thread[authorid]">$thread[author]</a><!--{else}-->{lang anonymous}<!--{/if}--></td>
		<td align="center">$thread[replies]</td>
		<td align="center"><font class="smalltxt">$thread[lastpost] by <!--{if $thread['lastposter']}--><a href="space.php?username=$thread[lastposterenc]">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}--></font></td>
		</tr>
	<!--{/loop}-->
	</td></tr></table></div><br>
<!--{/if}-->

<div class="option" style="width: {TABLEWIDTH}"><div class="submitbutton"><input class="button" type="submit" name="modsubmit" value="{lang submit}" id="postsubmit"> {lang post_submit_hotkey}</div></div>
</form>
<!--{if in_array($operation, array('stick', 'digest', 'highlight', 'close'))}-->
	<script type="text/javascript" src="include/javascript/calendar.js"></script>
<!--{/if}-->
{template footer}