<%@ page language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="admin_Pub_DataTableTool, App_Web_oq0yyit1" title="无标题页" %>
<%@ Register Src="~/Admin/Controls/CurrTool_Panel.ascx" TagName="CurrTool" TagPrefix="html" %>
<%@ Register Src="~/Admin/Controls/CurrImage_Panel.ascx" TagName="CurrImage" TagPrefix="html" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  <link rel="stylesheet" type="text/css" href="../../css/fenye.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <div class="divTools">
    <div class="tool-nav">
      <div class="title"> 导航栏</div>
    </div>
    <div class="clear"> </div>
    <html:CurrTool ID="CurrTool1" Title="数据库备份与还原" Version="120402" runat="server"/>
    <html:CurrImage ID="CurrImage1" Title="数据库操作" 
            Tips="在这里您可以选择以前的旧版数据库进行还原，也可以进行备份、备份的数据库可以下载.." runat="server" />
    <div class="clear"> </div>
  </div>
  <div class="divContent">
    <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
        <div class="divth" style="margin-bottom:5px;">
        <asp:Button ID="BtnInsert" Text="数据库备份" runat="server" CssClass="button" OnClick="BtnInsert_Click" />
        <asp:Button ID="BtnEdit" Text="数据库还原" runat="server" CssClass="button" OnClick="BtnEdit_Click" />
          <asp:Button ID="BtnDelete" Text="删除选中项" runat="server" CssClass="button" OnClick="BtnDelete_Click" />
          <asp:Button ID="btnAll" Text=" 全 选 " runat="server" CssClass="button" OnClick="BtnAll_Click" />
          <asp:Button ID="btnInverse" Text=" 反 选 " runat="server" CssClass="button" OnClick="btnInverse_Click" />
        <br />（<span style="color: #ff0000; font-weight:bold;">请注意：数据库还原后将会被倒档，确认您是管理员，此次操作会影响整个网站运行！</span>） 
      </div>
        <div class="hr"> </div>
      
        <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="False" CssClass="content-table"
                    CellPadding="0" GridLines="None" Width="100%" OnSelectedIndexChanged="DataGrid1_SelectedIndexChanged">
        <ItemStyle CssClass="BotDas" HorizontalAlign="Left" />
        <HeaderStyle CssClass="tableTitle" />
        <SelectedItemStyle CssClass="linkDown" />
        <Columns>
          <asp:TemplateColumn HeaderText=" 选中 " ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="60px">
            <ItemTemplate>
              <asp:CheckBox runat="server" ID="ChkSelect" />
            </ItemTemplate>
          </asp:TemplateColumn>
        <asp:BoundColumn DataField="FileName" HeaderText="文件名称" />
        <asp:BoundColumn DataField="CreationTime" HeaderText="文件写入时间" />
        <asp:BoundColumn DataField="Length" HeaderText="大小[B]" />
        <asp:TemplateColumn HeaderText="下载">
          <ItemTemplate>
            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select" CausesValidation="False" Text="下载"></asp:LinkButton>
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText=" " ItemStyle-Width="2px">
          <ItemTemplate> &nbsp; </ItemTemplate>
        </asp:TemplateColumn>
        </Columns>
      </asp:DataGrid>
      </ContentTemplate>
    </asp:UpdatePanel>
  </div>
</asp:Content>
