<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SqlServer.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.DataBase.SqlServer" %>

<!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 id="Head1" 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" runat="server">
    <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 />
                    <br />
                    <asp:TextBox ID="TB_Backup" runat="server" Width="300px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="TB_Backup" ErrorMessage="路径不能为空。"></asp:RequiredFieldValidator>
                    <br>
                    <p align="center">
                        <asp:Button ID="BT_Backup" runat="server" CssClass="btn" 
                            OnClick="BT_Backup_Click" Text="备份数据库" />
                    </p>
                    <br></br>
                    </br>
                </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:TextBox ID="TB_Restore" runat="server" Width="300px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="TB_Restore" ErrorMessage="路径不能为空"></asp:RequiredFieldValidator>
                    <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 />
                </td>
            </tr>
        </table>
    </asp:Panel>
    </form>
</body>
</html>
