<?php /* Smarty version 2.6.19, created on 2014-03-07 10:22:10
         compiled from db_export.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'filesize_format', 'db_export.tpl', 45, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>管理</title>
<link href="common/main.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="common/common.js"></script>
<script type="text/javascript">
<!--
    function backup()
    {
        document.getElementById('btnSubmit').style.display = 'none';
        document.getElementById('btnDoing').style.display = 'block';
    }
-->
</script>
</head>

<body>
<div class="bodyTitle">
	<p class="fontBold">数据备份</p>
</div>
<br>
<form name="formBackup" id="formBackup" method="post" action="">
    <table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td width="50" class="bgFleet borderBottom">&nbsp;</td>
            <td class="bgFleet borderBottom">数据表</td>
            <td class="bgFleet borderBottom">说明</td>
            <td align="right" class="bgFleet borderBottom">记录数</td>
            <td align="right" class="bgFleet borderBottom">大小</td>
        </tr>
        <?php unset($this->_sections['loop']);
$this->_sections['loop']['name'] = 'loop';
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['arr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['loop']['show'] = true;
$this->_sections['loop']['max'] = $this->_sections['loop']['loop'];
$this->_sections['loop']['step'] = 1;
$this->_sections['loop']['start'] = $this->_sections['loop']['step'] > 0 ? 0 : $this->_sections['loop']['loop']-1;
if ($this->_sections['loop']['show']) {
    $this->_sections['loop']['total'] = $this->_sections['loop']['loop'];
    if ($this->_sections['loop']['total'] == 0)
        $this->_sections['loop']['show'] = false;
} else
    $this->_sections['loop']['total'] = 0;
if ($this->_sections['loop']['show']):

            for ($this->_sections['loop']['index'] = $this->_sections['loop']['start'], $this->_sections['loop']['iteration'] = 1;
                 $this->_sections['loop']['iteration'] <= $this->_sections['loop']['total'];
                 $this->_sections['loop']['index'] += $this->_sections['loop']['step'], $this->_sections['loop']['iteration']++):
$this->_sections['loop']['rownum'] = $this->_sections['loop']['iteration'];
$this->_sections['loop']['index_prev'] = $this->_sections['loop']['index'] - $this->_sections['loop']['step'];
$this->_sections['loop']['index_next'] = $this->_sections['loop']['index'] + $this->_sections['loop']['step'];
$this->_sections['loop']['first']      = ($this->_sections['loop']['iteration'] == 1);
$this->_sections['loop']['last']       = ($this->_sections['loop']['iteration'] == $this->_sections['loop']['total']);
?>
        <?php if ($this->_sections['loop']['index']%2): ?>
        <?php $this->assign('bgClass', "class='bgFleet'"); ?>
        <?php else: ?>
        <?php $this->assign('bgClass', ""); ?>
        <?php endif; ?>
        <tr>
         <td <?php echo $this->_tpl_vars['bgClass']; ?>
>
             <input type="checkbox" name="arrTables[]" value="<?php echo $this->_tpl_vars['arr'][$this->_sections['loop']['index']]['Name']; ?>
" checked>
         </td>
            <td <?php echo $this->_tpl_vars['bgClass']; ?>
><?php echo $this->_tpl_vars['arr'][$this->_sections['loop']['index']]['Name']; ?>
</td>
            <td <?php echo $this->_tpl_vars['bgClass']; ?>
><?php echo $this->_tpl_vars['arr'][$this->_sections['loop']['index']]['Comment']; ?>
&nbsp;</td>
            <td align="right" <?php echo $this->_tpl_vars['bgClass']; ?>
><?php echo $this->_tpl_vars['arr'][$this->_sections['loop']['index']]['Rows']; ?>
</td>
            <td align="right" <?php echo $this->_tpl_vars['bgClass']; ?>
><?php echo ((is_array($_tmp=$this->_tpl_vars['arr'][$this->_sections['loop']['index']]['Data_length'])) ? $this->_run_mod_handler('filesize_format', true, $_tmp) : smarty_modifier_filesize_format($_tmp)); ?>
</td>
        </tr>
        <?php endfor; endif; ?>
    </table>
    <p>
        <input name="btnSubmit" type="submit" class="inputButton" id="btnSubmit" value=" 备份 " onClick="backup()" style="display:block">
        <input name="btnDoing" type="button" class="inputButton" id="btnDoing" value="正在备份，此过程可能需要几分钟。请稍候...... " style="display:none">
        </p>
</form>
</body>
</html>