<%@ Page Inherits="Caicai.Framework.UI.Admin.DataBase" %>
<!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">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="style.css" rel="stylesheet" rev="stylesheet" media="all" />
<script type="text/javascript" src="../files/common/jquery.js"></script>
<script type="text/javascript" src="include/common.js"></script>
</head>
<body id="database">
<form id="form1" runat="server">
<table class="subsubmenu table">
<thead>
<tr class="noeffect">
	<td colspan="2" class="tabtitle"><a href="#" class="tag"><%= Caicai.Framework.Common.Language.Get("DatabaseManage") %></a><a href="#" class="tag"><%= Caicai.Framework.Common.Language.Get("Sql") %></a><!--<a href="#" class="tag"><%= Caicai.Framework.Common.Language.Get("CacheManage") %></a>--></td>
</tr>
</thead>
</table>
<br/>
<div class="tabcontent">
<table class="table">
	<thead>
	<tr class="noeffect">
		<td colspan="2"><%= Caicai.Framework.Common.Language.Get("DatabaseManage") %></td>
	</tr>
	</thead>
	<tr>
		<td><%= Caicai.Framework.Common.Language.Get("DatabaseSize") %>&nbsp;<img src="images/ico_data_start.gif" />&nbsp;<asp:Literal ID="LB_DataSize" runat="server" /><a href="?action=copy"  class="textbutton"><%= Caicai.Framework.Common.Language.Get("Backup") %></a></td>
	</tr>
	<tr>
		<td height="10"></td>
	</tr>
	<tr>
		<td class="manage"><%= Caicai.Framework.Common.Language.Get("BackupList") %></td>
	</tr>
	<asp:Repeater runat="server" ID="RepeaterDatabase">
	<ItemTemplate>
	<tr>
		<td><img src="images/ico_data_stop.gif" style="vertical-align:top" />&nbsp;<%#Eval("name")%>&nbsp;&nbsp;(<%#Caicai.Framework.Utils.CFile.FileLength(Eval("Length").ToString())%>)<a href="?action=undo&name=<%#Eval("FullName")%>" title="<%= Caicai.Framework.Common.Language.Get("DatabaseUndoTitle") %>" class="textbutton" name="undo"><%= Caicai.Framework.Common.Language.Get("BackupUndo") %></a><a href="?action=delete&name=<%#Eval("FullName")%>" title="delete" class="textbutton"><%= Caicai.Framework.Common.Language.Get("BackupDelete") %></a></td>
	</tr>
	</ItemTemplate>
	</asp:Repeater>
</table>
<table class="table">
	<thead>
	<tr>
		<td><%= Caicai.Framework.Common.Language.Get("Sql") %></td>
	</tr>
	</thead>
	<tr>
		<td style="color:red;"><%= Caicai.Framework.Common.Language.Get("SqlNote") %></td>
	</tr>
	<tr class="noeffect">
		<td><asp:TextBox runat="server" ID="TB_DataSql" TextMode="MultiLine" /></td>
	</tr>
	<tr class="noeffect">
		<td>
		<asp:Button runat="server" ID="ButtonSql" CssClass="button" OnClick="Sql_Click" />
		</td>
	</tr>
</table>
<!--
<table class="table">
	<thead>
	<tr>
		<td style="padding:10px;"><%= Caicai.Framework.Common.Language.Get("CacheManage") %></td>
	</tr>
	</thead>
	<tr>
		<td style="color:red;"><%= Caicai.Framework.Common.Language.Get("CacheCount") %>&nbsp;:&nbsp;<%=Caicai.Framework.Utils.CCache.Count%>,&nbsp;&nbsp;<%= Caicai.Framework.Common.Language.Get("CacheNote") %></td>
	</tr>
	<asp:Repeater runat="server" ID="RepeaterCache">
	<ItemTemplate>
	<tr>
		<td><img src="images/ico_cache.gif" />&nbsp;<%#Eval("key")%><a href="?action=cache&name=<%#Eval("key")%>" class="textbutton"><%= Caicai.Framework.Common.Language.Get("CacheDelete") %></a></td>
	  </tr>
	</ItemTemplate>
	</asp:Repeater>
</table>
-->
</div>
</form>
</body>
</html>