<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="databaseopr2.aspx.cs" Inherits="Us.Web.admin.database.databaseopr2" %>



<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>数据库操作</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal><link href="../style/default/style.css" rel="stylesheet" type="text/css" />
<%=ImportScriptStr %>

    <script language="javascript" src="/editor/xheditor.js" type="text/javascript"></script>
    <script type="text/javascript" src="/editor/xheditor_lang/zh-cn.js"></script>
    <style type="text/css">
        #radBakup, #radRestore
        {
            width: 14px;
            height: 14px; !important;margin:0px;!important;padding:0px;!important;border:0px}
        #chkSelectAnsy input
        { width: 14px;
            height: 14px; !important;margin:0px;!important;padding:0px;!important;border:0px}
        
    </style>
            
    <script language="javascript" type="text/javascript">
        function jscheckAll() {

            var val = $('input:radio[name="database"]:checked').val();
            var info = "";
            if (val == "radBakup") { info = "您确实要备份数据库吗？备份后当数据需要还原后，可以 通过还原功能选择备份的文件进行还原；"; }
            else {info = "您确实要还原数据库吗？还原后，系统目前的数据将被还原文件全部覆盖！"; }
            return window.confirm(info);
        }


        function dbopr2() {
            var ret;
            var pwd = $("#txtPassword2").val();
            if (pwd != "") {
                ret=window.confirm("您确实要执行选择的操作吗？");
            }
            else {
                window.alert("请输入操作密码后才可以操作数据库");
                ret = false;
            }
            return ret;
        }
        function dbopr3() {
            var ret;
            var pwd = $("#txtPassword3").val();
            if (pwd != "") {
                ret = window.confirm("您确实要执行选择的操作吗？");
            }
            else {
                window.alert("请输入操作密码后才可以操作数据库");
                ret = false;
            }
        }
        
    </script>
</head>
<body onload="win_onLoad();">
    <form id="form1" runat="server">
    
    
    <div id="tbMain">
        <div class="divTbg">
            <div class="divTbgL">
            </div>
            <div class="divTbgInfo">
                <div class="divTbgTitle">
                    数据库操作</div>
            </div>
        </div>
        <div class="divTbgF">
        </div>
        <div class="divTNavBG" id="topURL">
            <ul id="topURLul">
                <li class="divURLed" id="div1">
                    <div>
                        <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" />
                        数据库操作</div>
                </li>
            </ul>
        </div>
        <div id="mypanel">
            <div class="divInfoContext">
                <div class="divInfo">
                    <div class="divInfoblack">
                        <div class="divInfoTopList">
                            <div class="listLeft">
                                <div class="navtitle">
                                    第1个功能：备份/还原数据库</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="divInfo">
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist"
                        onmouseover="changeto()" onmouseout="changeback()">
                        <tr class="tablisttr">
                            <td class="tablisttitle" width="100px">
                                数据库类型
                            </td>
                            <td class="tabmanagertr">
                                <asp:RadioButton ID="radBakup" runat="server" AutoPostBack="True" Checked="True"
                                    GroupName="database" 
                                    Text="备份数据库" oncheckedchanged="radBakup_CheckedChanged" />
                                <asp:RadioButton ID="radRestore" runat="server" AutoPostBack="True" GroupName="database"
                                    Text="还原数据库" oncheckedchanged="radRestore_CheckedChanged" />
                            </td>
                        </tr>
                        <tbody runat="server" id="TBodyBakup" visible="true">
                            <tr class="tablisttr">
                                <td class="tablisttitle">
                                    备份说明
                                </td>
                                <td class="tabmanagertr">
                                    系统把备份文件自动备份到指定的目录，还原的时候选择备份文件即可；备份文件名格式为：yyyyMMddhhmmss_备份文件名.bak；
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">
                                    备份文件名
                                </td>
                                <td class="tabmanagertr">
                                     <asp:TextBox ID="txtBakName" runat="server" Width="200px" CssClass="1" ToolTip="备份文件名">手动备份</asp:TextBox> 
                                </td>
                            </tr>
                        </tbody>
                        <tbody runat="server" id="TBodyRestore" visible="false">
                            <tr class="tablisttr">
                                <td class="tablisttitle">
                                    还原说明
                                </td>
                                <td class="tabmanagertr">
                                    请选择以前备份的数据库备份文件才可以还原；
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">
                                    还原地址
                                </td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtRestorePath" runat="server" Width="400px" ToolTip="还原地址"></asp:TextBox><a href="#" onclick="SkyOpen('txtRestorePath');">
                                    [选择]</a> 
                                </td>
                            </tr>
                        </tbody>
                         <tbody id="Tbody1" runat="server" >
                            
                            <tr class="tablisttr">
                                <td class="tablisttitle">
                                    操作密码
                                </td>
                                <td class="tabmanagertr">
                                     <asp:TextBox ID="txtPassword1" runat="server" Width="200px" CssClass="1" ToolTip="操作密码"></asp:TextBox> 
                                     为了系统安全，必须输入正确的操作密码！
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="divSave">
                        <asp:Button ID="btnSubmit" runat="server" Text="执行(S)" CssClass="SkyButtonFocus"
                            OnClick="btnSubmit_Click" />
                    </div>
                </div>
            </div>
            
            
         
            
            
        </div>
    </div>
    </form>
</body>
</html>
