<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<h2><b>附件統計</b></h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tr3"><td width="20%">附件總計(個)</td><td>$A_count</td></tr>
<tr class="tr3"><td>附件佔用空間(KB)</td><td>$A_size</td></tr>
<tr class="tr3"><td>附件平均大小(KB)</td><td>$average</td></tr>
<tr class="tr3"><td>總計下載次數(次)</td><td>$A_hits</td></tr>
</table>
<br/>
<form action=$basename method=post>
<input type=hidden name=action value='delete'> 
<h2><b>前二十個最熱門附件</b></h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tac tr3 s3"><td width="60">附件ID</td><td width="30%">附件名稱</td><td>附件下載</td><td width=12%>附件大小</td><td width="70">下載次數</td><td >所在版塊</td>
<td width=4%>刪</td></tr>
<!--
EOT;
$num=0;
foreach($M_hits as $thread){
$num++;
print <<<EOT
-->
<tr class="tac tr3">
<td>$num</td>
<td class="tal">$thread[name]</td>
<td class="tal"><a href="$attachpath/$thread[url]">$thread[url]</a></td><td>$thread[size](KB)</td>
<td>$thread[hits]</td>
<td><a href='thread.php?fid=$thread[fid]'>$thread[forum]</a></td>
<td><input type='checkbox' name='urlarray[$thread[aid]]' value=$thread[url]></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table><br>
<center><input type="button" name="chkall" class="btn" value="全 選" onclick="CheckAll(this.form)">
<input type="submit" class="btn" value="提 交"></center></form><br>

<form action=$basename method=post>
<input type=hidden name=action value='delete'> 
<h2><b>前二十個最大附件</b></h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tac tr3 s3"><td>附件ID</td><td width=30%>附件名稱</td><td>附件下載</td><td width=12%>附件大小</td><td>下載次數</td><td>所在版塊</td>
<td width=4%>刪</td></tr>
<!--
EOT;
$num=0;
foreach($M_size as $thread){
$num++;
print <<<EOT
-->
<tr class="tac tr3">
<td>$num</td>
<td class="tal">$thread[name]</td>
<td><a href="$attachpath/$thread[url]">$thread[url]</a></td><td align=center>$thread[size](KB)</td>
<td>$thread[hits]</td>
<td><a href='thread.php?fid=$thread[fid]'>$thread[forum]</a></td>
<td>
<input type='checkbox' name='urlarray[$thread[aid]]' value=$thread[url]>
</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table><br>
<center><input type="button" name="chkall" class="btn" value="全 選" onclick="CheckAll(this.form)">
<input type="submit" name="hello" class="btn" value="提 交"></center></form><br>
<!--
EOT;
include_once PrintEot('adminbottom');
?>
-->