<!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>
<link href="style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>yonglicmsV1.0</title>
</head>

<body>
<div class="top">
	<div class="top-logo">
		<h1></h1>

	</div>
    <div class="top-shades">
	</div>
	<div class="top-link">
		<ul>
			<li><a href="http://www.yonglliol.com" target="_blank"></a></li>
			<li><a href="http://bbs.yongliol.com" target="_blank"></a></li>
		</ul>
	</div>
	<div class="top-version">
		
		<h2></h2>
	</div>
</div>
<script type="text/javascript" src="jquery"></script>
<script language="javascript" type="text/javascript">
<!--

	$().ready(function () {
		function testpwd() {
		  var $dbhost = document.form1.dbhost.value;
			var $dbname = document.form1.dbname.value;
			var $dbuser = document.form1.dbuser.value;
			var $dbpwd = document.form1.dbpwd.value;
			alert('aaa');
			return false;
		};
		function check() {
			$adminuser=document.form1.adminuser.value;
			if ($adminuser == "") {
				alert("用户名不能为空");
				return false;
			}
			
			$adminpwd=document.form1.adminpwd.value;
			if ($adminpwd == "") {
				alert("密码不能为空");
				return false;
			}
		
		}
		
		
		
		
	
	});
	
	
	
	
-->
</script>

<form onsubmit="return check()" action="install.php" method="post" name="form1">
<div class="main">
	<div class="pr">
		<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="pl">
	
		<div class="pr-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="input-txt" />
				<small>一般为localhost</small></td>
			</tr>
			<tr>
				<td class="onetd"><strong>数据库名称：</strong></td>
				<td>
					<input name="dbname" id="dbname" type="text" value="yongli" class="input-txt" />
                    <small>如果没有，系统会自动创建数据库</small>				</td>
			</tr>

			<tr>
				<td class="onetd"><strong>数据库用户：</strong></td>
				<td><input name="dbuser" id="dbuser" type="text" value="root" class="input-txt" /></td>
			</tr>
			<tr>
				<td class="onetd"><strong>数据库密码：</strong></td>
				<td>
				  <div style='float:left;margin-right:3px;'><input name="dbpwd" onchange="alert('aa')" id="dbpwd" type="text" class="input-txt" /></div>

				  <div style='float:left' id='dbpwdsta'></div>				</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"><strong>用户名：</strong></td>
				<td><input name="adminuser" type="text" value="admin" class="input-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="admin" class="input-txt" /></td>
			</tr>
		</table>

	

		<div class="btn-box">
			<input type="button" class="btn-back" value="后退" onclick="window.location.href='step2.php';" />
			<input type="submit" class="btn-next" value="开始安装" onclick="DoInstall();" />
		</div>
	</div>

</div>
<div class="foot">
</div>
</form>
</body>
</html>
