<%@ Page Language="c#" Inherits="TopWinCMS.WebUI.Access" CodeBehind="Access.aspx.cs" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="TW" %>
<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
 
<!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">
<head runat="server">
    <title>数据库管理</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

    <style type="text/css">
        #Panel1, #Panel2, #Panel3
        {
            margin-left: auto;
            margin-right: auto;
        }
    </style>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table id="NavigationPath" border="0" cellpadding="4" cellspacing="0" width="100%">
                <tr>
                    <td width="50%">
                        <img src='../../Images/arrow.gif' alt="" />
                        您现在的位置：&nbsp;
                        <asp:Label ID="LB_Path" runat="server"></asp:Label>
                    </td>
                    <td width="50%">
                    </td>
                </tr>
            </table>
            <br />
            <asp:Panel ID="Panel1" runat="server" Width="500px" HorizontalAlign="Center">
                <table cellspacing="0" cellpadding="0" width="100%" border="1">
                    <tr>
                        <td class="HeaderStyle">
                            数据库备份
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;为了防止被恶意下载备份数据库，建议使用<font color="#ff0000"><b>.CS</b></font>的后缀名，可防恶意下载。<br />
                            <asp:Label ID="path" runat="server"></asp:Label>
                            <br />
                            <asp:TextBox ID="DBname" runat="server" Width="210px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DBname"
                                ErrorMessage="要备份数据库不能为空。"></asp:RequiredFieldValidator>
                            <br>
                            <p align="center">
                                <asp:Button ID="BT_Backup" runat="server" CssClass="btn" OnClick="BT_Backup_Click"
                                    Text="备份数据库" />
                            </p>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server" Width="500px" HorizontalAlign="Center">
                <table cellspacing="0" cellpadding="0" width="100%" border="1">
                    <tr>
                        <td class="HeaderStyle">
                            还原数据库
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;请选择备份文件！！！<br />
                            &nbsp;
                            <asp:Label ID="path1" runat="server"></asp:Label>
                         
                            <TW:DropDownListExtend ID="CBB_BackUpDB" runat="server">
                            </TW:DropDownListExtend>
                            <br />
                            <p align="center">
                                &nbsp;<asp:Button ID="BT_Restore" runat="server" CssClass="btn" OnClick="BT_Restore_Click"
                                    Text="还原数据库" />
                            </p>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="Panel3" runat="server" Width="500px" HorizontalAlign="Center">
                <table cellspacing="0" cellpadding="0" width="100%" border="1">
                    <tr>
                        <td align="center" class="HeaderStyle">
                            压缩数据库
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            &nbsp;<asp:Button ID="BT_Compact" runat="server" CssClass="btn" OnClick="BT_Compact_Click"
                                Text="压缩数据库" />
                            <br />
                            <asp:Label ID="LB_DataSize" runat="server" Text="数据库大小：$$"></asp:Label>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
