<!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>安装程序 - eminer内容管理系统<?php echo $e20d84f16; ?></title>
<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/js/jquery_company_validator.js"></script>
<script language="javascript" type="text/javascript">
<!--
	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 eminerAjax($o('dbpwdsta'),false,true,'-','-','...');
		myajax.SendGet2('index.php?step=10&dbhost='+dbhost+'&dbuser='+dbuser+'&dbname='+dbname+'&dbpwd='+dbpwd);
    eminerXHTTP = null;
	}
	function GetRemoteDemo()
	{
		var myajax = new eminerAjax($o('_remotesta'),false,true,'-','-','远程获取中...');
		myajax.SendGet2('index.php?step=11');
    eminerXHTTP = null;
	}

	function DoInstall()
	{
		//$o('postloader').style.display = 'block';
		if(validator.yanzheng()==false ) return false;
		document.form1.submit();
	}
$(document).ready(function(){
	validator.hypotaxis=3;
	validator.successMsg = '填写正确';
	validator.lastcheckmode=1;
	validator.lastcheckalert=1;
	validator.clickconfirm=1;
	$('#form1').checkForm(); });	

-->
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="style3.css" rel="stylesheet" type="text/css" />
<style type="text/css">

label.error {
font-weight: normal;
text-align: left;
display: inline;
color: #993300;
cursor: pointer;
margin-left: 10px;
font-size:12px
}

#introduce {position: absolute;width: 60%;height: 200px;right: 10px;top: 20px;} 
#introduce ul {list-style:none;margin:0px;  margin-top:10px;margin-left:20px;} 
#introduce li { height:30px;}
table.regtable{ width:460px; margin-top:50px; border:none}
table.regtable td{ height:40px; vertical-align:top}
span.error {color: #993300;}
input.editbox4 { width:160px;}
div.inputwrap { width:230px; float:left}
div.tipbox { width:430px; float:left; line-height:17px;word-break:break-all;word-wrap:break-word;}
div.littletip { color:#999}
div#regtitle{position:absolute; top:10px;right:260px; width:200px; height:50px; font-size:14px; font-weight:bold}
.errorTip{display:none;color:#993300;background: url("../images/reg3.gif") no-repeat scroll 0 -3px; padding-top:0px; padding-left:25px;padding-right:10px;}
.successTip{ display:none; background: url("../images/reg4.gif") no-repeat scroll 0 -3px;padding-left:25px;}
.littletip{ color: #999; float:left}

</style>  
</head>
<body>
<div id='postloader' class='waitpage'></div>
<form action="index.php" method="post" id="form1" name="form1">
<input type="hidden" name="step" value="4" />
<?php require('header.php')?>

<div class="main">

	<div>

		<div class="pr-title"><h3>数据库设定</h3></div>
		<table class="lz_table">
			<tr>
				<td class="onetd"><span class="error"> * </span><strong>数据库主机：</strong></td>
				<td><div class="inputwrap"><input name="dbhost" id="dbhost" type="text" value="localhost" class="input-txt" init=0  min=3 msg="至少要3位" datatype="minimum" require="true" /></div><div id="dbhost_tipBox" class="tipbox"><div class="successTip"></div><div class="errorTip"></div><div class="littletip">本机安装一般为localhost</div></div>
                </td>
			</tr>
			<tr>
				<td class="onetd"><span class="error"> * </span><strong>数据库名称：</strong></td>
				<td>
					<div class="inputwrap"><input name="dbname" id="dbname" type="text" value="<?php echo $eb9072603; ?>" class="input-txt" init=0  msg="此项不能为空" datatype="require" require="true"/></div><div id="dbname_tipBox" class="tipbox"><div class="successTip"></div><div class="errorTip"></div><div class="littletip"></div></div>
                </td>
			</tr>
			<tr>
				<td class="onetd"><span class="error"> * </span><strong>数据库用户：</strong></td>
				<td>
					<div class="inputwrap"><input name="dbuser" id="dbuser" type="text" class="input-txt" init=0  msg="此项不能为空" datatype="require" require="true"/></div><div id="dbuser_tipBox" class="tipbox"><div class="successTip"></div><div class="errorTip"></div><div class="littletip"></div></div>
                </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="input-txt"/></div>
				  <div style='float:left' id='dbpwdsta'></div>
				</td>
			</tr>
			<tr>
				<td class="onetd"><span class="error"> * </span><strong>数据表前缀：</strong></td>

                <td>
					<div class="inputwrap"><input id="dbprefix" name="dbprefix" type="text" value="eminer_" class="input-txt" init=0  msg="此项不能为空" datatype="require" require="true"/></div><div id="dbprefix_tipBox" class="tipbox"><div class="successTip"></div><div class="errorTip"></div><div class="littletip">如无特殊需要,请不要修改</div></div>
                </td>
			</tr>
			<tr>
				<td class="onetd"><strong>数据库编码：</strong></td>
				<td>
						<?php
 if($e64aa031a=='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>
<!--highserver_start
		<div class="pr-title"><h3>授权帐户密码</h3></div>
		<table class="lz_table">
			<tr>
				<td class="onetd"><span class="error"> * </span><strong>用户名：</strong></td>
				<td><div class="inputwrap">
					<input id="adminuser" name="adminuser" type="text" value="" class="input-txt"  init=0 min=4 max=20 msg="至少要4个字符|最多20个字符|只能输入英文字符和数字" datatype="minimum|maximum|engnum" />
					</div>
                    <div id="adminuser_tipBox" class="tipbox"><div class="successTip"></div><div class="errorTip"></div><div class="littletip">只能输入英文字符和数字|至少要4位|最多20位</div></div>                    
				</td>
			</tr>

            <tr>
				<td class="onetd"><span class="error"> * </span><strong>密　码：</strong></td>
				<td><div class="inputwrap">
					<input id="adminpwd" name="adminpwd" type="text" value="" class="input-txt"  init=0 min=4 max=20 msg="至少要4个字符|最多20个字符|只能输入英文字符和数字" datatype="minimum|maximum|engnum" />
					</div>
                    <div id="adminpwd_tipBox" class="tipbox"><div class="successTip"></div><div class="errorTip"></div><div class="littletip">只能输入英文字符和数字|至少要4位|最多20位</div></div>                    
				</td>
			</tr>

		</table>
highserver_end-->
 <!-- 
		<div class="pr-title"><h3>网站设置</h3></div>
		<table class="lz_table">
			<tr>
				<td class="onetd"><strong> 网站网址：</strong></td>
				<td><input name="baseurl" type="text" value="<?php echo $eb0aa729a; ?>" class="input-txt" /></td>
			</tr>
			<tr>
				<td class="onetd"><strong>安装目录：</strong></td>
				<td>
                <div class="inputwrap">
					<input name="cmspath" type="text" class="input-txt" value="<?php echo $ed1c59cdb; ?>" />
					</div>
                    <div id="adminpwd_tipBox" class="tipbox"><div class="successTip"></div><div class="errorTip"></div><div class="littletip">在根目录安装时不必填写</div></div>  

                </td>
			</tr>
		</table>
      -->

		<div class="btn-box">
    <input type="button" class="btn-next" value="后退" onclick="window.location.href='index.php?step=2';" />
			<input type="button" class="btn-next" value="开始安装" onclick="DoInstall();" />
	  </div>
	</div>
</div>
<div class="foot">
</div>
</form>
</body>
</html>
