<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BookingeCMS <?php echo $MyConfig['Config']['version']; ?> 安装</title>
<meta name="keywords" content="BookingeCMS安装" />
<meta name="description" content="BookingeCMS安装" />
<meta name="generator" content="BookingeCMS <?php echo $MyConfig['Config']['version']; ?>" />
<link type="text/css" href="css/main.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(function() {
	$(".txt").blur(function() {
		var v = $(this).val();
		if(v.length == 0) {
			$("#isnull_" + $(this).attr("id")).show();
		} else {
			$("#isnull_" + $(this).attr("id")).hide();
		}
		if($(this).attr("id") == "confirmPassword") {
			if($("#adminPassword").val() != $("#confirmPassword").val()) {
				$("#s_adminPassword").show();
				$("#s_confirmPassword").show();
				$("#isnull_confirmPassword").hide();
			} else {
				$("#s_adminPassword").hide();
				$("#s_confirmPassword").hide();
			}
		}
	});
	$("#back").click(function() {
		window.location.href = "index.php?step=3";
	});
	$("#next").click(function() {
		var tip = "";
		$(".txt").each(function() {
			if($(this).val() == "") {
				var textStr = $(this).parent().prev().text();
				textStr = textStr.substring(0, textStr.length - 1);
				tip += (tip.length > 0 ? "、" : "") + textStr;
			}
		});
		if($("#adminPassword").val() != $("#confirmPassword").val()) {
			$("#s_adminPassword").show();
			$("#s_confirmPassword").show();
			$("#isnull_confirmPassword").hide();
			return false;
		}
		if(tip == "") {
			$("#form_step4").submit();
		} else {
			alert(tip + "不能为空！");
		}
	});
	<?php echo $return; ?>
	
});
</script>
</head>

<body>
<div class="wrap">
<div class="side s_clear">
<div class="side_bar">
<h1><?php echo $MyConfig['Config']['version']; ?></h1>
<ul>
<li class="currentitem">欢迎</li>
<li class="currentitem">环境检测</li>
<li class="currentitem">数据库信息</li>
<li class="currentitem">网站信息</li>
<li>完成</li>
</ul>
<div class="copy"><!-- 珠海中新信息科技有限公司 --></div>
</div>
</div>
<div class="main s_clear">
<form id="form_step4" action="index.php?step=4" method="post">
<div class="content">
<h1>网站设置信息</h1>
<div class="info">请认真填写下面的网站设置信息：</div>
<div class="inner">
<div class="hint_info">以下为建立初始管理员帐号</div>
<table width="488" cellspacing="0" cellpadding="0" summary="setup" class="setup">
<tbody>
<tr>
<td class="title">管理员帐号:</td>
<td>
<input name="adminName" id="adminName" class="txt" type="text" value="<?php echo isset($_POST['adminName']) ? $_POST['adminName'] : ''; ?>" />
<span id='isnull_adminName' style="color:#f00; display:none;">此处不能为空！</span>
</td>
</tr>
<tr>
<td class="title">管理员密码:</td>
<td>
<input name="adminPassword" id="adminPassword" class="txt" type="password" value="<?php echo isset($_POST['adminPassword']) ? $_POST['adminPassword'] : ''; ?>" />
<span id='isnull_adminPassword' style="color:#f00; display:none;">此处不能为空！</span>
<span id='s_adminPassword' style="color:#f00; display:none;">两次密码不一致！</span>
</td>
</tr>
<tr>
<td class="title">管理员密码确认:</td>
<td>
<input name="confirmPassword" id="confirmPassword" class="txt" type="password" value="<?php echo isset($_POST['confirmPassword']) ? $_POST['confirmPassword'] : ''; ?>" />
<span id='isnull_confirmPassword' style="color:#f00; display:none;">此处不能为空！</span>
<span id='s_confirmPassword' style="color:#f00; display:none;">两次密码不一致！</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="btn_box">
<button type="button" id="back">上一步</button>
<button type="button" id="next">下一步</button>
</div>
</form>
</div>
</div>
</body>
</html>