<?php include('header.html');?>
<style type="text/css">
.twbox span{
	color:#ff6600;
	font-weight:700;
}
</style>
<script type="text/javascript">
	function check_value(id,msg){
		if(document.getElementById(id).value==''){
			document.getElementById(id).style.border="1px solid #ff6600";
			document.getElementById("msg_"+id).innerHTML=' <img src="public/images/info.png">'+msg;
			return false;
		}else{
			document.getElementById(id).style.border="1px solid #aaa";
			return true;
		}
	}
	function DoInstall(){
		if(!check_value('adminname','用户名不能为空！')) return false;
		if(!check_value('adminpass','密码不能为空！')) return false;
		if(!check_value('web_name','网站名称不能为空！')) return false;
		if(!check_value('web_url','网站地址不能为空！')) return false;
        document.form1.submit();
    }
</script>
<div class="main">
    <div class="pleft">
        <dl class="setpbox t1">
            <dt></dt>
            <dd>
                <ul>
                    <li class="succeed">许可协议</li>
                    <li class="succeed">环境检测</li>
                    <li class="now">参数配置</li>
                    <li>正在安装</li>
                    <li>安装完成</li>
                </ul>
            </dd>
        </dl>
    </div>
    <div class="pright">
	<form action="?step=install" method="post" name="form1">
        <div class="pr-title"><h3>管理员初始密码</h3></div>
        <table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
            <tr bgcolor="#f7fcff">
                <td class="onetd"><font color=red>*</font> <strong>用户名：</strong></td>
                <td>
                    <input name="con[adminname]" type="text" value="admin" id="adminname" class="input-txt" /><span id="msg_adminname"></span>
                    <p><small>支持中文，不能包含任何标点符号</small></p>
                </td>
            </tr>
            <tr>
                <td class="onetd"><font color=red>*</font> <strong>密　码：</strong></td>
                <td><input name="con[adminpass]" type="password" value="admin" id="adminpass" class="input-txt" /><span id="msg_adminpass"></span></td>
            </tr>
        </table>

        <div class="pr-title"><h3>网站设置</h3></div>
        <table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
            <tr>
                <td class="onetd"><font color=red>*</font> <strong>网站名称：</strong></td>
                <td>
                    <input name="con[web_name]" id="web_name" type="text" value="我的网站" class="input-txt" /><span id="msg_web_name"></span>
                </td>
            </tr>
			<tr bgcolor="#f7fcff">
                <td class="onetd"><font color=red>*</font> <strong> 网站网址：</strong></td>
                <td><input name="con[web_url]" type="text" id="web_url" value="<?php echo $baseurl; ?>" class="input-txt" /><span id="msg_web_url"></span>
				<p><small>http://开头，/ 结尾</small></p>
				</td>
            </tr>
			<!-- <tr>
                <td class="onetd"><font color=red>*</font> <strong>淘点金代码：</strong></td>
                <td>
                    <input name="con[web_tdjcode]" id="web_tdjcode" type="text" value="" class="input-txt" /><span id="msg_web_tjdcode"></span>
				<p><small>淘点金可将链接转换为淘客链接，登录阿里妈妈获取</small></p>
                </td>
            </tr> -->
            
        </table>
</form>
    <div class="btn-box">
    <input type="button" class="btn-back" value="后退" onclick="window.location.href='?step=2';" />
	<input type="button" class="btn-next" value="开始安装" onclick="DoInstall();" />
      </div>
    </div>
</div>
<?php include('footer.html');?>
</body>
</html>