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

<!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>网胜B2B电子商务系统.NET版安装向导－网胜科技</title>
    <link rel="stylesheet" href="../Css/System/Install.css" type="text/css" />
    <style type="text/css">
.main{
position:absolute; text-align:center; margin-top:0px; left:0px; width:100%; filter:Alpha(opacity=80); background-color:#CCCCCC; height:100%; z-index:100;}
.main div{ 
position:absolute; margin-top:13%; left:30%; width:400px; height:200px; background-color:#FFFFFF
}

</style>
    <style type="text/css">
.white_content {
 display: none;
 position: absolute;
 top: 40%;
 left: 35%;
 width: 270px;
 padding: 6px 16px;
 border: 14px solid #B6DAF0; 
 background-color:#D6E9F1;
 z-index:1002;
 overflow: auto;
 filter: alpha(opacity=80, finishOpacity=80, style=1);
}
.black_overlay {
 display: none;
 position: absolute;
 top: 0%;
 left: 0%;
 width: 100%;
 height: 100%;
 background-color:#D6E9F1;
 z-index:1001;
 -moz-opacity: 0.8;
 opacity:.80;
 filter: alpha(opacity=40);
}
</style>

    <script type="text/javascript">
function show(tag){
 var light=document.getElementById(tag);
 var fade=document.getElementById('fade');
 light.style.display='block';
 fade.style.display='block';
 }
    </script>

    <script type="text/ecmascript" src="Install.js"></script>

    <script type="text/javascript" src="../js/Common.js"></script>

    <script type="text/javascript">
    function chkname(obj,Name){
         var ajax = new list("server="+document.getElementById("txt_server").value+"&user="+document.getElementById("txt_Name").value+"&password="+document.getElementById("txt_password").value+"&dataName="+document.getElementById("txt_sql").value,"12");
         ajax.onSuccess = function(){
         if(xmlHttp.responseText=="1")
         {
            alert("连接成功!");
         }
         else
         {
            alert("连接失败!");
         }
   }
      ajax.Init();   
}

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div id="main_box" runat="server" style="">
            <ul>
                <li class="title">
                    <img src="../Images/install_Bg1.gif" width="644" height="51" /></li>
                <li class="comeleft">
                    <p>
                        服务器环境检测</p>
                    <p>
                        程序文件写入检测</p>
                    <p class="bg1">
                        系统初始化和安装</p>
                    <p>
                        安装成功</p>
                </li>
                <li class="comeright">
                    <table border="0" cellpadding="0" cellspacing="0" class="table_mar">
                        <tr>
                            <th colspan="2">
                                请填写系统初始化信息(<font color="#FF0000">重新安装会删除所有网站数据!</font>)</th>
                        </tr>
                        <tr>
                            <td height="25" class="left1">
                                网站名称：</td>
                            <td height="25">
                                <input name="text" type="text" id="txt_InternetName" runat="server" />
                                <div id="Div0" runat="server">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="left1">
                                网站域名：</td>
                            <td height="25">
                                <input name="text2" type="text" id="txt_InternetAraeName" title='网址" 如:http://www.websen.net/'
                                    value="http://" runat="server" />
                                <div id="Div1" runat="server">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="left1">
                                管理员账号：</td>
                            <td height="25">
                                <input name="text2" type="text" id="txt_memberNumber" runat="server" />
                                <div id="Div2" runat="server">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td height="35" class="left1">
                                管理员密码：</td>
                            <td height="35">
                                <input name="password" type="password" id="txt_password1" runat="server" />
                                <div id="Div3" runat="server">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="left1">
                                重复密码：</td>
                            <td height="25">
                                <input name="password" type="password" id="txt_password2" runat="server" onblur="checkTxtbox()" />
                                <div id="Div4" runat="server">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="left1">
                                服务器名称：</td>
                            <td>
                                <input name="text2" type="text" id="txt_server" value="(local)" runat="server" />
                                <div id="Div5" runat="server">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="left1">
                                数据库名称：</td>
                            <td>
                                <input name="text2" type="text" id="txt_sql" runat="server" />
                                <div id="Div6" runat="server">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="left1">
                                数据库用户名：</td>
                            <td>
                                <input name="text2" type="text" id="txt_name" runat="server" />
                                <div id="Div7" runat="server">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="left1">
                                请输入密码：</td>
                            <td>
                                <input name="password" type="password" id="txt_password" runat="server" />
                                <input id="checkConnection" style="width: 100px; height: 25px;" name="checkConnection"
                                    type="button" value="检查数据库连接" onclick="chkname();" />
                                <div id="Div8" runat="server">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="left1">
                                请输入MD5密钥：</td>
                            <td>
                                <input name="text2" type="text" id="txt_Md5" runat="server" />
                                <div id="Div9" runat="server">
                                </div>
                            </td>
                        </tr>
                        <tr style="display:none">
                            <td class="left1">
                                导入测试数据：
                               </td>
                            <td>
                            <div>
                                <asp:CheckBox ID="cbxImportData" runat="server" Checked="true" />
                            </div>
                            </td>
                        </tr>
                    </table>
                </li>
                <li class="bottom">
                    <asp:LinkButton ID="lkbtn_start" OnClick="Button1_Click" runat="server" CssClass="bOT_bg"
                        OnClientClick="show('light')">开始安装</asp:LinkButton>
                    <a href="NextPage.aspx" class="bOT_bg">上一步</a> </li>
            </ul>
        </div>
        <div id="divError" runat="server">
        </div>
        <div id="light" class="white_content">
            <b>正在安装数据库,可能需要几分钟,请耐心等待!</b><br />
            <img src="images/1.gif" alt="" style="width: 264px;" />
        </div>
        <div id="fade" class="black_overlay">
        </div>
    </form>
</body>
</html>
