<!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 href="templates/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.onetd{
	text-align:right;
	line-height:25px;
}
-->
</style>
<script src="templates/ajax2.js" language="javascript" type="text/javascript"></script>
<script src="templates/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 dbUser = $o('dbUser').value;
		var dbPwd = $o('dbPwd').value;
        var dbName = $o('dbName').value;
		var myajax = new Ajax($o('dbPwdsta'),false,true,'-','-','...');
        myajax.SendGet2('index.php?step=10&dbHost='+dbHost+'&dbUser='+dbUser+'&dbName='+dbName+'&dbPwd='+dbPwd);
        XHTTP = null;
	}
-->
</script>
</head>

<body>
<div class="top boxcenter"><em></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 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="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="dbName" type="text" id="dbName" value="daomei" style="width:200px" />
            </td>
        </tr>
        <tr>
            <td><strong>数据表前缀：</strong></td>
            <td><input name="dbPrefix" type="text" id="dbPrefix" value="daomei_wish_" style="width:200px" />
                    <small>(如无特殊需要,请不要修改)</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="adminName" type="text" id="adminName" value="daomeinetcn" style="width:200px" />
            </td>
        </tr>
        <tr>
            <td><strong>密　码：</strong></td>
            <td><input name="adminPwd" type="text" id="adminPwd" value="daomeinetcn" 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="siteName" type="text" id="siteName" value="倒霉网许愿墙爱墙v2012" style="width:200px" />
            </td>
        </tr>
        <tr>
            <td width="256"><strong> 网站域名：</strong></td>
            <td width="468"><input name="siteDomain" type="text" value="<?php echo $domain ?>" id="siteDomain" style="width:200px" /></td>
        </tr>
        <tr>
            <td><strong>管理员邮箱：</strong></td>
            <td><input name="adminmail" type="text" id="adminmail" value="service@daomei.net.cn" style="width:200px" /></td>
        </tr>
        <tr>
            <td><strong>非法字符过滤：</strong></td>
            <td><input name="badkey" type="text" id="badkey" value="江泽民|胡锦涛|邓小平" style="width:200px" /></td>
        </tr>
	</table>
</div>
<div class="butbox boxcenter">
	<input type="button" class="inputButton" value=" 上一步 " onclick="history.back();" style="margin-right:20px" />
	<input name="提交" type="submit" class="inputButton" value=" 下一步 " />
</div>
</form>
</body>
</html>
