<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<div class="tr3">
<form action="$basename" method="post">
<select name='S_start')>
<option value='' selected>查錯範圍</option>
$A_option
</select>
<select name='orderway'>
<option value=''>排序</option>
<option value='size'>附件大小</option>
<option value='aid'>附件ID</option>
</select>
<input type="submit" class="btn" value="查 找" style="margin-bottom:4px;"></form>
</div>
<form action="$admin_file?adminjob=attachstats" method=post>
<input type=hidden name=action value='delete'>
<input type=hidden name='F_basename' value=$basename> 
<h2><b>附件手動修復(附件不存在而附件記錄存在)--- 使用 ftp 遠程轉移附件功能.此管理無效</b></h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tr3 tac"><td>附件ID</td><td>附件大小</td><td>附件名稱</td><td>附件鏈接</td>
<td width=4%>刪</td>
</tr>
<!--
EOT;
$num=0;
foreach($threaddb as $thread){
$num++;
print <<<EOT
-->
<tr class="tr3 tac">
<td>$num</td>
<td>$thread[size]</td>
<td>$thread[name]</td>
<td>$thread[url]</td>
<td><input type='checkbox' name='urlarray[$thread[aid]]' value=$thread[url]></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table><br>
<center><input class="btn" type="button" name="chkall" value="全 選" onclick="CheckAll(this.form)">
<input class="btn" type="submit" name="hello" value="提 交"></center></form>
<br/>
<h2><b>附件自動修復</b></h2>
<div class="tr5">
當附件記錄大于 1 萬時。<b>強烈建議使用上面手動搜索的功能,不要使用此具負載性的功能!</b><br>本功能清除只存在附件記錄而沒有附件的冗余數據，帖子中的附件記錄也將同時更新<br>使用 ftp 遠程轉移附件功能.此管理無效</div>
<form action=$basename method=post>
<input type=hidden name=action value='delete'> 
<br>
<center><input type="submit" name="hello" class="btn" value="提 交"></center></form><br/>
<!--
EOT;
include_once PrintEot('adminbottom');
?>
-->