<!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>CuuMall商城系统安装程序</title>
<style type="text/css">
<!--
body {
	background-color: #B0D6F0;
	margin-top: 0px;
	margin-bottom: 0px;
}
.STYLE2 {
	font-size: 26px;
	font-weight: bold;
	font-family: "宋体";
	color: #FFFFFF;
}
.STYLE3 {font-family: Arial, Helvetica, sans-serif}
.STYLE6 {
	font-size: 14px;
	color: #FFFFFF;
}
.STYLE7 {
	font-size: 14px;
	font-weight: bold;
	color: #FF6633;
}
.STYLE8 {
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
}
.STYLE9 {
	font-size: 12px;
	color: #0162CD;
}
.STYLE11 {font-size: 16px}
.xieyi {
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
}
.STYLE12 {
	color: #0F70C7;
	font-size: 12px;
	font-weight: bold;
}
.STYLE14 {font-size: 12px; color: #666666; }
.STYLE15 {color: #009900}
-->
</style>
</head>

<body>
<table width="980" height="694" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="694" valign="top" bgcolor="#FFFFFF"><?php require "top.php";?><table width="980" height="529" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="248" height="529" valign="top"><?php require "left.php";?></td>
          <td width="732" valign="top"><table width="100%" height="57" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="57"><div align="center" class="STYLE7 STYLE11">有梦想就有希望-CuuMall商城系统(www.CuuMall.com)</div></td>
            </tr>
          </table>
            <form id="form1" name="form1" method="post" action="setdata.php" style="padding:0px; margin:0px;">
            <table width="98%" height="470" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#278DFE">
              <tr>
                <td height="468" valign="top" bgcolor="#FFFFFF"><table width="100%" height="23" border="0" cellpadding="3" cellspacing="1">
                  <tr>
                    <td height="21" bgcolor="#0168DA"><div align="center"><span class="STYLE8">第二步：检测运行环境</span></div></td>
                  </tr>
                </table>
                  <table width="100%" height="415" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="415" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td height="14"></td>
                        </tr>
                      </table>
                        <table width="98%" border="0" align="center" cellpadding="3" cellspacing="0">
                          <tr>
                            <td height="22" bgcolor="#D6E0EF"><span class="STYLE12">提示信息</span></td>
                          </tr>
                        </table>
                        <table width="98%" height="84" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6E0EF">
                          <tr>
                            <td height="82" bgcolor="#FFFFFF"><table width="542" height="61" cellpadding="3" cellspacing="0">
                              <tr>
                                <td height="21" class="STYLE9">●&nbsp;&nbsp;请在下面填写您的数据库账号信息, 通常情况下不需要修改绿色选项内容。</td>
                              </tr>
                              <tr>
                                <td height="21" class="STYLE9">●&nbsp;&nbsp;带*项为不能为空。</td>
                              </tr>
                             
                              
                            </table>
                            </td>
                          </tr>
                        </table>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="14"></td>
                          </tr>
                        </table>
                        <table width="98%" height="298" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6E0EF">
                          <tr>
                            <td width="26%" height="30" class="STYLE12"><div align="center">设置选项</div></td>
                            <td width="33%" class="STYLE12"><div align="center">当前值</div></td>
                            <td width="41%" class="STYLE12"><div align="center">注释</div></td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" class="STYLE9" height="30"><div align="right" class="STYLE15">数据库服务器(*):</div></td>
                            <td bgcolor="#FFFFFF" class="STYLE9"><input name="host" type="text" id="host"  style="width:230px; color:#0162CD;" value="localhost" /></td>
                            <td bgcolor="#FFFFFF" class="STYLE14">数据库服务器地址, 一般为 localhost </td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" class="STYLE9" height="30"><div align="right" class="STYLE15">数据库服务器端口:</div></td>
                            <td bgcolor="#FFFFFF" class="STYLE9"><input type="text" name="port" id="port"  style="width:230px;color:#0162CD;" /></td>
                            <td bgcolor="#FFFFFF" class="STYLE14">MYSQL端口,空为默认端口, 一般为空 </td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" class="STYLE9" height="30"><div align="right">数据库用户名:</div></td>
                            <td bgcolor="#FFFFFF" class="STYLE9"><input name="username" type="text" id="username"  style="width:230px;color:#0162CD;" value="root" /></td>
                            <td bgcolor="#FFFFFF" class="STYLE14">MYSQL数据库链接账号 </td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" class="STYLE9" height="30"><div align="right">数据库密码:</div></td>
                            <td bgcolor="#FFFFFF" class="STYLE9"><input type="password" name="password" id="password"  style="width:230px;color:#0162CD;" /></td>
                            <td bgcolor="#FFFFFF" class="STYLE14">MYSQL数据库链接密码 </td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" class="STYLE9" height="30"><div align="right">数据库名(*):</div></td>
                            <td bgcolor="#FFFFFF" class="STYLE9"><input name="datadb" type="text" id="datadb"  style="width:230px;color:#0162CD;" value="cuumall" /></td>
                            <td bgcolor="#FFFFFF" class="STYLE14">数据库名称 </td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" class="STYLE9" height="30"><div align="right" class="STYLE15">表名前缀(*):</div></td>
                            <td bgcolor="#FFFFFF" class="STYLE9"><input name="thre" type="text" id="thre"  style="width:230px;color:#0162CD;" value="cuu_" /></td>
                            <td bgcolor="#FFFFFF" class="STYLE14">同一数据库安装多个商城系统时可改变默认 </td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" class="STYLE9" height="79"><div align="right" class="STYLE15">COOKIE前缀(*):</div></td>
                            <td bgcolor="#FFFFFF" class="STYLE9">前台：
                            <input name="guestcook" type="text" id="guestcook"  style="width:230px;color:#0162CD;" value="<?php echo strtolower(InstallMakePassword(5));?>" />
                            后台：
                            <input name="admincook" type="text" id="admincook"  style="width:230px;color:#0162CD;" value="<?php echo strtolower(InstallMakePassword(5));?>" /></td>
                            <td bgcolor="#FFFFFF" class="STYLE9"><span class="STYLE14">由英文字母组成，默认即可</span><br /></td>
                          </tr>
                        </table>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td>&nbsp;</td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                  <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="31" bgcolor="#E0EEF5"><div align="center">
                        <input type="button" name="button" id="button" value="上一步" style="background-color:#FFFFFF; color:#0162CD;"   onclick="javascript:history.go(-1);"  />
                        &nbsp;&nbsp;
<input type="submit" name="button2" id="button2" value="下一步" style="background-color:#FFFFFF; color:#0162CD;"  />
                      </div></td>
                    </tr>
                  </table></td>
              </tr>
            </table></form></td>
        </tr>
      </table><?php require "buttom.php";?>
    </td>
  </tr>
</table>
</body>
</html>
