<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<tr><td colspan=2 align=center>
<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>{#attachstats_guide}</td></tr>
<tr><td class=b width=30%>{#attachstats_sum}</td><td class=b>$A_count</td></tr>
<tr><td class=b>{#attachstats_space}</td><td class=b>$A_size</td></tr>
<tr><td class=b>{#attachstats_average}</td><td class=b>$average</td></tr>
<tr><td class=b>{#attachstats_hits}</td><td class=b>$A_hits</td></tr>
</table></td></tr></table>
<br>
<form action=$basename method=post>
<input type=hidden name=action value='delete'> 
<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=7>{#attachstats_hot}</td></tr>
<tr class=head_2 align=center><td>{#attachstats_id}</td><td width=30%>{#attachstats_name}</td><td>{#attachstats_down}</td><td width=12%>{#attachstats_size}</td><td>{#attachstats_times}</td><td>{#attachstats_forum}</td>
<td width=4%>{#attachstats_del}</td></tr>
<!--
EOT;
$num=0;
foreach($M_hits as $thread){
$num++;
print <<<EOT
-->
<tr class=b  align=center>
<td>$num</td>
<td>$thread[name]</td>
<td><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></td></tr></table><br>
<center><input type="button" name="chkall" value="{#sel_all}" onclick="CheckAll(this.form)">
<input type="submit" value="{#submit}"></center></form><br>

<form action=$basename method=post>
<input type=hidden name=action value='delete'> 
<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=7>{#attachstats_most}</td></tr>
<tr class=head_2 align=center><td>{#attachstats_id}</td><td width=30%>{#attachstats_name}</td><td>{#attachstats_down}</td><td width=12%>{#attachstats_size}</td><td>{#attachstats_times}</td><td>{#attachstats_forum}</td>
<td width=4%>{#attachstats_del}</td></tr>
<!--
EOT;
$num=0;
foreach($M_size as $thread){
$num++;
print <<<EOT
-->
<tr class=b>
<td align=center>$num</td>
<td align=center>$thread[name]</td>
<td align=center><a href="$attachpath/$thread[url]">$thread[url]</a></td><td align=center>$thread[size](KB)</td>
<td align=center>$thread[hits]</td>
<td align=center><a href='thread.php?fid=$thread[fid]'>$thread[forum]</a></td>
<td align=center>
<input type='checkbox' name='urlarray[$thread[aid]]' value=$thread[url]>
</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" name="hello" value="{#submit}"></center></form><br>
<!--
EOT;
include_once PrintEot('adminbottom');
?>
-->