<?php /* Smarty version 2.6.19, created on 2014-03-07 10:21:59
         compiled from db_import.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'filesize_format', 'db_import.tpl', 31, 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>
</head>

<body>
<div class="bodyTitle">
	<p class="fontBold">数据恢复</p>
</div>
<br>
    <?php if ($this->_tpl_vars['arr']): ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td class="bgFleet borderBottom">备份文件</td>
            <td align="right" class="bgFleet borderBottom">大小</td>
            <td align="center" class="bgFleet borderBottom">下载</td>
            <td align="center" class="bgFleet borderBottom">恢复</td>
            <td align="center" 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']; ?>
><?php echo $this->_tpl_vars['arr'][$this->_sections['loop']['index']]['file']; ?>
</td>
            <td align="right" <?php echo $this->_tpl_vars['bgClass']; ?>
><?php echo ((is_array($_tmp=$this->_tpl_vars['arr'][$this->_sections['loop']['index']]['size'])) ? $this->_run_mod_handler('filesize_format', true, $_tmp) : smarty_modifier_filesize_format($_tmp)); ?>
</td>
            <td align="center" <?php echo $this->_tpl_vars['bgClass']; ?>
><a href="download.php?action=db&file=<?php echo $this->_tpl_vars['arr'][$this->_sections['loop']['index']]['file']; ?>
">下载此备份</a></td>
            <td align="center" <?php echo $this->_tpl_vars['bgClass']; ?>
><a href="?action=import&file=<?php echo $this->_tpl_vars['arr'][$this->_sections['loop']['index']]['file']; ?>
" onClick="return confirm('您将使用“ <?php echo $this->_tpl_vars['arr'][$this->_sections['loop']['index']]['file']; ?>
 ”这个备份数据恢复，是否确定？');">使用此备份恢复</a></td>
            <td align="center" <?php echo $this->_tpl_vars['bgClass']; ?>
><a href="?action=delete&file=<?php echo $this->_tpl_vars['arr'][$this->_sections['loop']['index']]['file']; ?>
" onClick="return confirm('您将删除“ <?php echo $this->_tpl_vars['arr'][$this->_sections['loop']['index']]['file']; ?>
 ”这个备份，是否确定？');">删除此备份</a></td>
        </tr>
        <?php endfor; endif; ?>
    </table>
    <?php else: ?>
    目前还没有备份。
    <?php endif; ?>
</body>
</html>