<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/validator.js"></script>
<body>
<h1>
<span class="action-span"><a href="?ctl=data&act=data_revert"><tpl>$data_revert</tpl><!--数据库还原--></a></span>
<span class="action-span1"><a href="?ctl=index&act=admin_main"><tpl>$common_admin_index</tpl><!--管理首页--></a> >> <tpl>$data_backup</tpl><!--数据库备份--></span>
<div style="clear:both"></div>
</h1>
<form  name="theForm" method="post"  action="index.php?ctl=data&act=run_data_back" onSubmit="return validate();">
<!-- start  list -->
<div class="list-div" id="listDiv">

<table width="100%" cellpadding='3' cellspacing='1' >
  <tr>
    <th colspan="2"><tpl>$data_backup_type</tpl><!--备份类型--></th>
  </tr>
  <tr>
    <td width="42%"><input type="radio" name="type" value="full" class="radio"><tpl>$data_backup_full</tpl><!--全部备份--></td>
    <td width="58%"><tpl>$data_backup_full_info</tpl><!--备份数据库内所有数据表--></td>
  </tr>
  <tr>
    <td><input type="radio" name="type" value="stand" class="radio" checked="checked"><tpl>$data_backup_stand</tpl><!--标准备份（推荐备份方式）--></td>
    <td><tpl>$data_backup_stand_info</tpl><!--只备份数据库内binzcms系统的数据表--></td>
  </tr>
</table>

<table width="100%" cellpadding='3' cellspacing='1' >
  <tr>
    <th colspan="2"><tpl>$data_backup_other</tpl><!--其他设置--></th>
  </tr>
  <tr>
    <td width="42%"><tpl>$data_backup_vol</tpl><!--分卷备份（文件大小控制--kb）--></td>
    <td width="58%"><input type="text" name="vol_size" value="2048"></td>
  </tr>
  <tr>
    <td><tpl>$data_backup_sql_file</tpl><!--备份文件名称--></td>
    <td><input type="text" name="sql_file_name" value="<tpl>$back_file_name</tpl>"></td>
  </tr>
</table>
<center><input type="submit" value="<tpl>$data_backup_start</tpl>" class="button" /></center>
</div>
</form>
<div id="footer">
<tpl>$common_copyright</tpl>
</div>
<script language="javascript">
  /**
   * 检查输入的内容
   */
  function validate()
  {
    var validator = new Validator('theForm');
    validator.required('vol_size','<tpl>$data_vol_error</tpl>');
	validator.required('sql_file_name','<tpl>$data_file_name_error</tpl>');
    return validator.passed();
  }
</script>
</body>