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

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!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 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 %>
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <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/green/images/mini_icons_046.gif" width="10" height="10" />
                                    数据库设置</div>
                            </li>
                        </ul>
                    </div>
                    <div id="mypanel">
                        <div id="ddiv1">

                            <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" align="center" cellpadding="0" cellspacing="1" class="tablist">
                                    <tr class="tablisttr">
                                        <td width="100" align="center" class="tablisttitle">数据库类型 </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="TBodyDataBaseAccess" visible="true">
                                        <tr class="tablisttr">
                                            <td width="100" align="center" class="tablisttitle">数据库地址 </td>
                                            <td class="tabmanagertr">
                                                <asp:TextBox ID="txt5" runat="server" Width="300px"></asp:TextBox>
                                            </td>
                                        </tr>
                                    </tbody>
                                    <tbody runat="server" id="TBodyDataBase" visible="false">
                                        <tr class="tablisttr">
                                            <td width="100" align="center" class="tablisttitle">数据库服务器 </td>
                                            <td class="tabmanagertr">
                                                <asp:TextBox ID="txt1" runat="server" CssClass="1" ToolTip="数据库服务器" Width="300px">localhost</asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr class="tablisttr">
                                            <td width="100" align="center" class="tablisttitle">数据库名称 </td>
                                            <td class="tabmanagertr">
                                                <asp:TextBox ID="txt2" runat="server" CssClass="1" ToolTip="数据库名称" Width="300px">SchoolDB</asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr class="tablisttr">
                                            <td width="100" align="center" class="tablisttitle">登录用户名 </td>
                                            <td class="tabmanagertr">
                                                <asp:TextBox ID="txt3" runat="server" CssClass="1" ToolTip="登录用户名" Width="300px">sa</asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr class="tablisttr">
                                            <td width="100" align="center" class="tablisttitle">登录密码 </td>
                                            <td class="tabmanagertr">
                                                <asp:TextBox ID="txt4" runat="server" CssClass="1" ToolTip="登录密码" Width="300px" TextMode="Password"></asp:TextBox>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="divSave">
                        <asp:Button ID="btnSubmit" runat="server" Text="保存(S)" CssClass="SkyButtonFocus"
                            OnClick="btnSubmit_Click" AccessKey="S" CommandName="save"></asp:Button>
                    </div>
                    <span class="usHelpMessage">* 注意事项： </span>
                    1、正式时候用，请不要修改此处，特别是切换数据库类型；
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <div id="divLoading">
                    <img src="/admin/images/loading.gif" /></div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </form>
</body>
</html>
