<!--<?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="#F0F3F8"> 
    <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语句</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="bakdbform" action="?action=$action">
  <tr>
    <td colspan="5" align="center" bgcolor="#FFFFFF">
	分卷文件大小：<input type=text name="sizelimit" value="1800" size=5> K 
	<input type="submit" name="dosubmit" value="备份数据"></td>
  </tr>
  <tr align="center" bgcolor="#F0F3F8">
    <td><input type="checkbox" name="checkbox" value="Check All" onClick="CheckAll(this.form)" /></td>
    <td>表名</td>
    <td>记录数(<b>$totalrecords</b>)</td>
    <td>表大小(<b>$totalsize</b> M)</td>
    <td></td>
  </tr>
<!--
EOT;
$bgi = 1;
if(is_array($bktables)){
foreach($bktables as $k => $tablename){
$bgi++;
$bgcolor = ($bgi%2 == 0)?"bgcolor = #FFFFFF":"bgcolor = #F0F3F8";
$tblcheck = "checked";
print <<<EOT
-->
  <tr $bgcolor>
    <td align="center"><input type="checkbox" name="tables[]" value="$tablename" $tblcheck></td>
    <td>$tablename</td>
    <td>&nbsp;$bkresults[$k]</td>
	<td>&nbsp;$size[$k] M</td>
	<td></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;
?>-->