<!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>科威聚合导航 安装程序</title>
<link rel="stylesheet" href="templates/style.css" type="text/css" />
<meta content="科威软件工作室 www.kewei8.com" name="Copyright" />
<script type="text/javascript">
<!--
function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
    } if (errors) alert('请将表格填写完整!');
    document.MM_returnValue = (errors == '');
} 
document.getElementById("form1").submit();
}
//-->
</script>
</head>
<body>
<div class="container">
  <div class="header">
    <h1>科威聚合导航安装程序</h1>
    <span><!--Kw[$full_version]--> build <!--Kw[$build_version]--></span>
  </div>
  <div class="main" style="margin-top:-123px;">
    <div class="marginbot">
      <div class="step">
        <ul>
          <li>许可协议</li>
          <li>环境检测</li>
          <li>模式选择</li>
          <li class="now">参数配置</li>
          <li>正在安装</li>
          <li>安装完成</li>
        </ul>
      </div>
    </div>
    <div class="marginbot">
      <h5>四、参数配置</h5>
    </div>
    <form action="../install/index.php?step=5" method="post" name="form1" id="form1">
      <div class="marginbot">
        <h4>1.数据库设定</h4>
        <table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
          <tr>
            <td><strong>数据库主机：</strong></td>
            <td><input name="dbhost" id="dbhost" type="text" value="localhost" class="input-txt" />
              <small>一般为localhost</small></td>
          </tr>
          <tr>
            <td><strong>数据库名称：</strong></td>
            <td><input name="dbname" id="dbname" type="text" value="kwinnav" class="input-txt" /></td>
          </tr>
          <tr>
            <td><strong>数据库用户：</strong></td>
            <td><input name="dbuser" id="dbuser" type="text" value="root" class="input-txt" /></td>
          </tr>
          <tr>
            <td><strong>数据库密码：</strong></td>
            <td><div style='float:left;margin-right:3px;'>
                <input name="dbpwd" id="dbpwd" type="text" class="input-txt" onchange="TestDbPwd()" />
              </div>
              <div style='float:left' id='dbpwdsta'></div></td>
          </tr>
          <tr>
            <td><strong>数据表前缀：</strong></td>
            <td><input name="dbprefix" type="text" class="input-txt" id="dbprefix" value="kw" />
            <input name="type" id="type" type="hidden" value="<!--Kw[$type]-->" />
              <small>如无特殊需要,请不要修改</small></td>
          </tr>
          <tr>
            <td><strong>永久链接：</strong></td>
            <td><input name="pconnect" type="radio" id="pconnect" value="1" checked="checked" />
              是
              <input type="radio" name="pconnect" id="pconnect2" value="0" />
              否&nbsp;&nbsp;&nbsp;<small>如无特殊需要,请不要修改</small></td>
          </tr>
        </table>
      </div>
      <div class="marginbot">
        <h5>2.用户系统设置</h5>
        <div class="usersystem">
        <label for="usekw">
          <input type="radio" name="usersystem" id="usekw" value="kwbox" checked="checked" onclick="document.getElementById('uc_box').style.display='none'" />使用科威盒子用户系统
        </label>
        <label for="useuc">
          <input type="radio" name="usersystem" id="useuc" value="ucenter" onclick="document.getElementById('uc_box').style.display='block'" />使用Ucenter
        </label>
        </div>
          <table style="display:none;" id="uc_box" width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
            <tr>
              <td width="170"><strong>Ucenter配置信息</strong></td>
              <td><textarea style="width:400px; height:150px;" name="uc_info" id="uc_info"></textarea><br /><a href="http://www.kewei8.com/url.php?url=940e5623049b0ed891739e04974a3484" target="_blank">设置说明</a></td>
            </tr>
          </table>
      </div>
      <div class="marginbot">
        <h4>3.网站相关设置</h4>
        <table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
          <tr>
            <td><strong>管理员用户名：</strong></td>
            <td><input name="adminuser" type="text" class="input-txt" id="adminuser" value="admin" /></td>
          </tr>
          <tr>
            <td><strong>管理员密码：</strong></td>
            <td><input name="adminpwd" type="text" class="input-txt" id="adminpwd" value="admin" /></td>
          </tr>
          <tr>
            <td><strong>管理员邮箱：</strong></td>
            <td><input name="adminmail" type="text" class="input-txt" id="adminmail" value="admin@website.com" /></td>
          </tr>
          <tr>
            <td><strong>网站名称：</strong></td>
            <td><input name="webname" type="text" class="input-txt" id="webname" value="我的网站" /></td>
          </tr>
          <tr>
            <td><strong> 网站网址：</strong></td>
            <td><input name="baseurl" type="text" class="input-txt" id="baseurl" value="<!--Kw[$siteurl]-->" /></td>
          </tr>
        </table>
      </div>
      <div class="btnbox marginbot"> <span onclick="document.location='index.php?step=3'" ><img src="../install/templates/images/but_back.gif" style="padding: 2px"></span>
        <input type="image" src="../install/templates/images/but_next.gif" onclick="MM_validateForm('dbhost','','R','dbname','','R','dbuser','','R','dbprefix','','R','adminuser','','R','adminpwd','','R','webname','','R','adminmail','','RisEmail','baseurl','','R');return document.MM_returnValue" style="padding:2px" />
        &nbsp; </div>
    </form>
    <div class="footer">Copyright &copy;2011 <a href="http://www.kewei8.com/">kewei8.com</a> All rights reserved.</div>
  </div>
</div>
</body>
</html>