<%@ Page language="c#" Codebehind="SystemBackup.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.SystemBackup" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
	    <!--#include file="inc/head.inc"-->
		<title>SystemBackup</title>
	</HEAD>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />
		    系统备份
		</div>
		<div class="sub_container_content">
		<form id="form1" runat="server">
		    <div class="frame">
		        <div class="frame_title">数据库备份</div>
		        <div class="frame_content">
			        <table class="tableBorder" cellSpacing="1" cellPadding="1" width="600" align="center" border="0">
				        <tr>
					        <td>
						        <table class="ptable" cellspacing="0" cellpadding="0">
							        <tr>
								        <th class="tl">备份文件名：
								        </th>
								        <td class="tr"><asp:textbox id="txtFileName" runat="server" Width="150px"></asp:textbox></td>
							        </tr>
							        <tr>
								        <th class="tl"></th>
								        <td class="tr"><asp:button id="btnBackupDB" onclick="btnBackupDB_Click" runat="server" Text="备份" CssClass="inputbtn"></asp:button></td>
							        </tr>
							        <tr>
								        <td class="tr" colSpan="2"><asp:datagrid id="dgList" runat="server" Width="100%" OnEditCommand="dgList_EditCommand" OnDeleteCommand="dgList_DeleteCommand"
										        OnUpdateCommand="dgList_UpdateCommand" HeaderStyle-CssClass="summary-title" HorizontalAlign="Center" DataKeyField="FilePath"
										        AutoGenerateColumns="False" PagerStyle-Mode="NumericPages" AllowPaging="False">
										        <HeaderStyle Font-Bold="True"></HeaderStyle>
										        <Columns>
											        <asp:TemplateColumn HeaderText="文件名">
												        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
												        <ItemStyle HorizontalAlign="Center"></ItemStyle>
												        <ItemTemplate>
													        <a href='SQLBackup/<%# DataBinder.Eval(Container.DataItem, "FileName") %>'>
														        <%# DataBinder.Eval(Container.DataItem, "FileName") %>
													        </a>
												        </ItemTemplate>
											        </asp:TemplateColumn>
											        <asp:TemplateColumn HeaderText="文件大小">
												        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
												        <ItemStyle HorizontalAlign="Center" Width="80px"></ItemStyle>
												        <ItemTemplate>
													        <%# DataBinder.Eval(Container.DataItem, "FileSize") %>
													        K
												        </ItemTemplate>
											        </asp:TemplateColumn>
											        <asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
												        CommandName="Delete">
												        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
											        </asp:ButtonColumn>
											        <asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认恢复此数据库吗？')&quot;&gt;恢复&lt;/div&gt;"
												        CommandName="Update">
												        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
											        </asp:ButtonColumn>
											        <asp:ButtonColumn Text="下载" CommandName="Edit">
												        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
											        </asp:ButtonColumn>
										        </Columns>
										        <PagerStyle Mode="NumericPages"></PagerStyle>
									        </asp:datagrid></td>
							        </tr>
						        </table>
					        </td>
				        </tr>
			        </table>
		        </div>
	        </div>
		</form>
		</div>
		</div>
		</div>
	</body>
</HTML>
