<?php include 'header.tpl.php';?>
<style>
.step_3{float:left;width:600px;padding-left:150px}
.step_3 .tit{width:600px;text-align:left;font-weight:bold;font-size:15px;margin-bottom:10px}
.step_3 .row{float:left;width:600px;padding:8px 0px 3px 0px}
.step_3 .coltit{width:200px;float:left;text-align:left;color:#234f8d;font-weight:bold}
.step_3 .col1{float:left;text-align:left;float:left;width:200px}
.step_3 .col2{float:left;text-align:left;float:left;color:#888888}
</style>
<script>
me_chkemil
</script>
<div class="title"><span class='num'>02.</span> <span class='tit'>填写初始化配置信息</span> <span class='beta'>数据库及相关初始信息配置</span> </div>
<div class="step_pic"><img src="images/step2.gif"></div>
<div class="step_3">
	<div class="tit">填写数据库服务器信息</div>
	<div class="row"><div class="coltit">数据库地址:</div> <div class="col1"><input type="text" name="DB_HOST" value="localhost"></div> <div class="col2">本机请填写localhost</div> </div>

	<div class="row"><div class="coltit">数据库名:</div> <div class="col1"><input type="text" name="DB_NAME" value=""></div> <div class="col2">用于安装的数据库，若不存在将尝试创建</div> </div>
	<div class="row"><div class="coltit">数据库用户名:</div> <div class="col1"><input type="text" name="DB_USER" value="root"></div> <div class="col2">用于数据库连接验证的用户名</div> </div>
	<div class="row"><div class="coltit">数据库密码:</div> <div class="col1"><input type="text" name="DB_PWD" value=""></div> <div class="col2">用于数据库连接验证的密码</div> </div>
	<div class="row"><div class="coltit">数据库表前缀:</div> <div class="col1"><input type="text" name="DB_PRE" value="uke_"></div> <div class="col2">同一个数据库运行多个时，请修改前缀</div> </div>
	<div class="row"><div class="coltit">站点Cookie前缀:</div> <div class="col1"><input type="text" name="WEB_COOKIE_PRE" value="uke_"></div> <div class="col2">同一个数据库运行多个时，请修改前缀</div> </div>
	<div class="tit">填写站点初始化信息</div>
	<div class="row"><div class="coltit">二级目录地址:</div> <div class="col1"><input type="text" name="WEB_DIR" value="<?php echo $str_url_path;?>"></div> <div class="col2"> 格式：/so0731 如果无，不用填</div> </div>
	<div class="row"><div class="coltit">管理员ID:</div> <div class="col1"><input type="text" name="WEB_ADMIN_ID" value=""></div> <div class="col2">来自uc用户中心的ID,<a href="http://www.xxgo.net/bbs.php?app=search&s_key=uc管理员ID" target="_blank">去官网问问</a></div> </div>
	<div class="row"><div class="coltit">是否需要二次验证登录:</div> <div class="col1"><input type="radio" name="WEB_ADMIN_DOUBLE" value="1" checked>是 <input type="radio" name="WEB_ADMIN_DOUBLE" value="0">否</div> </div>
	<div class="row"><div class="coltit">用户注册方式:</div> <div class="col1"><input type="radio" name="USER_REGTYPE" value="0" checked>普通 <input type="radio" name="USER_REGTYPE" value="1">邮箱(需要登录邮箱验证)</div> </div>
	<div class="tit">填写<a href="http://www.xxgo.net">PHP人才系统</a>官网账号信息</div>
	<div class="row"><div class="coltit">账号:</div> <div class="col1"><input type="text" name="XXGO_UNAME" value=""></div> <div class="col2"> 您在官网注册的账号</div> </div>
	<div class="row"><div class="coltit">密码:</div> <div class="col1"><input type="text" name="XXGO_PWD" value=""></div> <div class="col2"> 您在官网注册账号时的登录密码</div> </div>
</div>
<div class="step_btn"><input type="button" name="btn_back" value="上一步" class="btn" onclick="me_back()">　　　<input type="button" name="btn_ok" value="下一步" class="btn" onclick="me_next();"></div>
<script>
function me_click()
{
	if(frmMain.chk_read.checked){
		frmMain.btn_ok.disabled=false;
	}else{
		frmMain.btn_ok.disabled=true;
	}
}
function me_next(){
	if(document.frmMain.WEB_ADMIN_ID.value==""){
		alert("默认管理员账号不能为空");
		return false;
	}
	if(document.frmMain.DB_NAME.value==""){
		alert("数据库名不能为空");
		return false;
	}
	document.frmMain.submit();
}
</script>
<?php include 'footer.tpl.php';?>		
