<%@ page language="C#" autoeventwireup="true" inherits="install.install_Step4, LebiMall" %>

<html>
<head>
<meta name="generator" content="LBMall 3.0.0" />
<meta name="author" content="Kingdge,kingdge@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>LBMall商城系统 安装程序 - Powered by LBMall</title>
    <link href="../install/css/css.css" rel="stylesheet" type="text/css" />
<style>
body{margin-top:20px;font-size:12px;background-color: #f8f8f8;color: #666666;}
p{margin:0;padding:0}
ul{margin:0 0 -1px 0;padding:0}
a:link{font-size: 12px;font-family: 宋体;color: #666666;text-decoration: underline;}
a:visited{font-size: 12px;font-family: 宋体;color: #666666;text-decoration: underline;}
a:hover{font-size: 12px;font-family: 宋体;color: #ff6600;text-decoration: underline;}
a:active{font-size: 12px;font-family: 宋体;color: #666666;text-decoration: underline; }
tr.classrow {background-color:expression((this.rowIndex%2==0)?"#F5F5F5":"#FFFFFF");ryo:expression(onmouseover=function(){this.style.backgroundColor='#F5F5F5'},onmouseout=function(){this.style.backgroundColor=(this.style.backgroundColor='#F5F5F5'?((this.rowIndex%2==0)?"#F5F5F5":"#FFFFFF"):'#F5F5F5')},onclick=function(){this.style.backgroundColor='#F5F5F5'})}
td.classrow {FONT-SIZE: 11px; BORDER-BOTTOM: #e5e5e5 1px solid; FONT-FAMILY:"Verdana";line-height:180%;padding-left:10px;}
.button{font-size: 10pt;color: #000000;background-color: #FFFFFF;cursor: hand;padding: 2px -3px 0px -3px;height: 21px;border: 1px solid #D4D1CB;FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType='0', StartColorStr='#FFFFFF', EndColorStr='#D4D1CB');}
.head{background:url(images/bg.gif);color:#FFF;font-weight:bold;font-size:12px;padding:5px;}
.thisstep{background:#F5F5F5;BORDER-top: #e5e5e5 1px solid;BORDER-BOTTOM: #e5e5e5 1px solid;color:#5FB2C9;font-size:12px;font-weight:bold;padding:5px;}
.list{background:#FFF;color:#666666;font-size:12px;padding:5px;line-height:180%;}
.foot{background:#F5F5F5;color:#FF9900;font-size:12px;padding:5px;}
.form{border: 1px #B2B2A6 solid;height:20px;}
#tablist,#tablistmain,.tablist{margin-top: 5px;margin-left:0px;list-style-type: none;text-align: left;}
#tablist li,#tablistmain li,.tablist li{display: inline;margin: 0;}
#tablist li a,#tablistmain li a,.tablist li a{font-size:12px;height:25px;margin-bottom:-1px;margin-right:5px;padding: 2px 10px 1px 10px;color:#000000;background-color:#FFFFFF;border: 1px solid #E5E5E5;}
#tablist li a:visited,#tablistmain li a:visited,.tablist li a:visited{background-color:#FFFFFF;border: 1px solid #B4B99E;}
#tablist li a:hover,#tablistmain li a:hover,.tablist li a:hover{color:#000000;background-color:#F5F5F5;border: 1px solid #B4B99E;}
#tablist li.selected,#tablistmain li.selected,.tablist li.selected{padding: 0px;margin-right:0px;}
#tablist li.selected a,#tablistmain li.selected a,.tablist li.selected a{font-size:12px;height:25px;margin-bottom:-1px;padding:2px 10px 1px 10px;font-weight:bold;background-color:#F5F5F5;color:#5FB2C9;text-align:center;border: 1px solid #E5E5E5;}
#tablist li.selected a:hover,#tablistmain li.selected a:hover,.tablist li.selected a:hover{text-decoration: none;color:#000000;}
#tablist li.selected a:visited,#tablistmain li.selected a:visited,.tablist li.selected a:visited{text-decoration: none;color:#000000;}
#tabcontentcontainer{width: 100%;margin-right: 10px;margin-bottom: 5px;padding: 0;background: #FFFFFF;border: 1px solid #E5E5E5;}
.tabcontent{margin: 0;display:none; background: #FFFFFF;}
.msg_submit
{
	background: url(../images/error.gif) no-repeat; padding-left:16px;
	color:#ff0000;
}
</style>
</head>
<body>

<script type="text/javascript">
function via(){
    var flag = true;
    if(!viaIP()){
       flag = false;  
    }
    if(!viaDBName()){
       flag = false;  
    }
    if(!viaUserName()){
       flag = false;  
    }
    if(!viaUserPwd()){
       flag = false;  
    }
    return flag;
}
function viaIP(){
    if(document.getElementById("Text1").value==""){
        document.getElementById("msg_ip").innerHTML = "<span class='msg_submit'>数据库IP不能为空！</span>";
        document.getElementById("Button1").setAttribute("disabled", "disabled");
        document.getElementById("lbDBStatus").innerHTML = "";
        return false;
    }else{
        document.getElementById("msg_ip").innerHTML = "(数据库IP一般为localhost)";
        return true;
    }
}
function viaDBName(){
    if(document.getElementById("Text2").value==""){
        document.getElementById("msg_dbName").innerHTML = "<span class='msg_submit'>数据库名称不能为空！</span>";
        document.getElementById("Button1").setAttribute("disabled", "disabled");
        document.getElementById("lbDBStatus").innerHTML = "";
        return false;
    }else{
        document.getElementById("msg_dbName").innerHTML = "(数据库名称)";
        return true;
    }
}
function viaUserName(){
    if(document.getElementById("Text3").value==""){
        document.getElementById("msg_userName").innerHTML = "<span class='msg_submit'>用户名不能为空！</span>";
        document.getElementById("Button1").setAttribute("disabled", "disabled");
        document.getElementById("lbDBStatus").innerHTML = "";
        return false;
    }                else{
     document.getElementById("msg_userName").innerHTML = "(数据库用户名)";
        return true;
    }
}

function viaUserPwd(){
    if(document.getElementById("Text4").value==""){
        document.getElementById("msg_userPwd").innerHTML = "<span class='msg_submit'>数据库密码不能为空！</span>";
        document.getElementById("Button1").setAttribute("disabled", "disabled");
        document.getElementById("lbDBStatus").innerHTML = "";
        return false;
    }                else{
    document.getElementById("msg_userPwd").innerHTML = "(数据库密码)";
        return true;
    }
}

</script>
<form runat="server" >
<table cellspacing='0' cellpadding='0' align='center' width='602'>
    <tr>
        <td height='79' align='center'><a href='http://www.lbmall.cn/' target='_blank'><img src='image/index_01.gif' height='79' width='602' alt='LBMall商城系统' border='0'></a></td>
    </tr>
    <tr>
        <td valign='top' background='image/index_02.gif'>
            <table cellspacing='0' cellpadding='0' align='center' width='580'>
                <tr><td height='25' class='thisstep' colspan='2'> (4) 参数配置</td></tr>
                <tr class='classrow'>
                    <td class='classrow' width='25%' height='30' style='padding-left:5px;'>请输入您的数据库类型：</td>
                    <td class='classrow'>&nbsp;<input type="radio" id="radio" checked />MSSQL2005</td>
                </tr>
                <tr class='classrow'>
                    <td class='classrow' colspan="2" width='18%' height='30' style='padding-left:5px;'>请输入您的数据连接字符串：</td>
                </tr>
                <tr class='classrow'>
                    <td class='classrow' width='18%' height='30' style='padding-left:5px;'>数据库IP：</td>
                    <td class='classrow'><input id="Text1" type="text" runat="server" value="localhost" onblur="viaIP();"/>&nbsp;&nbsp;<span id="msg_ip">(数据库IP一般为localhost)</span></td>
                </tr>
                <tr class='classrow'>
                    <td class='classrow' width='18%' height='30' style='padding-left:5px;'>数据库名：</td>
                    <td class='classrow'><input id="Text2" type="text" runat="server" value="LBMall"  onblur="viaDBName();"/>&nbsp;&nbsp;<span id="msg_dbName">(数据库名称)</span></td>
                </tr>
                 <tr class='classrow'>
                    <td class='classrow' width='18%' height='30' style='padding-left:5px;'>用 户 名：</td>
                    <td class='classrow'><input id="Text3" type="text" runat="server" value="sa" onblur="viaUserName();" />&nbsp;&nbsp;<span id="msg_userName">(数据库用户名)</span></td>
                </tr>
                <tr class='classrow'>
                    <td class='classrow' width='18%' style="padding-left:5px; height: 30px;">登陆密码：</td>
                    <td class='classrow' style="height: 30px"><input id="Text4" type="text" runat="server" style="width: 120px" onblur="viaUserPwd();"/>&nbsp;&nbsp;<span id="msg_userPwd">(数据库密码)</span> <asp:Button ID="TestConnect" runat="server" CssClass="btn" OnClientClick="return via();" Text="测试连接" OnClick="TestConnect_Click" />
                        <%--<asp:Label ID="lbDBStatus" CssClass="red" runat="server"></asp:Label>--%><label id="lbDBStatus" runat="server" class="red"></label></td>
                </tr>
                  <tr >
                    <td class='foot'><input id="Button2" type="button" value="上一步" class="button" onclick="javascript:history.back()"/>
                    <asp:Button ID="Button1" OnClientClick="return via();" runat="server" CssClass="button" Text="下一步" OnClick="Button1_Click" />
                </td>
                      
                <td height='35' class='foot' align='right'> Powered by <a href='http://www.lbmall.cn/' target='_blank'><span style='color:#73BED4;font-weight:bold;'>LBMall</span></a></td>
                </tr>
                <script language='javascript'>function UseAC(){UseAC_box.style.display='';UseSQL_box.style.display='none';}function UseSQL(){UseAC_box.style.display='none';UseSQL_box.style.display='';}
                function NoneUseOtherdomin(){UseOtherdomin_box.style.display='none';}function UseOtherdomin(){UseOtherdomin_box.style.display='';}</script>
            </table> 
         </td>
        </tr>
    </table> </form>
</body>
</html>
                
                
            
