<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<ul class="nav3">
<!--
EOT;
if ($type == 'topic'){print <<<EOT
-->
<li><a href="$basename&type=topic" class="two">主題回收站</a></li>
<li><a href="$basename&type=reply">回復回收站</a></li>
<!--
EOT;
}else{print <<<EOT
-->
<li><a href="$basename&type=topic">主題回收站</a></li>
<li><a href="$basename&type=reply" class="two">回復回收站</a></li>
<!--
EOT;
}print <<<EOT
-->
</ul>
<div class="c"></div>
<h2><b>提示信息</b></h2>
<ul class="tr5"><li>1.還原︰可將被刪除的帖子主題或回復還原到原來的版塊帖子中。</li><li>2.刪除︰將帖子主題或回復從回收站中徹底刪除,不可恢復</li><li>3.清空︰刪除所有回收站帖子</li><li>4.刪除記錄︰刪除回收站的記錄,但並沒有徹底刪除帖子內容,不可恢復</li></ul>
<!--
EOT;
if ($type == 'topic'){print <<<EOT
-->
<form action="$basename&type=topic&" method=post>
<h3>回收站</h3>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3"><td width="35%">所屬分類 : <select name="fid"><option>選擇分類</option>$forumcache</select> &nbsp; 
作者 : <input type="text" size="20" class="input" name="username"> &nbsp; 
管理員 : <input type="text" size="20" class="input" name="admin"> &nbsp; 
<input type=submit value="提 交" class="btn"></td></tr>
</table>
</form>
<br />
<form action="$basename&type=topic&" method="post" name="form1">
<h3>回收站</h3>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 s2">
<td width='5%'>ID</td>
<td align=center>標題</td>
<td width='15%'>論壇</td>
<td width='15%'>作者</td>
<td width='15%'>管理員</td>
<td width='15%'>時間</td>
<td width='5%'></td>
</tr>
<!--
EOT;
$id=($page-1)*$db_perpage;
foreach($recycledb as $key => $value){
$id++;
print <<<EOT
-->
<tr class="tr3">
<td>$id</td>
<td align="left" style="cursor:pointer" onclick="content('$value[tid]');">$value[subject]</td>
<td><a href="thread.php?fid=$value[fid]" target="_blank">$value[fname]</a></td>
<td><a href="u.php?action=show&uid=$value[authorid]" target="_blank">$value[author]</a></td>
<td>$value[admin]</td>
<td>$value[deltime]</td>
<td><input type='checkbox' name='selid[$value[tid]]' value="$value[fid]"></td></tr>
<tr id="content_$value[tid]" style="display:none;" class="tr3"><td colspan="7" style="padding:5px 10px">$value[content]</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table><br>$pages
<div class="c"></div>
<center>
<input type="radio" name="action" value="revert" checked>還原帖子
<input type="radio" name="action" value="del" >刪除帖子
<input type="radio" name="action" value="delete">清空回收站
<input type="radio" name="action" value="clear">刪除記錄<br><br>
<input type='button' name='chkall' class="btn" value='全 選' onclick='CheckAll(this.form)'>
<input type="submit" name="hello" class="btn"  value="提 交" onclick="return confirm('您確認要進行此操作嗎?');">
</center></form>
<br/>
<!--
EOT;
}else{print <<<EOT
-->
<form action="$basename&type=reply&" method=post>
<h3>回收站</h3>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3"><td width="35%">所屬分類 : <select name="fid"><option>選擇分類</option>$forumcache</select> &nbsp; 
作者 : <input type="text" size="20" class="input" name="username"> &nbsp; 
管理員 : <input type="text" size="20" class="input" name="admin"> &nbsp; 
<input type=submit value="提 交" class="btn"></td></tr>
</table>
</form>
<br/>
<form action="$basename&type=reply&" method="post" name="form1">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td colspan="7" class="tr2">
<!--
EOT;
if($db_plist){print <<<EOT
-->
<select onchange="window.location=('$basename&type=reply&ptable='+this.value);" style="float:right" name="ptable">$p_table</select>
<!--
EOT;
}print <<<EOT
-->
<b>回收站</b></td></tr>
<tr class="tr3 s2" align="center">
<td width='5%'>ID</td>
<td align=center>標題</td>
<td width='15%'>論壇</td>
<td width='15%'>作者</td>
<td width='15%'>管理員</td>
<td width='15%'>時間</td>
<td width='5%'></td>
</tr>
<!--
EOT;
$id=($page-1)*$db_perpage;
foreach($recycledb as $key => $value){
$id++;
print <<<EOT
-->
<tr class="tr3">
<td>$id</td>
<td align="left" style="cursor:pointer" onclick="content('$value[pid]');">$value[subject](<a href="read.php?tid=$value[tid]" target="_blank">查看主題帖</a>)</td>
<td><a href="thread.php?fid=$value[fid]" target="_blank">$value[fname]</a></td>
<td><a href="u.php?action=show&uid=$value[authorid]" target="_blank">$value[author]</a></td>
<td>$value[admin]</td>
<td>$value[deltime]</td>
<td><input type='checkbox' name='selid[$value[pid]]' value="$value[fid]"></td></tr>
<tr id="content_$value[pid]" style="display:none;"><td class="tr2" colspan="7" style="padding:5px 10px">$value[content]</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table><br>$pages
<center>
<input type="radio" name="action" value="revert">還原回復
<input type="radio" name="action" value="del" checked>刪除回復
<input type="radio" name="action" value="delete">清空回收站
<input type="radio" name="action" value="clear">刪除記錄<br><br>
<input type='button' name='chkall' value='全 選' class="btn" onclick='CheckAll(this.form)'>
<input type="submit" name="hello" value="提 交" class="btn" onclick="return confirm('您確認要進行此操作嗎?');">
</center></form>
<br/>
<!--
EOT;
}print <<<EOT
-->
<script language="JavaScript">
function content(id){
	var o = getObj('content_'+id);
	o.style.display = o.style.display == 'none' ? '' : 'none';
}
</script>
<!--
EOT;
include_once PrintEot('adminbottom');
?>-->