<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>
        {--section name=loop loop=$arr--}
        {--if $smarty.section.loop.index%2--}
        {--assign var=bgClass value="class='bgFleet'"--}
        {--else--}
        {--assign var=bgClass value=""--}
        {--/if--}
        <tr>
         <td {--$bgClass--}>
             <input type="checkbox" name="arrTables[]" value="{--$arr[loop].Name--}" checked>
         </td>
            <td {--$bgClass--}>{--$arr[loop].Name--}</td>
            <td {--$bgClass--}>{--$arr[loop].Comment--}&nbsp;</td>
            <td align="right" {--$bgClass--}>{--$arr[loop].Rows--}</td>
            <td align="right" {--$bgClass--}>{--$arr[loop].Data_length|filesize_format--}</td>
        </tr>
        {--/section--}
    </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>