<!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=gb2312" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>安装程序 - 博大人才内容管理系统<?php echo $ver; ?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form action="index.php" method="post" name="form1">
<input type="hidden" name="step" value="4" />
<div class="main">
	<div class="pmain">
		<dl class="setpbox t1">
			<dt>博大人才内容管理系统<?php echo $ver; ?> 安装程序</dt>
			<dd>
				<ul>
					<li class="succeed">许可协议</li>
					<li class="succeed">环境检测</li>
					<li class="now">参数配置</li>
					<li>完成安装</li>
				</ul>
			</dd>
		</dl>
	</div>
	<div class="pmain">	
		<div class="title"><h3>数据库设定</h3></div>
		<table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
			<tr>
				<td class="onetd"><strong>数据库主机：</strong></td>
				<td><input name="dbhost" id="dbhost" type="text" value="localhost" class="txt" />
				<small>一般为localhost</small></td>
			</tr>
			<tr>
				<td class="onetd"><strong>数据库名称：</strong></td>
				<td>
					<input name="dbname" id="dbname" type="text" value="<?php echo $dfdbname; ?>" class="txt" />
				</td>
			</tr>
			<tr>
				<td class="onetd"><strong>数据库用户：</strong></td>
				<td><input name="dbuser" id="dbuser" type="text" value="root" class="txt" /></td>
			</tr>
			<tr>
				<td class="onetd"><strong>数据库密码：</strong></td>
				<td>
				  <div style='float:left;margin-right:3px;'><input name="dbpwd" id="dbpwd" type="text" class="txt" onChange="TestDbPwd()" /></div>
				  <div style='float:left' id='dbpwdsta'></div>
				</td>
			</tr>
			<tr>
				<td class="onetd"><strong>数据表前缀：</strong></td>
				<td><input name="dbpre" type="text" value="job_" class="txt" />
						<small>如无特殊需要,请不要修改</small></td>
			</tr>
			<tr>
				<td class="onetd"><strong>数据库编码：</strong></td>
				<td>
						<?php
						if($lang=='utf-8')
						{
						?>
						<input type="radio" name="dblang" id="dblang_utf8" value="utf8" checked="checked" /><label for="dblang_latin1">UTF8</label>
						<?php
						}
						else
						{
						?>
						<input type="radio" name="dblang" id="dblang_gbk" value="gbk" checked="checked" /><label for="dblang_gbk">GBK</label>
						<input type="radio" name="dblang" id="dblang_latin1" value="latin1" /><label for="dblang_latin1">LATIN1</label>
						<?php
						}
						?>
						<small>仅对4.1+以上版本的MySql选择</small>
				</td>
			</tr>
		</table>

		<div class="title"><h3>管理员初始密码</h3></div>
		<table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
			<tr>
				<td class="onetd"><strong>用户名：</strong></td>
				<td>
					<input name="adminuser" type="text" value="admin" class="txt" />
					<p><small>只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符</small></p>
				</td>
			</tr>
			<tr>
				<td class="onetd"><strong>密　码：</strong></td>
				<td><input name="adminpwd" type="text" value="www.bodajob.com" class="txt" /></td>
			</tr>
			<tr>
				<td class="onetd"><strong>Cookie加密码：</strong></td>
				<td><input name="cookieencode" type="text" value="<?php echo $rnd_cookieEncode; ?>" class="txt" /></td>
			</tr>
		</table>

		<div class="title"><h3>网站设置</h3></div>
		<table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
			<tr>
				<td class="onetd"><strong>网站名称：</strong></td>
				<td>
					<input name="sitename" type="text" value="博大人才网" class="txt" />
				</td>
			</tr>
			<tr>
				<td class="onetd"><strong>管理员邮箱：</strong></td>
				<td><input name="adminmail" type="text" value="admin@BOdajob.com" class="txt" /></td>
			</tr>
			<tr>
				<td class="onetd"><strong> 网站网址：</strong></td>
				<td><input name="siteurl" type="text" value="<?php echo $siteurl; ?>" class="txt" /></td>
			</tr>
			<tr>
				<td class="onetd"><strong>安装目录：</strong></td>
				<td><input name="path" type="text" class="txt" value="<?php echo $path; ?>" /><small>在根目录安装时留空</small></td>
			</tr>
		</table>

		<div class="btn-box">
    <input type="button" class="btn-back" value="上一步" onclick="window.location.href='index.php?step=2';" />
			<input name="提交" type="submit" class="btn-next" value="开始安装" />
	  </div>
	</div>
</div>
</form>
</body>
</html>
