<!--<?php print <<<EOT
-->
<table width='$tablewidth' cellspacing=0 cellpadding=0 align=center>
	<tr>
		<td align=left>
			<img src='$imgpath/$stylepath/index/home.gif' align=absbottom>
			<b>
				<a href='$db_bfn'>$db_bbsname</a> ->
<!--
EOT;
if($action=='del'){print <<<EOT
-->
				{#mawhole_del}
<!--
EOT;
}elseif($action=='move'){print <<<EOT
-->
				{#mawhole_move}
<!--
EOT;
}elseif($action=='copy'){print <<<EOT
-->
				{#mawhole_copy}
<!--
EOT;
}elseif($action=='headtopic'){print <<<EOT
-->
				{#mawhole_headtopic}
<!--
EOT;
}elseif($action=='digest'){print <<<EOT
-->
				{#mawhole_digest}
<!--
EOT;
}elseif($action=='type'){print <<<EOT
-->
				{#mawhole_type}
<!--
EOT;
}elseif($action=='check'){print <<<EOT
-->
				{#mawhole_check}
<!--
EOT;
}elseif($action=='lock'){print <<<EOT
-->
				{#mawhole_lock}
<!--
EOT;
}elseif($action=='pushtopic'){print <<<EOT
-->
				{#mawhole_pushtopic}
<!--
EOT;
}elseif($action=='edit'){print <<<EOT
-->
				{#mawhole_edit}
<!--
EOT;
}print <<<EOT
-->
			</b>
		</td>
	</tr>
</table>
<br><br>
<form name="form1" method="post" action="mawhole.php?">
<input type="hidden" name="action" value="$action">
<input type="hidden" name="fid"    value="$fid">
<input type="hidden" name="step"   value="2">
<!--
EOT;
if($threaddb){print <<<EOT
-->
<table width="$tablewidth" cellspacing=1 cellpadding=3 align=center $i_table>
	<tr align="center" class="head">
		<td width="5%">ID</td>
		<td>{#title}</td>   
		<td width="15%">{#forum}</td>
		<td width="15%">{#author}</td>
		<td width="8%">{#replies}</td>
		<td width="15%">{#posttime}</td>
	</tr>
<!--
EOT;
$id=0;
foreach($threaddb as $key=>$val){
$id++;
print <<<EOT
-->
	<tr align=center>
		<td class="f_one" ><input type="checkbox" name="tidarray[]" value="$val[tid]" checked>$id</td>
		<td class="f_one" align=left>
			<a href="read.php?tid=$val[tid]" target="_blank">$val[subject]</a>
		</td>
		<td class="f_one">
			<a href="thread.php?fid=$val[fid]" target="_blank">{$forum[$val[fid]][name]}</a>
		</td>
		<td class="f_one">
			<a href="profile.php?action=show&username=$val[author]" target="_blank">$val[author]</a>
		</td>
		<td class="f_one">$val[replies]</td>
		<td class="f_one">$val[date]</td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}print <<<EOT
-->
<br>
<table width="$tablewidth" cellspacing=1 cellpadding=3 align=center $i_table>
	<tr><td class="head" colspan="2">{#masingle_option}</td></tr>
<!--
EOT;
if($action=='headtopic'){
print <<<EOT
-->
	<tr>
		<td class='f_one' width='20%'>{#masingle_option}</td>
		<td class='f_one'>
			<input type='radio' name='topped' value='0' $topped_0> {#canceltopped}
			<input type='radio' name='topped' value='1' $topped_1> {#topped}1
<!--
EOT;
if($groupid != 5){
if($SYSTEM['topped']==2){print <<<EOT
-->
			<input type='radio' name='topped' value='2' $topped_2> {#topped}2
<!--
EOT;
} elseif($SYSTEM['topped']==3){print <<<EOT
-->
			<input type='radio' name='topped' value='2' $topped_2> {#topped}2
			<input type='radio' name='topped' value='3' $topped_3> {#topped}3
<!--
EOT;
}}print <<<EOT
-->
		</td>
	</tr>
<!--
EOT;
}elseif($action=='digest'){
print <<<EOT
-->
	<tr>
	<td class='f_one' width='20%'>{#masingle_option}</td>
	<td class='f_one'>
		<input type='radio' name='digest' value='0' $digest_0>{#cancel_digest}
		<input type='radio' name='digest' value='1' $digest_1>{#digest_1}
		<input type='radio' name='digest' value='2' $digest_2>{#digest_2}
	</td>
	</tr>
<!--
EOT;
}elseif($action=='lock'){
print <<<EOT
-->
	<tr>
	<td class='f_one' width='21%'>{#masingle_option}</td>
	<td class='f_one'>
	<input type='radio' name='locked' value='0' $lock_0>{#lock_0}
	<input type='radio' name='locked' value='1' $lock_1>{#lock_1}
	<input type='radio' name='locked' value='2' $lock_2>{#lock_2}
	</td>
	</tr>
<!--
EOT;
}elseif($action=='pushtopic'){
print <<<EOT
-->
<tr><td class='f_one' width='21%'>{#masingle_option}</td><td class='f_one'>
{#thread_pushinfo}
</td></tr>
<!--
EOT;
}elseif($action=='edit'){
print <<<EOT
-->
	<tr>
		<td class='f_one' width='21%'>{#masingle_option}</td>
		<td class='f_one'>
			<input type=checkbox name='title2' value='1' $ifchecked[1]>
			<img height=22 alt='{#masingle_bold}' src='$imgpath/post/editor/bold.gif' width=23>
			<input type=checkbox name='title3' value='1' $ifchecked[2]>
			<img height=22 alt='{#masingle_italic}' src='$imgpath/post/editor/italic.gif' width=23>
			<input type=checkbox name='title4' value='1' $ifchecked[3]>
			<img height=22 alt='{#masingle_underline}' src='$imgpath/post/editor/underline.gif' width=23>
			<br><br>
			&nbsp;{#masingle_color} 
			<input name=title1 type=radio value='' $ifchecked[none]>{#masingle_none}
			<input name=title1 type=radio value=red $ifchecked[red]>
			<font color='red'>{#masingle_red}</font>
			<input name=title1 type=radio value=blue $ifchecked[blue]>
			<font color='blue'>{#masingle_blue}</font>
			<input name=title1 type=radio value=green $ifchecked[green]>
			<font color='green'>{#masingle_green}</font>
			<input name=title1 type=radio value=orange $ifchecked[orange]>
			<font color='orange'>{#masingle_orange}</font>
			<input name=title1 type=radio value=silver $ifchecked[silver]>
			<font color='silver'>{#masingle_silver}</font>
		</td>
	</tr>
<!--
EOT;
}elseif($action=='del'){
print <<<EOT
-->
	<tr>
		<td class="f_one">{#mawhole_minus}</td>
		<td class="f_one">
			<input type=radio name=ifdel value=1 checked>{#_yes}
			<input type=radio name=ifdel value=0>{#_no}
		</td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
	<tr>
		<td class="f_one">{#mawhole_sendmsg}</td>
		<td class="f_one">
			<input type=radio name=ifmsg value=1 checked>{#_yes}
			<input type=radio name=ifmsg value=0>{#_no}
		</td>
	</tr>
	<tr>
		<td class='f_one'>{#masingle_reason}</td>
		<td class='f_one'>
<!--
EOT;
if($db_adminreason){print <<<EOT
-->
			<select name="" size='8' multiple onchange="this.form.atc_content.value=this.value">
				<option value="">×Ô¶¨Òå</option>
				<option value="">-------</option>
				$reason_sel
			</select>
<!--
EOT;
}print <<<EOT
-->
			<textarea name='atc_content' rows='8' cols='80'></textarea>
		</td>
	</tr>
</table>
<br><br>
<center>
<!--
EOT;
if($action=='type'){
print <<<EOT
-->
{#mawhole_type} <select name="type">
<!--
EOT;
foreach($t_typedb as $key=>$value){
if($value){
print <<<EOT
-->
<OPTION value="$key">$value</OPTION>
<!--
EOT;
}}print <<<EOT
-->
</select><p>
<!--
EOT;
}if($action=='move' || $action=='copy'){
print <<<EOT
-->
{#mawhole_forum}
<select name=to_id>$forumcache
<!--
EOT;
if($forumadd){
print <<<EOT
-->
<option value=''>{#mawhole_hidden}</option>
$forumadd
<!--
EOT;
}if(trim($cmscache)){print <<<EOT
-->
<option value=''></option>
<option value=''>{#mawhole_cms}</option>
$cmscache
<!--
EOT;
}print <<<EOT
-->
</select><p>
<!--
EOT;
}print <<<EOT
-->
<input type=button value='{#back}' onclick='javascript:history.go(-1)'>
<input type=submit name=Submit value='{#submit}'>
</center>
</form>
<!--
EOT;
?>-->