<!--<?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> -> {#masingle_guide}</b></td></tr></table><br>
<!--
EOT;
if($action=='banuser'){print <<<EOT
-->
<form name=ping action="masingle.php?action=banuser&uid=$uid" method=post>
<table width='$tablewidth' cellspacing=1 cellpadding=3 $i_table align=center>
<tr class='header'><td colspan='2' class=head>{#masingle_ban}</td></tr>
<tr><td class='f_one' width='21%'>{#masingle_admin}</td>
<td class='f_one'><a href='profile.php?action=show&uid=$winduid'>$windid</a></td></tr>
<tr><td class='f_two' width='21%'>{#masingle_username}</td>
<td class='f_two'>
<a href='profile.php?action=show&uid=$uid'>$userdb[username]</a></td></tr>
<tr><td class='f_one' width='21%'>{#masingle_type}</td>
<td class='f_one'><input type=radio name=type value=1 checked>{#masingle_term}
<!--
EOT;
if($SYSTEM['bantype']){print <<<EOT
-->
<input type=radio name=type value=2>{#masingle_forever}
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<tr><td class='f_two' width='21%'>{#masingle_time}</td>
<td class='f_two'>
<input type=text name=limit value=1> {#masingle_day}
</td></tr>
<tr><td class='f_one' width='21%'>{#masingle_message}</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' width='21%'>{#masingle_ban_reason}</td>
<td class='f_one'>
<textarea name='atc_content' rows='5' cols='80'></textarea>
</td></tr></table>
<br>
<center><input type=submit value='{#submit}'></center><br>
<input type=hidden name=fid value=$fid>
<input type=hidden name=step value='1'></form>
<!--
EOT;
}elseif($action=='delatc'){print <<<EOT
-->
<form name=ping action="masingle.php?" method=post>
<input type=hidden name="action" value="delatc">
<input type=hidden name="tid" value="$tid">
<input type=hidden name="fid" value="$fid">
<input type=hidden name="step" value='1'>
<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%">{#author}</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="delatc[]" value="$val[pid]" 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="profile.php?action=show&username=$val[author]" target="_blank">$val[author]</a>
		</td>
		<td class="f_one">$val[postdate]</td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<br>
<table width="$tablewidth" cellspacing=1 cellpadding=3 align=center $i_table>
	<tr><td class="head" colspan="2">{#masingle_option}</td></tr>
	<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'>
			<select name="" size='8' multiple onchange="this.form.atc_content.value=this.value">
				<option value="">×Ô¶¨Òå</option>
				<option value="">-------</option>
				$reason_sel
			</select>
			<textarea name='atc_content' rows='8' cols='80'></textarea>
		</td>
	</tr>
</table>
<br>
<center><input type=submit value='{#submit}'></center>
</form>
<!--
EOT;
}?>-->