<?php include pTemplate("header");?>
     <div id="loadingbar"></div>
     
     <div id="main" class="mainPanel wd txt_left">
    <div class="company">
        <aside class="left_panel" un="leftNavBar">
            <ul class="sidetd">
                 <?php echo $left_menu_html;?>
            </ul>
        </aside>
        <div class="right_panel">
        <div class="content_block" un="addr">

        <h1>数据库操作</h1>
        <section>
        	<div class="settingDiv_l f_size">数据库备份：</div>
        	<div class="settingDiv_r">
        		<a href="javascript://" class="btn btnNormal" ck="database_backup" style="margin:0;">点击备份</a>
        		<span class="graytext f_size"><br>(数据库备份文件存放位置 /dat/backup/)</span>
        		<br>
        	</div>
        </section>
        <div class="bd_sep"></div>
        
        <section>
	        <div class="settingDiv_l f_size">数据库还原：</div>
	        <div class="settingDiv_r">
	        	<div class="table-list">
					<form name="myform" id="myform" method="post">
    					<table width="100%" cellspacing="0">
        					<thead>
					            <tr>
						            <th width="2%" align="left"><input type="checkbox" id="sql_checkAll" value=""></th>
						            <th width="15%" align="center">文件名称</th>
						            <th width="10%" align="center">文件大小</th>
						            <th width="15%" align="center">备份时间</th>
						            <th width="10%" align="center">操作</th>
					            </tr>
        					</thead>
    						<tbody>
    						<!-- <?php foreach((array)$backup_file as $key=>$item) {?> -->
    							<tr>
									<td width="2%" height="40">
										<input type="checkbox" boxid="sql_jxt" id="sql_jxt" value="<?php echo $item['filename'];?>" name="filenames[]">
									</td>
									<td width="15%" align="center"><?php echo $item['filename'];?></td>
									<td width="10%" align="center"><?php echo $item['size'];?></td>
									<td width="15%" align="center"><?php echo date('Y-m-d H:i:s', $item['edittime']);?></td>
									<td width="10%" align="center">
									<a href="javascript://" ck="database_restore" file='<?php echo $item['filename'];?>' class="btn btnNormal" style="margin:0;">点击还原</a>
									</td>
								</tr>
							<!-- <?php }?> -->
    						</tbody>
    					</table>
						<div style="padding:10px 0;">
							<label for="check_box"><a href="javascript://" id='sql_checkAll2'>全选</a> / <a href="javascript://" id='sql_resetAll2'>取消</a></label> 
								<input type="submit" value="删除备份" name="dosubmit" id="del_sqlfile" class="bt_compose">
						</div>
						<input type="hidden" name="pc_hash" value="cMDyEG">
					</form>
				</div>
	        	
	        	<span class="graytext f_size">
	        		<br>
	        		<span style="color:#F33; font-weight:bold;">
	        		恢复备份数据的同时将覆盖原有数据！！！！
	        		</span><br>
					数据恢复功能只能恢复由本系统导出的数据文件。<br>
					从本地恢复数据需要服务器支持上传并保证数据小于上传上限。<br>
					数据还原数据失败时请检查您的系统表前缀与之前安装时的前缀是否一致<br>
					如当前前缀为jxt_，之前前缀却为jxtadmin_
				</span>
			</div>
        </section>
	</div></div>
    </div>
</div>

<?php include pTemplate("footer");?>

</body>
</html>