<!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 $title ?></title>
    <link href="template/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="wrapper">
    <div class="logo"><a href="http://www.8cms.com" target="_blank"><img src="template/logo.png" alt="php8cms"
                                                                         title="php8cms"/></a></div>
    <div class="setting">
        <?php if ($_SESSION['cue']) { ?>
        <p class="cue"><strong><?php echo $_LANG['wrong'] ?>：</strong><?php echo $_SESSION['cue'] ?></p>
        <?php } ?>
        <form action="index.php?step=setting" method="POST">
            <ul>
                <h3><?php echo $_LANG['setting_mysql'] ?></h3>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="120"><strong><?php echo $_LANG['setting_host'] ?>：</strong></td>
                        <td width="225">
                            <input type="text" name="dbhost" class="textInput"
                                   value="<?php if ($_POST['dbhost']) { ?><?php echo $_POST['dbhost'] ?><?php } else { ?>localhost<?php } ?>"/>
                        </td>
                        <td><?php echo $_LANG['setting_host_cue'] ?></td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $_LANG['setting_dbuser'] ?>：</strong></td>
                        <td>
                            <input name="dbuser" type="text" class="textInput" value="<?php if(empty($_POST['dbuser'])){ echo 'root'; }else{ echo $_POST['dbuser']; } ?>"/>
                        </td>
                        <td><?php echo $_LANG['setting_dbuser_cue'] ?>【默认：root】</td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $_LANG['setting_dbpass'] ?>：</strong></td>
                        <td>
                            <input type="text" value="root" name="dbpass" class="textInput"/>
                        </td>
                        <td><?php echo $_LANG['setting_dbpass_cue'] ?>【默认：root】</td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $_LANG['setting_dbname'] ?>：</strong></td>
                        <td>
                            <input name="dbname" type="text" class="textInput" value="<?php if(empty($_POST['dbname'])){ echo '8cmsdata'; }else{ echo $_POST['dbname']; } ?>"/>
                        </td>
                        <td><?php echo $_LANG['setting_dbname_cue'] ?>【默认：8cmsdata】</td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $_LANG['setting_prefix'] ?>：</strong></td>
                        <td>
                            <input type="text" name="prefix" class="textInput"
                                   value="<?php if ($_POST['prefix']) { ?><?php echo $_POST['prefix'] ?><?php } else { ?>8cms_<?php } ?>"/>
                        </td>
                        <td><?php echo $_LANG['setting_prefix_cue'] ?></td>
                    </tr>
                    <tr>
                        <td><strong>网站语言：</strong></td>
                        <td>
                            英文 <input name="is_english" type="checkbox" checked>
                        </td>
                        <td>选择英文语言,网站可以中英文切换</td>
                    </tr>
                </table>
                <h3><?php echo $_LANG['setting_manager'] ?></h3>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="120"><strong><?php echo $_LANG['setting_username'] ?>：</strong></td>
                        <td width="225">
                            <input name="username" type="text" class="textInput"
                                   value="<?php if(empty($_POST['username'])){ echo 'admin'; }else{ echo $_POST['username']; } ?>"/>
                        </td>
                        <td><?php echo $_LANG['setting_username_cue'] ?>【默认：admin】</td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $_LANG['setting_password'] ?>：</strong></td>
                        <td>
                            <input type="text" value="123456" name="password" class="textInput"/>
                        </td>
                        <td><?php echo $_LANG['setting_password_cue'] ?>【默认：123456】</td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $_LANG['setting_password_confirm'] ?>：</strong></td>
                        <td>
                            <input type="text" value="123456" name="password_confirm" class="textInput"/>
                        </td>
                        <td><?php echo $_LANG['setting_password_confirm_cue'] ?>【默认：123456】</td>
                    </tr>
                </table>
            </ul>
            <p class="action">
                <input type="button" class="btnGray" value="<?php echo $_LANG['back'] ?>"
                       onclick="location.href='index.php?step=check'"/>
                <input type="submit" class="btn" id="install_project" name="install" value="<?php echo $_LANG['setting_submit'] ?>">
            </p>
        </form>
    </div>
</div>
</body>
<script>
    $(function(){
        $("#install_project").click(function(){
            $("#install_project").val('请等待几秒钟，项目正在安装......');

        })
    })
</script>
</html>