<!--<?php
include_once PrintEot('left');
if (empty($action)){
print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b><br><ul>{#repair_info}</ul></td></tr></table><br>
<form action="$basename" method=post>
<table width=60% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=6>
<tr><td class=head colspan=5>{#repair_title}</td></tr>
<tr align=center><td class=b width=90%>{#repair_table}</td>
<td class=b>{#repair_sel}</td></tr>

<!--
EOT;
foreach($tabledb as $table){
print <<<EOT
-->
<tr><td class=b>$table</td>
<td class=b><input type=checkbox name=tabledb[] value=$table></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table></td></tr></table><br>
<center>
<input type="radio" name="action" value="repair">{#repair}
<input type="radio" name="action" value="optimize" checked>{#optimize}<br><br>
<input type="button" name="chkall" value="{#sel_all}" onclick="CheckAll(this.form)">
<input type='submit' value='{#submit}'>
</center></form>
<!--
EOT;
} else{
print <<<EOT
-->
<table width=80% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=6>
<tr><td class=head colspan=5>{#repair_optimize}</td></tr>
<tr align=center><td class=b width=20%>{#repair_table}</td>
<td class=b width=20%>{#repair_operate}</td><td class=b>{#repair_msg}</td></tr>
<!--
EOT;
foreach($msgdb as $msg){
print <<<EOT
-->
<tr><td class=b align=center>$msg[Table]</td><td class=b align=center>$msg[Op]</td>
<td class=b align=left>$msg[Msg_type]£º$msg[Msg_text]</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table></td></tr></table>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>
-->