<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SetDB.aspx.cs" Inherits="Root_DB_SetDB" %>

<%@ Register src="../UserControl/Header.ascx" tagname="Header" tagprefix="uc1" %>
<!DOCTYPE html>

<html>
<head runat="server">
    <title></title>
    <meta name="viewport" content="width=device-width,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
    <style type="text/css">
    </style>
    <script type="text/javascript">
        function hide_test_button() {
            document.getElementById("btnTest").style.display = "none";
        }
        window.onload = function () {
            document.getElementById("txt_db_ip").onkeydown = function () {
                hide_test_button();
            }
            document.getElementById("txt_db_user").onkeydown = function () {
                hide_test_button();
            }
            document.getElementById("txt_db_pwd").onkeydown = function () {
                hide_test_button();
            }
        }
    </script>
</head>
<body>
    <uc1:Header runat="server" ID="uc1" />
    <form id="form1" runat="server">
    <div style='border:solid 0px red;width:600px;margin:auto;margin-top:100px;'>
    <table>
    <tr>
        <td style='text-align:right'>数据库IP：</td>
        <td><asp:TextBox runat="server" ID="txt_db_ip" class='root_textbox' style='width:400px;'></asp:TextBox></td></tr>
    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
    <tr>
        <td style='text-align:right'>用户名：</td>
        <td><asp:TextBox runat="server" ID="txt_db_user" class='root_textbox' style='width:400px;'></asp:TextBox></td></tr>
    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
    <tr>
        <td style='text-align:right'>密码：</td>
        <td><asp:TextBox runat="server" ID="txt_db_pwd" class='root_textbox' style='width:400px;'></asp:TextBox></td></tr>
    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
    <tr>
        <td></td>
        <td>
            <asp:Button ID="btnSave" runat="server" Text="保存设置" onclick="btnSave_Click" class='metro_btn'/>
            <asp:Button ID="btnTest" runat="server" Text="测试连接" onclick="btnTest_Click" class='metro_btn' style=""/>
        </td></tr>
    </table>
    <div style='text-align:center'>
        <asp:Label runat="server" ID="lbl_msg" Text="" ForeColor="White"></asp:Label>
    </div>
        
    </div>
    </form>
</body>
</html>
