<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>安装程序 - 爱特企业网站管理系统<?php echo $verMsg; ?></title>

<link href="images/aitecms.css" rel="stylesheet" type="text/css" />
<link href="images/reset.css" rel="stylesheet" type="text/css" />
<script src="../include/dedeajax2.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
<!--
    function $o(tid){
        return document.getElementById(tid);
    }
    function TestDb()
    {
		var dbhost = $o('dbhost').value;
        var dbuser = $o('dbuser').value;
        var dbpwd = $o('dbpwd').value;
		$o('havedbsta').innerHTML='<img src=\'images/ajax-loader.gif\'>';
        var myajax = new DedeAjax($o('dbpwdsta'),false,true,'-','-','...');
        myajax.SendGet2('index.php?step=10&dbhost='+dbhost+'&dbuser='+dbuser+'&dbpwd='+dbpwd);
		DedeXHTTP = null;
		HaveDB();
    }
	
	function HaveDB()
    {
		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('havedbsta'),false,true,'-','-','...');
        myajax.SendGet2('index.php?step=10&dbhost='+dbhost+'&dbuser='+dbuser+'&dbpwd='+dbpwd+'&dbname='+dbname);
		DedeXHTTP = null;
    }
    
	function GetRemoteDemo()
	{
		
		$o('_remotesta').innerHTML='<img src=\'images/ajax-loader.gif\'>';
		var myajax = new DedeAjax($o('_remotesta'),false,true,'-','-','...');
		myajax.SendGet2('index.php?step=11');
		DedeXHTTP = null;
	}
	
    function DoInstall()
    {
        //$o('postloader').style.display = 'block';
        document.form1.submit();
    }
-->
</script>
</head>
<!---->
<body mycollectionplug="bind">
<div id='postloader' class='waitpage'></div>
<form action="index.php" method="post" name="form1">
<input type="hidden" name="step" value="4" />
	<div class="top">
		<div class="topcont">
			<div class="logo">
				<a href="http://www.aitecms.com" target="_blank"><img src="images/logo.png" alt="Aitecms企业网站管理系统"></a>
			</div>
			<div class="headright">爱特企业网站管理系统 1.0 <font>全新安装</font></div>
			<div class="clear"></div>
		</div>
</div>
<!---->
	<div class="body">
		<div class="bodycont">
			<div class="bodyleft">
				<ul>
					<li id="license" class="stepnowno"><span>1</span> 系统环境检测</li>
					<li id="inspect"  class="stepnow"><span>2</span> 数据库设置</li>
					<li id="databasesetup"><span>3</span> 正在安装中</li>
					<li id="adminsetup"><span>4</span> 安装完成</li>
				</ul>
				<div class="clear"></div>
			</div>
			<div class="bodyright">
				<div id="jsheit">
<div class="contenttext databasesetup round">
<p style="font-size:14px;">检查您的数据库设置情况，请在相应栏目仔细输入配置内容。</p>
   
	  <fieldset style="padding-bottom:0px;">
	  <legend><strong>数据库设定</strong></legend>
		<div class="section1">
		  <p>数据库主机</p>
		  <input type="text" class="text" name="dbhost" id="dbhost" value="localhost" size="18">
		  <span>一般为localhost</span>
		</div>
        <div class="section1">
		  <p>数据库用户</p>
		  <input class="text" name="dbuser" id="dbuser" type="text" size="18">
		  
		</div>
		<div class="section1">
		  <p>数据库密码 </p>
		 <input name="dbpwd" id="dbpwd" type="text" onChange="TestDb()" class="text" size="18">
		  <span id='dbpwdsta'></span>
		</div>
		<div class="section1">
		  <p>数据表前缀</p>
		  <input class="text" name="dbprefix" id="dbprefix" type="text" value="aite_" size="18" readOnly="true">
          <span>此处不能修改</span>
		</div>
		<div class="section1" style="margin-bottom:0px;">
		  <p>数据库名称</p>
		  <input class="text" name="dbname" id="dbname" type="text" value="<?php echo $dfDbname; ?>" onChange="HaveDB()">
          <span id='havedbsta'>可以修改成自己的数据库名称</span>
		</div>
        <div class="section1" style="margin-bottom:0px;">
		  <p>数据库编码</p>
            <?php
            if($s_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
            }
            ?>
		</div>
        
        
		
		<div style="padding:8px 0px 8px 80px;">
		
		</div>
      </fieldset>
	 
      <fieldset style="padding-bottom:0px;">
	  <legend><strong>管理员初始密码</strong></legend>
		<div class="section1">
		  <p>用户名</p>
		  <input class="text" name="adminuser" type="text" value="admin" size="18" readOnly="true">
		  <span>如有特别需求还原后再做更改</span>
		</div>
        <div class="section1">
		  <p>密　码</p>
		  <input name="adminpwd" type="text" value="admin" class="text" size="18" readOnly="true" /><span>同上</span>
		</div>
		<div class="section1">
		  <p>Cookie加密码 </p>
		 <input name="cookieencode" type="text" value="<?php echo $rnd_cookieEncode; ?>" class="text" size="18" readOnly="true">
		</div>
		
		<div style="padding:8px 0px 8px 80px; display:none">
		 <input name="webname" type="text" value="我的网站" class="input-txt" />
         <input name="adminmail" type="text" value="admin@dedecms.com" class="input-txt" />
         <input name="baseurl" type="text" value="<?php echo $baseurl; ?>" class="input-txt" />
         <input name="cmspath" type="text" class="input-txt" value="<?php echo $basepath; ?>" />
		</div>
      </fieldset>
</div>
     <div style="text-align:center; margin-top:5px;">
      <input type="button" class="submit" value="开始安装" onClick="DoInstall();" />
      
      
	 </div>


</div>
			</div>
            
            <br>
            <br>
			<div class="foot">
Powered by <b><a href="http://www.aitecms.com" target="_blank">Aitecms 1.0</a></b> ©2005-2017 &nbsp;<a href="http://www.aitecms.com" target="_blank">Aitecms Inc.</a>
			</div>
		</div>
	</div>
</form>

</body>
</html>