<%@ Page CodeBehind="backup.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="health.aspx.backup" %>
<%@ Register TagPrefix="uc1" TagName="Pager" Src="../../modules/Pager.ascx" %>
<HTML>
	<HEAD>
		<title>获取服务器端数据库列表示例</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../css/style.css" type="text/css" rel="stylesheet">
		<script language="JavaScript" src="../../js/Calendar.js" type="text/javascript"></script>
		<script language="JavaScript" src="../../js/common.js" type="text/javascript"></script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
		<br>
			<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="90%" border="0" align=center>
				<TR>
					<TD>
						<TABLE class="sys_grid" id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="1">
							<TR>
								<TD align="center" colSpan="2"><FONT face="宋体" size="5"><STRONG>数据库备份与恢复</STRONG></FONT></TD>
							</TR>
							<TR>
								<TD class="sys_grid_head_cell" colSpan="2"><FONT face="宋体">数据库名：health</FONT></TD>
							</TR>
							<TR>
								<TD colSpan="2" style="height: 27px">请输入备份文件名： <INPUT id="pathTextBox" type="text" name="pathTextBox" runat="server" Width="224px" class="sys_editbox">
									&nbsp;.bak</TD>
							</TR>
							<TR>
								<TD align="center" colSpan="2"><FONT face="宋体"><asp:button id="backupButton" runat="server" CssClass="sys_button" Font-Size="9pt" Text="备份数据库" onclick="backupButton_Click"></asp:button>&nbsp;&nbsp;
										<asp:button id="restoreButton" runat="server" CssClass="sys_button" Font-Size="9pt" Text="恢复数据库" onclick="restoreButton_Click"></asp:button></FONT></TD>
							</TR>
							<TR>
								<TD align="left" colSpan="2"><FONT face="宋体"><asp:label id="infoLabel" runat="server" ForeColor="Blue"></asp:label></FONT></TD>
							</TR>
							<TR>
								<TD align="left" colSpan="2">
								
							<asp:datagrid id="grdSQ" runat="server" Width="100%" AllowSorting="True" AutoGenerateColumns="False"	AllowPaging="True" CssClass="sys_grid" >
							<HeaderStyle CssClass="sys_grid_head_cell" />
							<Columns>
								<asp:BoundColumn HeaderText="序号">
									<ItemStyle HorizontalAlign="Center" Height="25px"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="Name" SortExpression="Name" HeaderText="备份文件名">
									<ItemStyle HorizontalAlign="Center" Height="25px"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="LastWriteTime" SortExpression="LastWriteTime" HeaderText="最后修改时间">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="Length" SortExpression="Length" HeaderText="文件大小" DataFormatString="{0:#,### 字节}">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
							</Columns>
							<PagerStyle Visible="False"></PagerStyle>
						</asp:datagrid><uc1:pager id="Pager1" runat="server"></uc1:pager><INPUT id="hd" type="hidden" name="hd" runat="server"></TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
