<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<form action="$basename" method="post">
<h2>搜索</h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tr3 tac">
	<td>用戶名︰<input type="text" class="input" name="username"></td>
	<td>版塊︰<select name="fid"><option></option>$forumcache</option></td>
	<td><input type="submit" class="btn" value="提 交"></td>
</tr>
</table></form>
<form action="$basename" method="post">
<h2>版塊出售記錄</h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tr3 tac s3">
<td width="8%">ID</td>
<td>版塊名稱</td>
<td>用戶名</td>
<td>購買日期</td>
<td>到期日期</td>
<td>花費</td>
<td width="6%"></td>
</tr>
<!--
EOT;
$i=($page-1)*$db_perpage;
foreach($buydb as $key=>$value){
$i++;
print <<<EOT
-->
<tr class="tr3 tac">
<td>$i</td>
<td>{$forum[$value[fid]][name]}</td>
<td>$value[username]</td>
<td>$value[buydate]</td>
<td>$value[overtime]
<!--
EOT;
if($value['overdate']<$timestamp){print <<<EOT
-->
<font color="red">(已到期)</font>
<!--
EOT;
}print <<<EOT
-->
</td>
<td>$value[cost] {$credit->cType[$value[credit]]}</td>
<td><input type="checkbox" name="selid[]" value="$value[id]" onclick="pwJsCheck(this)" /></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>$pages
<input type="hidden" name="action" value="del" />
<br /><center><input class="btn" type="button" name="chkall" value="全 選" onclick="CheckAll(this.form)" />&nbsp;
<input type="submit" value="刪除所選項" class="btn"/></center></form><br/>
<!--
EOT;
include_once PrintEot('adminbottom');
?>-->