<?php if (!defined('THINK_PATH')) exit();?>

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="__TMPL__Common/style/style.css" />
<script type="text/javascript">
 	var VAR_MODULE = "<?php echo conf("VAR_MODULE");?>";
	var VAR_ACTION = "<?php echo conf("VAR_ACTION");?>";
	var MODULE_NAME	=	'<?php echo MODULE_NAME; ?>';
	var ACTION_NAME	=	'<?php echo ACTION_NAME; ?>';
	var ROOT = '__APP__';
	var ROOT_PATH = '<?php echo APP_ROOT; ?>';
	var CURRENT_URL = '<?php echo trim($_SERVER['REQUEST_URI']);?>';
	var INPUT_KEY_PLEASE = "<?php echo L("INPUT_KEY_PLEASE");?>";
	var TMPL = '__TMPL__';
	var APP_ROOT = '<?php echo APP_ROOT; ?>';
</script>
<script type="text/javascript" src="__TMPL__Common/js/jquery.js"></script>
<script type="text/javascript" src="__TMPL__Common/js/jquery.timer.js"></script>
<script type="text/javascript" src="__TMPL__Common/js/script.js"></script>
<script type="text/javascript" src="__ROOT__/public/runtime/admin/lang.js"></script>
<script type='text/javascript'  src='__ROOT__/admin/public/kindeditor/kindeditor.js'></script>
</head>
<body>
<div id="info"></div>

<script type="text/javascript" src="__TMPL__Common/js/database.js"></script>
<script type="text/javascript" src="__TMPL__Common/js/jquery.bgiframe.js"></script>
<script type="text/javascript" src="__TMPL__Common/js/jquery.weebox.js"></script>
<link rel="stylesheet" type="text/css" href="__TMPL__Common/style/weebox.css" />
<div class="main">
<div class="main_title"><?php echo ($main_title); ?></div>
<div class="blank5"></div>
<div class="button_row">
	<input type="button" class="button" value="<?php echo L("BACKUP");?>" onclick="backup();" />
</div>
<div class="blank5"></div>

<table cellspacing="0" cellpadding="0" class="dataTable" id="dataTable">
	<tr><td height="5" class="topTd" colspan="4"/></tr>
	<tr class="row">
		<th><?php echo (L("BACKUP_FILE")); ?></th>
		<th><?php echo (L("CREATE_TIME")); ?></th>

		<th><?php echo (L("TAG_LANG_OPERATE")); ?></th>
	</tr>
	<?php if(is_array($sql_list)): foreach($sql_list as $groupname=>$sql_item): ?><tr class="row">
			<td><?php echo ($groupname); ?>(<?php echo sprintf(l("TOTAL_COUNT_VOL"),count($sql_item));?>)</td>
			<td><?php echo (to_date($groupname)); ?></td>
			<td><a href="javascript:void(0);" onclick="restore_db('<?php echo ($groupname); ?>');"><?php echo (L("RESTORE")); ?></a> <a href="javascript:void(0);" onclick="delsql('<?php echo ($groupname); ?>');"><?php echo (L("DEL")); ?></a></td>
		</tr><?php endforeach; endif; ?>
	<tr><td height="5" class="bottomTd" colspan="4"/></tr>
</table>
</div>

</div>
</body>
</html>