<!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=gbk" />
<title>帐号设置 - 精迅CMS安装第5步</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="images/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../statics/js/jquery.min.js"></script>
<script type="text/javascript">
function doCheck(){
	if ($('#dbpw').val() == ""){
		$('#dbpw').focus();
		return false;
	}
	var form = $('#jxcmsDbSet');
	$.post(form.attr('action'), form.serialize(), function(data){
		if (data) {
			$('#jxcmsAdminSet').submit();
		} else {
			alert('写入数据库配置文件发生错误！');
		}
	});
}
</script>
</head>
<body>
<div id="top">
 <h1>开始安装精迅CMS 2.1</h1>
 <p><a href="http://www.jxcms.com" target="_blank">官方网站</a>　|　<a href="http://bbs.jxcms.com" target="_blank">官方论坛</a></p>
</div>
<div id="main">
 <div class="left">
  <div class="t1 by"></div>
  <div class="t2 by"></div>
  <ul>
   <li>1、安装须知</li>
   <li>2、软件许可协议</li>
   <li>3、运行环境检测</li>
   <li>4、文件权限检测</li>
   <li class="active">5、帐号设置</li>
   <li>6、安装完成</li>
  </ul>
  <div class="t2 by"></div>
  <div class="t1 by"></div>
 </div>
 <div class="right">
  <div class="t1 bs"></div>
  <div class="t2 bs"></div>
  <div class="content">
   <h2>5、帐号设置</h2>
   <table width="666" border="0" cellspacing="1" cellpadding="0" class="table">
    <tr><td colspan="2"><h4>服务器配置</h4></td></tr>
	<form action="<?php echo SCRIPT_NAME;?>?a=config" id="jxcmsDbSet" method="post">
    <tr>
     <td width="40%">数据库服务器地址</td>
     <td><input type="text" name="info[dbhost]" value="localhost"></td>
    </tr>
    <tr>
     <td>数据库服务器类型</td>
     <td>
      <select name="info[database]">
       <option value="mysql" selected>mysql</option>
      </select>
     </td>
    </tr>
    <tr>
     <td>数据库用户名</td>
     <td><input type="text" name="info[dbuser]" value="root"></td>
    </tr>
    <tr>
     <td>数据库密码</td>
     <td><input type="password" id="dbpw" name="info[dbpw]" value=""></td>
    </tr>
    <tr>
     <td>数据库名</td>
     <td><input type="text" name="info[dbname]" value="jxcms"></td>
    </tr>
    <tr>
     <td>表区分符号(非必要.<strong>请保持默认</strong>)</td>
     <td><input type="text" name="info[tablepre]" value="jx_"></td>
    </tr>
	</form>
    <tr><td colspan="2"><h4>管理员设置</h4></td></tr>
	<form action="<?php echo SCRIPT_NAME;?>?step=6" id="jxcmsAdminSet" method="post">
    <tr>
     <td>用户名</td>
     <td><input type="text" name="info[username]" value="admin"></td>
    </tr>
    <tr>
     <td>密码</td>
     <td><input type="text" name="info[password]" value="admin888"> 默认是admin888</td>
    </tr>
	</form>
   </table>
  </div>
  <div class="t2 bs"></div>
  <div class="t1 bs"></div>
 </div>
</div>
<div id="foot"><a href="javascript:;" onclick="doCheck()">下一步</a></div>
</body>
</html>
