<%@ page language="C#" autoeventwireup="true" inherits="admin_other_SetRestoreSql, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!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>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="RestoreSQLServer.aspx">备份数据库文件列表</a>
                >> 设置还原数据库
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
        <tr>
            <td class="bqleft">
                备份文件名称：
            </td>
            <td class="bqright">
                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td colspan="2" height="30" class="bqright">
                还原方案一（单独使用有权限的用户操作还原）：
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                服务器Ip：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtIp" runat="server" CssClass="in1" Text="(local)"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                还原用户名：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtUserId" runat="server" Columns="30" CssClass="in1"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                密码：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtPassword" runat="server" Columns="30" CssClass="in1"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                还原数据库：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtDatabase" runat="server" Columns="30" CssClass="in1"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="40">
                <asp:Button ID="Button1" runat="server" Text=" 确认还原 " CssClass="btn" OnClick="Button1_Click" />
            </td>
        </tr>
        <tr>
            <td colspan="2" height="30" class="bqright">
                还原方案二（系统默认账户已有还原权限）：
            </td>
        </tr>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="40">
                <asp:Button
                    ID="Button4" runat="server" Text=" 使用系统默认账户还原 " CssClass="btn radius30 pad_0_30" 
                    onclick="Button4_Click" />
            </td>
        </tr>
        <tr>
            <td class="bqright" colspan="2">
                注意事项：<br />
                1、<font color="red"><b>还原前请确认是否需要还原，避免造成数据丢失</b></font><br />
                2、请确认设置的用户名具有还原数据库权限<br />3、还原的数据库名称应与备份文件的数据库相同
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
