<?php 
defined('IN_HS') or exit('Access Denied');
include admintpl('header');
?>
<body>
<?=$menu?>
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th colspan=3>hs数据库备份</th>
  </tr>
<form method="post" name="myform" action="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>">
<tr align="center">
<td width="20%" class="tablerowhighlight">	<input class="checkbox_style" name='chkall' type='checkbox' class='checkbox_style' id='chkall' onclick='checkall(this.form)' value='check' checked>全选/反选 </td>
<td width="40%" class="tablerowhighlight">数据库表</td>
<td width="40%" class="tablerowhighlight">记录条数</td>
</tr>
<?php 
if(is_array($hstables)){
	foreach($hstables as $k => $tablename){
?>
  <tr>
    <td class="tablerow" align="center">
<input type="checkbox" class="checkbox_style" name="tables[]" value="<?=$tablename?>" checked>
	</td>
    <td class="tablerow">
	<?=$tablename?>
	</td>
    <td class="tablerow" align="center">
	<?=$hsresults[$k]?>
	</td>
</tr>
<?php 
	}
}
?>
  <tr>
    <td colspan=3 class="tablerowhighlight" align="center">分卷备份设置</td>
  </tr>
  <tr>
    <td class="tablerow" align="right">每个分卷文件大小：</td>
    <td colspan=2 class="tablerow"><input type=text name="sizelimit" value="2048" size=5>K</td>
  </tr>
   <tr>
     <td class="tablerow" align="right">建表语句格式：</td>
    <td colspan=2 class="tablerow"><input class="radio_style" type="radio" name="sqlcompat" value="" checked> 默认 &nbsp; <input class="radio_style" type="radio" name="sqlcompat" value="MYSQL40"> MySQL 3.23/4.0.x &nbsp; <input class="radio_style" type="radio" name="sqlcompat" value="MYSQL41"> MySQL 4.1.x/5.x &nbsp;</td>
  </tr>
   <tr>
     <td class="tablerow" align="right">强制字符集：</td>
    <td colspan=2 class="tablerow"><input class="radio_style" type="radio" name="sqlcharset" value="" checked> 默认 &nbsp; <input class="radio_style" type="radio" name="sqlcharset" value="latin1"> LATIN1 &nbsp; <input class="radio_style" type="radio" name="sqlcharset" value='utf8'> UTF-8</option></td>
  </tr>
  <tr>
      <td class="tablerow"></td>
    <td colspan=2 class="tablerow"><input type="submit" class="btn" name="dosubmit" value=" 开始备份数据 "></td>
  </tr>
	</form>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
  <tr>
    <td></td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
  <tr>
    <td></td>
  </tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th colspan=3>数据库中其他程序数据表备份</th>
  </tr>
<form method="post" name="myformother" action="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>">
<tr align="center">
<td width="20%" class="tablerowhighlight"><input class="checkbox_style" name='chkall' type='checkbox' class='checkbox_style' id='chkall' onclick='checkall(this.form)' value='check' checked>全选/反选 </td>
<td width="40%" class="tablerowhighlight">数据库表</td>
<td width="40%" class="tablerowhighlight">记录条数</td>
</tr>
<?php 
if(is_array($othertables)){
	foreach($othertables as $k => $tablename){
?>
  <tr>
    <td class="tablerow" align="center">
<input type="checkbox" class="checkbox_style" name="tables[]" value="<?=$tablename?>" checked>
	</td>
    <td class="tablerow">
	<?=$tablename?>
	</td>
    <td class="tablerow" align="center">
	<?=$otherresults[$k]?>
	</td>
</tr>
<?php 
	}
}
?>
  <tr>
    <td colspan=3 class="tablerowhighlight" align="center">分卷备份设置</td>
  </tr>
  <tr>
    <td colspan=3 class="tablerow" align="center">每个分卷文件大小：<input type=text name="sizelimit" value="2048" size=5>K</td>
  </tr>
  <tr>
    <td colspan=3 class="tablerow" align="center"><input type="submit" class="btn" name="dosubmit" value=" 开始备份数据 "></td>
  </tr>
	</form>
</table>
</body>
</html>