<!--<?php
include_once PrintEot('left');
if (empty($action)){print <<<EOT
-->
<h3><b>提示信息</b></h3>
<ul class="tr5">修復表 : 此操作可修復數據庫在進行查詢，刪除，更新等操作時產生的錯誤<br>優化表 : 此操作可優化數據庫表結構，以獲得更好的數據庫運行效率</ul>

<form action="$basename&" method=post>
<h2>數據庫優化</h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 s3" align="center">
	<td width="5%">ID</td>
	<td>數據庫表</td>
	<td width="8%">選擇</td>
</tr>
<!--
EOT;
$id=0;
foreach($pwdb as $key => $value){
if($tabledb[$key]!='pw_online'){
$id++;print <<<EOT
-->
<tr class="tr3">
	<td align="center">$id</td>
	<td>$value</td>
	<td align="center"><input type="checkbox" name="tabledb[]" value="$tabledb[$key]"></td>
</tr>
<!--
EOT;
}}print <<<EOT
-->
</table>
<br>
<center>
	<input type="radio" name="action" value="repair">修復表
	<input type="radio" name="action" value="optimize" checked>優化表<br><br>
	<input type="button" class="btn" name="chkall" value="全 選" onclick="CheckAll(this.form)">
	<input type="submit" class="btn" value='提 交'>
</center>
</form>
<br>
<form action="$basename&" method=post>
<h2>非PHPWind數據庫表 (論壇插件或其他系統的數據庫表)</h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 s3" align="center">
	<td width="5%">ID</td>
	<td>數據庫表</td>
	<td width="8%">選擇</td>
</tr>
<!--
EOT;
$id=0;
foreach($otherdb as $value){
$id++;print <<<EOT
-->
<tr class="tr3">
	<td align="center">$id</td>
	<td>$value</td>
	<td align="center"><input type="checkbox" name="tabledb[]" value="$value"></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<br>
<center>
	<input type="radio" name="action" value="repair">修復表
	<input type="radio" name="action" value="optimize" checked>優化表<br><br>
	<input type="button" class="btn" name="chkall" value="全 選" onclick="CheckAll(this.form)">
	<input type="submit" class="btn" value='提 交'>
</center>
</form>
<br/>
<!--
EOT;
} else{print <<<EOT
-->
<h2><b>數據庫優化信息</b></h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 s3" align="center"><td width=20%>數據庫表</td>
<td width=20%>操作</td><td>信息</td></tr>
<!--
EOT;
foreach($msgdb as $msg){
print <<<EOT
-->
<tr class="tr3"><td align="center">$msg[Table]</td><td align="center">$msg[Op]</td>
<td align=left>$msg[Msg_type]:$msg[Msg_text]</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>-->