<?php if (!defined('SYSTEM_PATH')) exit();?><!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><?php echo ($page["title"]); ?></title>
<link href=".__TMPL__public/css/install.css" rel="stylesheet" type="text/css" charset="utf-8" />
</head>

<body>
<div class="header">
	<div class="logo fl"></div>
    <div class="fr">
    	<ul class="top_nav fr">
        	<li><a href="http://bbs.chinabpi.com/" target="_blank">官方论坛</a></li>
            <li><a href="http://www.chinabpi.com" target="_blank">公司网站</a></li>
        </ul>
        <h2 class="fr">欢迎使用蓝点应用商店！</h2>
    </div>
</div>
<div class="content">
	<div class="step fl">
    	<h3></h3>
        <ul>
        	<li <?php if($step_curr == 'eula'): ?>class="curr"<?php endif; ?>><span>1</span><h4>阅读许可协议</h4></li>
            <li <?php if($step_curr == 'check'): ?>class="curr"<?php endif; ?>><span>2</span><h4>服务器检测</h4></li>
            <li <?php if($step_curr == 'setconf'): ?>class="curr"<?php endif; ?>><span>3</span><h4>填写初始配置</h4></li>
            <li <?php if($step_curr == 'install'): ?>class="curr"<?php endif; ?>><span>4</span><h4>详细安装进程</h4></li>
            <li <?php if($step_curr == 'finish'): ?>class="curr"<?php endif; ?>><span>5</span><h4>安装完成</h4></li>
        </ul>
    </div>
<div class="c_main fr">
<form action="" method="POST" id="post_form">
	<div class="c_main_title">数据库及相关配置</div>
	<div class="c_main_body setconf">
    	<?php if(isset($error_msg)): ?><div class="error_msg"><?php echo ($error_msg); ?></div><?php endif; ?>
        <fieldset>
        	<legend>数据库服务器信息</legend>
            <ul>
            	<li><span class="field">数据库类型：</span><input type="text" name="db_type" id="db_type" class="text_input" size="30" value="<?php echo ($db_type); ?>" /><span class="field_tip">mysql或者mysqli</span></li>
				<li><span class="field">数据库地址：</span><input type="text" name="db_host" id="db_host" class="text_input" size="30" value="<?php echo ($db_host); ?>" /><span class="field port">端口：</span><input type="text" name="db_port" id="db_port" class="text_input" size="8" value="<?php echo ($db_port); ?>" /></li>
                <li><span class="field">数据库用户名：</span><input type="text" name="db_user" id="db_user" class="text_input" size="30" value="<?php echo ($db_user); ?>" /><span class="field_tip">连接数据库的用户名</span></li>
                <li><span class="field">数据库密码：</span><input type="password" name="db_pass" id="db_pass" class="text_input" size="30" value="<?php echo ($db_pass); ?>" /><span class="field_tip">连接数据库的密码</span></li>
                <li><span class="field">数据库名：</span><input type="text" name="db_name" id="db_name" class="text_input" size="30" value="<?php echo ($db_name); ?>" /><span class="field_tip"><?php echo ($database_name_tip); ?></span></li>
                <li><span class="field">数据表前缀：</span><input type="text" name="db_prefix" id="db_prefix" class="text_input" size="30" value="<?php echo ($db_prefix); ?>" /><span class="field_tip">一个数据库安装多个蓝点应用商店时，请修改前缀</span></li>

				<li><span class="field">通信密钥：</span><input type="text" name="key" id="key" class="text_input" size="30" value="<?php echo ($key); ?>" /><span class="field_tip">客户端通信密码解密密钥</span></li>

            </ul>
        </fieldset>
        <fieldset class="admin_info">
        	<legend>数据库服务器信息</legend>
            <ul>
                <li><span class="field">管理员帐号：</span><input type="text" name="admin_user" id="admin_user" class="text_input" size="30" value="<?php echo ($admin_user); ?>" /></li>
                <li><span class="field">管理员密码：</span><input type="password" name="admin_pass" id="admin_pass" class="text_input" size="30" value="<?php echo ($admin_pass); ?>" /></li>
                <li><span class="field">重复密码：</span><input type="password" name="admin_pass_confirm" id="admin_pass_confirm" class="text_input" size="30" value="<?php echo ($admin_pass_confirm); ?>" /></li>
                <li><span class="field">管理员邮箱：</span><input type="text" name="admin_email" id="admin_email" class="text_input" size="30" value="<?php echo ($admin_email); ?>" /></li>
            </ul>
        </fieldset>
    </div>
    <div class="act">
        <div class="btn"><input type="submit" name="dosubmit" id="submit_button"  value="下一步" class="btn_next" /></div>
    </div>
</form>
</div>
</div>
</body>
</html>