<!--<?php print <<<EOT
-->
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<style>
td {font-size: 9pt;line-height: 1.5;}
body {font-size: 9pt;line-height: 1.5;}
a:link { font-size: 9pt; color: #000000; text-decoration: none }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none }
a:hover {font-size: 9pt;color: red}
</style>
<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#A5D0F1">
  <tr>
    <td background="images/wbg.gif" bgcolor="#F0F3F8" colspan="5"><b>数据表修复/优化</b></td>
  </tr>
  <tr height="30" style="padding-left:5px;" bgcolor="#FFFFFF"> 
    <td width="20%"><img src="images/rarrow.gif" border="0">&nbsp;<a href="ng_db.php?action=export"><b>数据库备份</b></a></td>
    <td width="20%"><img src="images/rarrow.gif" border="0">&nbsp;<a href="ng_db.php?action=import"><b>数据库恢复</b></a></td>
    <td width="20%"><img src="images/rarrow.gif" border="0">&nbsp;<a href="ng_db.php?action=repair"><b>数据库修复/优化</b></a></td>
	<td width="20%"><img src="images/rarrow.gif" border="0">&nbsp;<a href="ng_db.php?action=query"><b>执行SQL语句</b></a></td>
	<td width="20%"><img src="images/rarrow.gif" border="0">&nbsp;<a href="ng_db.php?action=phpinfo" target="_blank"><b>PHP INFO()</b></a></td>
  </tr>
<form method="POST" name="repairform" action="">
<INPUT type="hidden" name="action" value="$action">
  <tr>
    <td colspan="5" height="30" bgcolor="#F0F3F8" align="center">
	  <input name='chkall' type='checkbox' id='chkall' onClick="CheckAll(this.form)" value='check'>全选/反选
      <input type="radio" name="operation" value="repair">修复表&nbsp;&nbsp;
      <input type="radio" name="operation" value="optimize" checked>优化表&nbsp;&nbsp;
	  <input type="submit" name="dosubmit" value=" 提 交 "></td>
  </tr>
<!--
EOT;
if(is_array($tables)){
foreach($tables as $id => $table){
$bgcolor =($bgcolor == '#FFFFFF')?'#F0F3F8':'#FFFFFF';
print <<<EOT
-->
  <tr bgcolor="$bgcolor">
	<td colspan="5" height="25" style="padding-left:10px;">
	<input type="checkbox" name="tables[]" value="$table" checked>&nbsp;&nbsp;$table</td>
  </tr>
<!--
EOT;
}}print <<<EOT
-->
</form>
</table>
<script language=javascript>
<!--
function CheckAll(form){
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		e.checked == true ? e.checked = false : e.checked = true;
	}
}
-->
</script>
<!--
EOT;
?>-->