<%@ Page CodeBehind="admin_database.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.admin_database" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>数据清理</title>
		<script type="text/javascript" src="../js/calendar.js"></script>
		<script language="javascript">
   var CalendarWebControl = new atCalendarControl();
		</script>
		<link href="img/main.css" rel="stylesheet" type="text/css">
			<style type="text/css">
		.style4 { COLOR: #ff0000 }
		.style5 { FONT-WEIGHT: bold; COLOR: #ffffff }
		</style>
	</HEAD>
	<body>
		<form name="Form1" method="post" id="Form1" runat="server">
			<asp:Panel id="Panel1" runat="server">
				<TABLE cellSpacing="1" cellPadding="3" width="100%" align="center" border="0">
					<TR>
						<TD class="td_title" colSpan="3">压缩数据库</TD>
					</TR>
					<TR class="tableHeadLeft">
						<TD align="right" bgColor="#d3ebf5">
							<DIV align="center">压缩数据库大小。建议压缩先前备份数据库。
								<asp:Label id="currsize" runat="server"></asp:Label></DIV>
						</TD>
					</TR>
					<TR class="tableTd">
						<TD align="right">
							<DIV align="center">
								<asp:Button class="formbutton" id="Submit1" runat="server" Width="100px" Text=" 压 缩 " onclick="Submit1_Click"></asp:Button></DIV>
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Panel id="Panel2" runat="server">
				<TABLE cellSpacing="1" cellPadding="3" width="100%" align="center" border="0">
					<TR>
						<TD class="td_title" colSpan="3">备份数据库</TD>
					</TR>
					<TR class="tableHeadLeft">
						<TD align="right" bgColor="#d3ebf5">
							<DIV align="center">备份的文件路径为网站根下的bakup目录，备份名称：
								<asp:TextBox id="backname" runat="server" Width="227px"></asp:TextBox><SPAN class="forumrow"><SPAN class="px14"></SPAN>
								</SPAN></DIV>
						</TD>
					</TR>
					<TR class="tableTd">
						<TD align="right">
							<DIV align="center">
								<asp:Button class="formbutton" id="Submit2" runat="server" Width="100px" Text=" 备 份 " onclick="Submit2_Click"></asp:Button></DIV>
						</TD>
					</TR>
				</TABLE>
				<DIV align="center">
					<TABLE id="brb" height="27" cellSpacing="1" cellPadding="5" width="100%" align="center"
						border="0">
						<TR>
							<TD class="td_title" colSpan="3">数据库备份列表</TD>
						</TR>
					</TABLE>
					<asp:datagrid id="DataGrid" runat="server" Width="100%" CssClass="GridBody" AutoGenerateColumns="False"
						PageSize="20" AllowSorting="True">
						<AlternatingItemStyle CssClass="GridLine"></AlternatingItemStyle>
						<ItemStyle CssClass="GridItem"></ItemStyle>
						<HeaderStyle CssClass="GridHead"></HeaderStyle>
						<Columns>
							<asp:BoundColumn DataField="name" ReadOnly="True" HeaderText="文件名">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
							</asp:BoundColumn>
							<asp:BoundColumn DataField="size" HeaderText="大小">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
							</asp:BoundColumn>
							<asp:BoundColumn DataField="update" HeaderText="创建时间">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
							</asp:BoundColumn>
							<asp:ButtonColumn Text="删除备份" HeaderText="删除" CommandName="Delete">
								<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
							</asp:ButtonColumn>
						</Columns>
						<PagerStyle PageButtonCount="20" Mode="NumericPages"></PagerStyle>
					</asp:datagrid>
					<P align="left"></P>
				</DIV>
			</asp:Panel>
			<p>&nbsp;</p>
			<p><FONT face="宋体"></FONT>&nbsp;</p>
		</form>
	</body>
</HTML>
