<!--<?php
include_once PrintEot('left');
if(empty($action)){print <<<EOT
-->

<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>

<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b><br>
<ul>
<!--
EOT;
if($a_type=='article'){print <<<EOT
-->
{#superdel_atc_info}
<!--
EOT;
}elseif($a_type=='member'){
print <<<EOT
-->
{#superdel_member_info}
<!--
EOT;
}elseif($a_type=='message'){
print <<<EOT
-->
{#superdel_msg_info}
<!--
EOT;
}print <<<EOT
-->
</ul><br>
</td></tr></table><br>
<!--
EOT;
}if($a_type=='article'){
if(empty($action)){print <<<EOT
-->
<form action="$basename&" method=post>
<input type=hidden name=action value='deltpc'>
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=2>{#superdel_deltpc}</td></tr>
<tr><td class=b width=30%>{#superdel_fid}</td>
<td class=b>
<select name=fid>
<option value='-1'>{#superdel_all_forum}</option>$forumcache
</select>&nbsp;&nbsp;<input type=checkbox name="ifkeep" value=1 checked>{#superdel_digest}</td></tr>
<tr><td class=b >{#superdel_post_by}</td>
<td class=b><input type=text size=20 maxlength=14 name="postdate">&nbsp;{#superdel_day_of}</td></tr>
<tr><td class=b>{#superdel_lastreply}</td>
<td class=b><input type=text size=20 maxlength=14 name="lastpost">&nbsp;{#superdel_day_of}</td></tr>
<tr><td class=b>{#superdel_hit_by}</td>
<td class=b><input type=text size=20 maxlength=14 name="hits">&nbsp;{#superdel_tpc_of}</td></tr>
<tr><td class=b>{#superdel_reply_by}</td>
<td class=b><input type=text size=20 maxlength=14 name="replies">&nbsp;{#superdel_tpc_of}</td></tr>
<tr><td class=b>{#superdel_tpc_author}</td>
<td class=b><input type=text size=20 name="author"> {#superdel_match}</td></tr>
<tr><td class=b>{#superdel_keyword}</td>
<td class=b><input type=text size=20 name="keyword"> {#superdel_match}</td></tr>
<tr><td class=b>{#superdel_content_more}</td>
<td class=b><input type=text size=20 name="tcounts"> {#fastpost_bit}</td></tr>
<tr><td class=b>{#superdel_content_less}</td>
<td class=b><input type=text size=20 name="counts"> {#fastpost_bit}</td></tr>
<tr><td class=b>{#superdel_userip}</td>
<td class=b><input type=text size=20 name="userip"> {#superdel_match}</td></tr>
<tr>
	<td class=b><div id="info1">{#superdel_show_num}</div></td>
	<td class=b>
		<input type=text size=5 name="lines" value="30">
		<input type=checkbox name="direct" value=1 onclick="deldirect(this.form,'info1','{#superdel_show_num}');">
		{#superdel_direct}
	</td>
</tr>
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center>
</form>

<form action="$basename&" method=post>
<input type=hidden name=action value='delrpl'>
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#superdel_delrpl}</td></tr>
<tr><td class=b width=30%>{#superdel_fid}</td>
<td class=b><select name=fid><option value='-1'>{#superdel_all_forum}</option>$forumcache</select></td></tr>
<tr><td class=b>{#superdel_tid}</td>
<td class=b><input type=text size=20 name="tid">
<font color="red">{#superdel_delrpl_info}</font></td></tr>
<tr><td class=b>{#superdel_author_by}</td>
<td class=b><input type=text size=20 name="author"> {#superdel_match}</td></tr>
<tr><td class=b>{#superdel_keyword}</td>
<td class=b><input type=text size=20 name="keyword"> {#superdel_match}</td></tr>
<tr><td class=b>{#superdel_content_more}</td>
<td class=b><input type=text size=20 name="tcounts"> {#fastpost_bit}</td></tr>
<tr><td class=b>{#superdel_content_less}</td>
<td class=b><input type=text size=20 name="counts"> {#fastpost_bit}</td></tr>
<tr><td class=b>{#superdel_userip}</td>
<td class=b><input type=text size=20 name="userip"> {#superdel_match}</td></tr>
<tr>
	<td class=b><div id="info2">{#superdel_pernum}</div></td>
	<td class=b>
		<input type=text size=20 name="nums" value="30">
		<input type=checkbox name="direct" value=1 onclick="deldirect(this.form,'info2','{#superdel_pernum}');">
		{#superdel_direct}
	</td>
</tr>
</table>
<br><center><input type=submit value="{#submit}"></center>
</form>

<!--
EOT;
} elseif($action=='deltpc' && empty($step)){print <<<EOT
-->
 &nbsp; &nbsp;$pages
<form action="$basename&" method=post>
<input type=hidden name=action value='$action'>
<input type=hidden name=step value=2>
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3 style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
<tr><td class=head colspan=18>{#superdel_atc_list}</td></tr>
<tr align=center class=head_2><td>ID</td>
<td colspan=6>{#title}</td><td colspan=2>{#author}</td><td colspan=2>{#posttime}</td>
<td colspan=2>IP</td>
<td colspan=2>{#forum}</td><td>{#replies}</td><td>{#hits}</td>
<td>{#superdel_del}</td>
</tr>
<!--
EOT;
foreach($topicdb as $key=>$topic){
if(!$topic[subject])continue;
$key+=($page-1)*$lines+1;
print <<<EOT
-->
<tr align=center class=b>
<td class=b>$key</td>
<td colspan=6><a href="read.php?fid=$topic[fid]&tid=$topic[tid]" target=_blank>$topic[subject]</a></td><td  colspan=2><a href="profile.php?action=show&uid=$topic[authorid]" target=_blank>$topic[author]</a></td><td  colspan=2>$topic[postdate]</td><td colspan=2>$topic[userip]</td>
<td colspan=2>$topic[forumname]</td><td>$topic[replies]</td>
<td>$topic[hits]</td>
<td><input type=checkbox name=delid[$topic[tid]] value=$topic[fid]></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table></td></tr></table>
<br><center><input type='button' name='chkall' value='{#sel_all}' onclick='CheckAll(this.form)'>
<input type=submit value='{#submit}'></center>
</form>
<!--
EOT;
} elseif($action=='delrpl' && empty($step)){print <<<EOT
-->
 &nbsp; $pages
<form action="$basename&" method=post>
<input type=hidden name=action value='$action'>
<input type=hidden name=step value=2>
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=8>{#superdel_atc_list}</td></tr>
<tr align=center>
<td class=head_2  width=5%>ID</td>
<td class=head_2>{#author}</td>
<td class=head_2>IP</td>
<td class=head_2>{#posttime}</td>
<td class=head_2>{#forum}</td>
<td class=head_2>{#content}</td>
<td class=head_2 width=5%>{#superdel_del}</td>
</tr>
<!--
EOT;
$num=($page-1)*$nums;
foreach($postdb as $key=>$post){
if(!$post[content])continue;
$num++;
print <<<EOT
-->
<tr align=center>
<td class=b>$num</td>
<td class=b><a href="profile.php?action=show&uid=$post[authorid]" target=_blank>$post[author]</a></td>
<td class=b>$post[userip]</td>
<td class=b>$post[postdate]</td>
<td class=b>$post[forumname]</td>
<td class=b><a href="read.php?tid=$post[tid]" target=_blank>$post[content]</a></td>
<td class=b><input type=checkbox name=delid[$post[pid]] value=$post[delid]></td>
</tr>
<!--
EOT;
}
print <<<EOT
-->
</table>
<br>
<center>
<input type='button' name='chkall' value='{#sel_all}' onclick='CheckAll(this.form)'>
<input type=submit value='{#submit}'>
</center>
</form>
 &nbsp; $pages
<!--
EOT;
}}elseif($a_type=='member'){
if(empty($action)){print <<<EOT
-->
<form action="$basename&" method=post>
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=2>{#superdel_deluser}</td></tr>
<tr><td class=b  width=20%>{#superdel_group}</td>
<td class=b><select name=groupid>$groupselect</select></td></tr>
<tr><td class=b>{#superdel_name}</td>
<td class=b><input type=text size=20 maxlength=14 name="schname">{#superdel_match}</td></tr>
<tr><td class=b>email</td>
<td class=b><input type=text size=20 maxlength=14 name="schemail">{#superdel_match}</td></tr>
<tr><td class=b>{#superdel_post_more}</td>
<td class=b><input type=text size=20 maxlength=14 name="postnum"> </td></tr>
<tr><td class=b>{#superdel_oltime}</td>
<td class=b><input type=text size=20 maxlength=14 name="onlinetime"> </td></tr>
<tr><td class=b>{#superdel_userip}</td>
<td class=b><input type=text size=20 name="userip"> {#superdel_match}</td></tr>
<tr><td class=b>{#superdel_reg_early}</td>
<td class=b><select name=regdate>
<OPTION value="all">{#superdel_member}</OPTION>
<OPTION value="86400">{#day_1}</OPTION>
<OPTION value="172800">{#day_2}</OPTION>
<OPTION value="604800">{#day_7}</OPTION>
<OPTION value="2592000">{#day_30}</OPTION>
<OPTION value="7776000">{#day_90}</OPTION>
<OPTION value="15552000">{#day_180}</OPTION>
<OPTION value="31536000">{#day_360}</OPTION></select></td></tr>
<tr><td class=b>{#superdel_howlong}</td>
<td class=b><select name='schlastvisit'>
<OPTION value="all">{#superdel_member}</OPTION>
<OPTION value="86400">{#day_1}</OPTION>
<OPTION value="172800">{#day_2}</OPTION>
<OPTION value="604800">{#day_7}</OPTION>
<OPTION value="2592000">{#day_30}</OPTION>
<OPTION value="7776000">{#day_90}</OPTION>
<OPTION value="15552000">{#day_180}</OPTION>
<OPTION value="31536000">{#day_360}</OPTION></select></td></tr>
<tr><td class=b>{#superdel_order}</td>
<td class=b><select name='orderway'>
<option value='lastvisit' checked>{#superdel_losttime}</option>
<option value='regdate'>	{#regdate}</option>
<option value='postnum'>	{#posts}</option></select>
<input type=radio size=5 name="asc" value='' checked>{#_asc}
<input type=radio size=5 name="asc" value='DESC'>{#_desc}</td></tr>
<tr>
	<td class=b><div id="info3">{#superdel_show_num}</div></td>
	<td class=b>
		<input type=text size=5 name="lines" value="30">
		<input type=checkbox name="direct" value=1 onclick="deldirect(this.form,'info3','{#superdel_show_num}');">
	{#superdel_direct}
	</td>
</tr>
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center>
<input type=hidden name=action value=del>
</form>
<!--
EOT;
} if($action=='del' && empty($step)){print <<<EOT
-->
 &nbsp; &nbsp; &nbsp; $pages
<form action="$basename&" method=post>
<input type=hidden name=action value='$action'>
<input type=hidden name=step value=2>
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=9>{#superdel_userlist}</td></tr>
<tr align=center><td class=head_2>ID</td>
<td class=head_2>{#username}</td>
<td class=head_2>Email</td>
<td class=head_2>{#superdel_system}</td>
<td class=head_2>IP</td>
<td class=head_2>{#regdate}</td>
<td class=head_2>{#lasttime}</td>
<td class=head_2>{#posts}</td>
<td class=head_2>{#superdel_del}</td>
</tr>
<!--
EOT;
foreach($schdb as $key=>$sch){
if(!$sch[username])continue;
$key+=($page-1)*$lines+1;
print <<<EOT
-->
<tr align=center>
<td class=b>$key</td>
<td class=b>$sch[username]</td>
<td class=b>$sch[email]</td>
<td class=b>$sch[group]</td>
<td class=b>$sch[onlineip]</td>
<td class=b>$sch[regdate]</td>
<td class=b>$sch[thisvisit]</td>
<td class=b>$sch[postnum]</td>
<td class=b><input type=checkbox name=delid[] value=$sch[uid]>
</td></tr>
<!--
EOT;
}
print <<<EOT
-->
</table></td></tr></table>
<br><center><input type='button' name='chkall' value='{#sel_all}' onclick='CheckAll(this.form)'>
<input type=submit value='{#submit}'></center></form>
<!--
EOT;
}
}elseif($a_type=='message'){
if(empty($action)){print <<<EOT
-->
<form action="$basename&" method=post>
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=2>{#superdel_delmsg}</td></tr>
<tr><td class=b>{#superdel_msgtype}</td>
<td class=b><select name=type>
<option value='all'>{#superdel_delall}</option>
<option value='rebox'>{#superdel_rebox}</option>
<option value='sebox'>{#superdel_sebox}</option>
<input type=checkbox name="keepnew" value=1 checked>{#superdel_newmsg}</select></td></tr>
<tr><td class=b width=20%>发件人</td>
<td class=b><input type=text size=20 name="fromuser"> {#superdel_match}</td></tr>
<tr><td class=b width=20%>收件人</td>
<td class=b><input type=text size=20 name="touser"> {#superdel_match}</td></tr>
<tr><td class=b>{#superdel_del}</td>
<td class=b><input type=text size=20 name="msgdate"> {#superdel_msg}
</td></tr>
<tr>
	<td class=b><div id="info3">{#superdel_show_num}</div></td>
	<td class=b>
		<input type=text size=5 name="lines" value="30">
		<input type=checkbox name="direct" value=1 onclick="deldirect(this.form,'info3','{#superdel_pernum}');">
		{#superdel_direct}
	</td>
</tr>
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center>
<input type=hidden name=action value=del>
</form>
<!--
EOT;
} if($action=='del' && empty($step)){print <<<EOT
-->
 &nbsp; &nbsp; &nbsp; $pages
<form action="$basename&" method=post>
<input type=hidden name=action value='$action'>
<input type=hidden name=step value=2>
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=8>{#superdel_msglist}</td></tr>
<tr class=head_2 align=center>
<td>ID</td>
<td>{#title}</td>
<td>发件人</td>
<td>收件人</td>
<td>{#time}</td>
<td>{#superdel_del}</td></tr>
<!--
EOT;
foreach($messagedb as $key=>$message){
if(!$message[title])continue;
$key+=($page-1)*$lines+1;
print <<<EOT
-->
<tr align=center>
<td class=b>$key</td>
<td class=b><a href="$admin_file?adminjob=content&type=message&id=$message[mid]" target="_blank">$message[title]</a></td>
<td class=b>$message[fromuser]</td>
<td class=b>$message[touser]</td>
<td class=b>$message[date]</td>
<td class=b><input type=checkbox name=delid[] value=$message[mid]></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table></td></tr></table>
<br><center><input type='button' name='chkall' value='{#sel_all}' onclick='CheckAll(this.form)'>
<input type=submit value='{#submit}'></center></form>
<!--
EOT;
}}include_once PrintEot('adminbottom');
?>-->
<script language="JavaScript">
function deldirect(form,tar,msg){
	if (form.direct.checked == true){
		document.getElementById(tar).innerHTML = '<b><font color=blue>{#deldirect_msg}</font></b>';
	}else{
		document.getElementById(tar).innerHTML = msg;
	}
}
</script>