<!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" />
<title>DedeCms V5.1GBK 版安装程序 -- 设置参数</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.onetd{
	text-align:right;
	line-height:25px;
}
-->
</style>
<script src="../include/dedeajax2.js" language="javascript" type="text/javascript"></script>
<script src="jquery.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
<!--
	$(document).ready(function(){
		//列表第一格CSS
		$(".twbox tr").each(function(){ $(this).children("td").eq(0).addClass("onetd");});
		
		//文本输入框定义CSS+鼠标悬停
		$("input[type='text']").addClass("textipt").mouseover(function(){ $(this).addClass("textipt_on");}).mouseout(function(){$(this).removeClass("textipt_on");});

		//列表行鼠标悬停
		$(".twbox tr").mouseover(function(){ $(this).addClass("moncolor");}).mouseout(function(){$(this).removeClass("moncolor");	});
	});
	function $o(tid){
		return document.getElementById(tid);
	}
	function TestDbPwd()
	{
	  var dbhost = $o('dbhost').value;
		var dbname = $o('dbname').value;
		var dbuser = $o('dbuser').value;
		var dbpwd = $o('dbpwd').value;
		var myajax = new DedeAjax($o('dbpwdsta'),false,true,'-','-','...');
    myajax.SendGet2('index.php?step=10&dbhost='+dbhost+'&dbuser='+dbuser+'&dbname='+dbname+'&dbpwd='+dbpwd);
    DedeXHTTP = null;
	}
-->
</script>
</head>

<body>
<div class="top boxcenter">正在安装: <em>V5.1GBK 正式版</em></div>
<form action="index.php" method="post" name="form1">
<input type="hidden" name="step" value="5" />
<div class="topstep boxcenter">
  <div class="stepbox">
    <ul>
      <li>许可协议</li>
      <li>检测环境</li>
      <li class="this">安装参数</li>
      <li>开始安装</li>
    </ul>
  </div>
</div>
<div class="main boxcenter">
	
	<div class="boxtitle">
		<span>可选安装模块</span>
	</div>
	
	<table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
		<tr>
			<td align="left" style="float:left;text-align:left">
				<?php
				foreach($_moduls as $k=>$v){
					echo "<input type='checkbox' name='moduls[]' id='moduls{$k}' value='{$k}' checked='checked'/> {$v[0]} ";
				}
				?>
			</td>
		</tr>
	</table>
	
	<div class="boxtitle">
		<span>数据库设定</span>
	</div>
	
	<table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
		
		<tr>
			<td width="256"><strong>数据库主机：</strong></td>
			<td width="468"><input name="dbhost" type="text" id="dbhost" value="localhost" style="width:200px" />
			<small>一般为localhost</small></td>
		</tr>
		<tr>
			<td><strong>数据库名称：</strong></td>
			<td>
				<input name="dbname" type="text" id="dbname" value="dedecmsv510" style="width:200px" />
			</td>
		</tr>
		<tr>
			<td><strong>数据库用户：</strong></td>
			<td><input name="dbuser" type="text" id="dbuser" value="root" style="width:150px" /></td>
		</tr>
		<tr>
			<td><strong>数据库密码：</strong></td>
			<td>
			<input name="dbpwd" type="text" id="dbpwd" style="width:150px" onchange="TestDbPwd()" />
			<span id='dbpwdsta'></span>
			</td>
		</tr>
		<tr>
			<td><strong>数据表前缀：</strong></td>
			<td><input name="dbprefix" type="text" id="dbprefix" value="dede_" style="width:200px" />
					<small>如无特殊需要,请不要修改</small></td>
		</tr>
		<tr>
			<td><strong>数据库编码：</strong></td>
			<td>
					<input name="db_language" type="radio" id="dblang" value="gbk" checked="checked" />
					GBK
					<input type="radio" name="db_language" id="dblang" value="latin1" />
					LATIN1 
					&nbsp;&nbsp;
					<small>本选项仅适用于MySql4.1及更高版本</small>
			</td>
		</tr>
	</table>
	
	<div class="boxtitle">
		<span>管理员初始密码</span>
	</div>
	
	<table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
		
		<tr>
			<td width="256"><strong>用户名：</strong></td>
			<td width="468">
				<input name="adminuser" type="text" id="adminuser" value="admin" style="width:200px" />
				<p>只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符</p>
			</td>
		</tr>
		<tr>
			<td><strong>密　码：</strong></td>
			<td><input name="adminpwd" type="text" id="adminpwd" value="admin" style="width:200px" /></td>
		</tr>
		<tr>
			<td><strong>Cookie加密码：</strong></td>
			<td><input name="cookiepwd" type="text" id="cookiepwd" value="<?php echo $rnd_cookieEncode; ?>" style="width:200px" /></td>
		</tr>
	</table>
	
	<div class="boxtitle">
		<span>其他设置</span>
	</div>
	
	<table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
		
		<tr>
			<td width="256"><strong>网站名称：</strong></td>
			<td width="468">
				<input name="webname" type="text" id="webname" value="我的网站" style="width:200px" />
			</td>
		</tr>
		<tr>
			<td><strong>管理员邮箱：</strong></td>
			<td><input name="adminmail" type="text" id="adminmail" value="admin@yourmail.com" style="width:200px" /></td>
		</tr>
		<tr>
			<td><strong> 网站网址：</strong></td>
			<td><input name="weburl" type="text" value="<?php echo $baseurl; ?>" id="weburl" style="width:200px" /></td>
		</tr>
		<tr>
			<td><strong>CMS安装目录：</strong></td>
			<td><input name="cmspath" type="text" value="<?php echo $cmspath; ?>" id="cmspath" style="width:200px" />
			<small>在根目录安装时不必理会</small></td>
		</tr>
	</table>
	
</div>
<div class="butbox boxcenter">
	<input type="button" class="backbut" value="" onclick="history.back();" style="margin-right:20px" />
	<input name="提交" type="submit" class="setupbut" value="" />
</div>
</form>
</body>
</html>
