<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl>$nc_charset</tpl>" />
<title><tpl>$admin_header_tools_manage</tpl> - <tpl>$admin_tools_db</tpl></title><!-- 工具管理 - 数据库管理 -->
<link type="text/css" rel="stylesheet" href="<tpl>$Site_Url</tpl>/admin/templates/css/toolbox.css" />
<link type="text/css" rel="stylesheet" href="<tpl>$Site_Url</tpl>/admin/templates/css/main.css" />
<script type="text/javascript" src="<tpl>$Site_Url</tpl>/js/jquery/jquery.js"></script>
<script type="text/javascript" src="<tpl>$Site_Url</tpl>/admin/templates/global.js"></script>
</head>

<body id="sql">
<div id="content">
  <form id="form1" name="form1" method="post" action="admin_tool_db.php?action=db_dir_del">
    <h2><tpl>$admin_header_tools_manage</tpl><!-- 工具管理 --> >> <tpl>$admin_tools_db</tpl><!-- 数据库管理 --> >> <tpl>$admin_tool_sql_revert</tpl><!-- 数据还原 -->
    	<span class="alignRight"><a href="admin_tool_db.php?action=db_sql_back" target="_self">{<tpl>$admin_tool_sql_backup</tpl><!-- 数据备份 -->}</a></span>
	</h2>
	<div class="entry-body">
		<div class="red-notice">
			<p><tpl>$admin_tool_sql_revert_info</tpl><!-- 还原已备份的网店数据库，此操作会使用备份数据库的数据覆盖当前数据库所有数据。 --></p>
		</div>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="optionTab">
			<tr>
				<td><input type="submit" name="Submit3" value="<tpl>$admin_tool_sql_revert_del</tpl>" class="delBtnInput" /><!-- 删除 --></td>
			</tr>
		</table>
		<div class="border">
			<table width="100%" border="0" cellpadding="0" cellspacing="0" class="stripeMe" id="all_sql">
				<tr>
					<th><input type="checkbox" name="all" id="all" value="checkbox" /></th>
					<th><tpl>$admin_tool_sql_revert_dir</tpl><!-- 数据库/表 --></th>
					<th><tpl>$admin_tool_sql_revert_time</tpl><!-- 备份时间 --></th>
					<th><tpl>$admin_tool_sql_revert_size</tpl><!-- 大小(KB) --></th>
					<th><tpl>$admin_tool_sql_revert_zip</tpl><!-- 压缩 --></th>
					<th><tpl>$admin_tool_sql_revert_oper</tpl><!-- 操作 --></th>
				</tr>
				<tpl> section name=list loop=$dir_array </tpl>
				<tr>
					<td><input type="checkbox" name="db_back[]" value="<tpl> $dir_array[list].dirname </tpl>" class="cb" /></td>
					<td><a href="#nogo"><tpl> $dir_array[list].dirname </tpl></a></td>
					<td><tpl> $dir_array[list].dirtime </tpl></td>
					<td><tpl> $dir_array[list].dirsize </tpl></td>
					<td><tpl> if $dir_array[list].dirzip=='' </tpl><tpl> $admin_tool_sql_revert_null </tpl><tpl> else </tpl><a href="<tpl>$Site_Url</tpl><tpl> $dir_array[list].dirzip </tpl>"><tpl> $admin_tool_sql_revert_down </tpl></a><tpl> /if </tpl></td>
					<td>
						<a href="admin_tool_db.php?action=db_revert_up&path=<tpl> $dir_array[list].dirname </tpl>" title="<tpl>$admin_tool_sql_revert_sql</tpl>"><!-- 还原 --><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_revert.gif" /></a>
						<a href="admin_tool_db.php?action=db_back_zip&path=<tpl> $dir_array[list].dirname </tpl>" title="<tpl>$admin_tool_sql_revert_zip</tpl>"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_zip.gif" /></a>
						<a href="admin_tool_db.php?action=db_dir_del&db_back=<tpl> $dir_array[list].dirname </tpl>"  onclick="return confirm('<tpl>$admin_tool_sql_del_conf</tpl>')"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_cancel.gif" title="<tpl> $admin_tool_sql_revert_del </tpl>" /><!-- 删除 --></a>
					</td>
				</tr>
				<tpl> /section </tpl>
			</table>
		</div>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="optionTab">
			<tr>
				<td><input type="submit" name="Submit3" value="<tpl>$admin_tool_sql_revert_del</tpl>" class="delBtnInput" /><!-- 删除 --></td>
			</tr>
		</table>
    </div><!--  end of entry2  -->
	<div class="clear"></div>
</form>
<tpl>include_php file ='admin_footer.php'</tpl><!-- 底部版权信息 -->
</div><!--  end of content  -->
</body>
</html>
