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


<!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" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>数据库配置</title>
    <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="/admin/js/System.js" type="text/javascript"></script>
    <script language="javascript" src="/editor/xheditor.js" type="text/javascript"></script>
    <style type="text/css">
        #radSQLServer, #radAccess {
            width: 14px;
            height: 14px;
            !important;
            margin: 0px;
            !important;
            padding: 0px;
            !important;
            border: 0px none #009999;
        }
    </style>
     <script language="javascript" type="text/javascript">
         function jscheckAll() {

             
             var info = "";
             info = "您确实要修改数据库连接吗？修改成功后，需要重新登录系统！";

             if (art.dialog.data("retdata") == 1) {
                 art.dialog.data("retdata", 0);
                 return true;
             }
             art.dialog.confirm(info, function () {
                 art.dialog.data("retdata", 1);
                 document.getElementById("btnSubmit").click();
             });

             return 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">
                                        数据库配置
                                    </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">数据库类型<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:RadioButton ID="radAccess" runat="server" AutoPostBack="True" Checked="True"
                                        GroupName="database" OnCheckedChanged="radAccess_CheckedChanged" Text="Access数据库" />
                                    <asp:RadioButton ID="radSQLServer" runat="server" AutoPostBack="True" GroupName="database"
                                        OnCheckedChanged="radSQLServer_CheckedChanged" Text="MsSQLServer数据库" /></td>

                            </tr>
                            <tbody runat="server" id="TBodyDataBase" visible="false">
                                <tr class="tablisttr">
                                    <td class="tablisttitle">数据库服务器<span class="fStar">*</span></td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txt1" runat="server" CssClass="1" ToolTip="数据库服务器" Width="300px">localhost</asp:TextBox></td>

                                </tr>
                                <tr class="tablisttr">
                                    <td class="tablisttitle">数据库名称<span class="fStar">*</span></td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txt2" runat="server" CssClass="1" ToolTip="数据库名称" Width="300px">SchoolDB</asp:TextBox></td>

                                </tr>
                                <tr class="tablisttr">
                                    <td class="tablisttitle">登陆用户名<span class="fStar">*</span></td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txt3" runat="server" CssClass="1" ToolTip="登陆用户名" Width="300px">sa</asp:TextBox></td>

                                </tr>
                                <tr class="tablisttr">
                                    <td class="tablisttitle">登陆密码<span class="fStar">*</span></td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txt4" runat="server" CssClass="1" ToolTip="登陆密码" Width="300px">00000000</asp:TextBox></td>

                                </tr>
                            </tbody>
                            <tbody runat="server" id="TBodyDataBaseAccess" visible="true">
                                <tr class="tablisttr">
                                    <td class="tablisttitle">数据库地址<span class="fStar">*</span></td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txt5" runat="server" Width="300px"></asp:TextBox></td>
                                </tr>
                            </tbody>

                            <tr class="tablisttr">
                                <td class="tablisttitle">使用说明</td>
                                <td class="tabmanagertr">
                                    <span class="usHelpMessage">* 注意事项：请不要随意修改此处，正式用户请使用MsSQLServer数据库； 
                                    </span>
                                </td>
                            </tr>
                        </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>
