示例#1
0
    <legend><?php 
echo LEGEND_CONNECTION;
?>
        <?php 
echo $wizard->configs['db_types'][$settings['DB_DRIVER']]['desc'];
?>
    </legend>
<?php 
foreach ($driver_params as $param) {
    $name = $wizard->configs['db_param_names'][$param];
    if ($wizard->configs['db_param_types'][$param] == 'string') {
        echo xoFormField($name, $settings[$name], constant($name . '_LABEL'), constant($name . '_HELP'));
    } elseif ($wizard->configs['db_param_types'][$param] == 'boolean') {
        echo xoBoolField($name, $settings[$name], constant($name . '_LABEL'), constant($name . '_HELP'));
    } elseif ($wizard->configs['db_param_types'][$param] == 'password') {
        echo xoPassField($name, $settings[$name], constant($name . '_LABEL'), constant($name . '_HELP'));
    }
}
?>
</fieldset>

<?php 
/*
    <label class="xolabel" for="DB_PCONNECT" class="center">
        <?php echo DB_PCONNECT_LABEL; ?>
        <input class="checkbox" type="checkbox" name="DB_PCONNECT"
               value="1" <?php echo $settings['DB_PCONNECT'] ? "'checked'" : ""; ?>/>

        <div class="xoform-help"><?php echo DB_PCONNECT_HELP; ?></div>
    </label>
*/
                <?php 
foreach ($wizard->configs['db_types'] as $db_type) {
    $selected = $vars['DB_TYPE'] == $db_type ? 'selected' : '';
    echo "<option value='{$db_type}' selected='{$selected}'>{$db_type}</option>";
}
?>
            </select>
        </label>
        <?php 
echo xoFormField('DB_HOST', $vars['DB_HOST'], DB_HOST_LABEL, DB_HOST_HELP);
?>
        <?php 
echo xoFormField('DB_USER', $vars['DB_USER'], DB_USER_LABEL, DB_USER_HELP);
?>
        <?php 
echo xoPassField('DB_PASS', $vars['DB_PASS'], DB_PASS_LABEL, DB_PASS_HELP);
?>

        <label class="xolabel" for="DB_PCONNECT" class="center">
            <?php 
echo DB_PCONNECT_LABEL;
?>
            <input class="checkbox" type="checkbox" name="DB_PCONNECT" value="1" <?php 
echo $vars['DB_PCONNECT'] ? "'checked'" : '';
?>
/>

            <div class="xoform-help"><?php 
echo DB_PCONNECT_HELP;
?>
</div>
示例#3
0
    }
    echo xoFormField('adminmail', $vars['adminmail'], ADMIN_EMAIL_LABEL);
    if (!empty($error["email"])) {
        echo '<ul class="diags">';
        foreach ($error["email"] as $errmsg) {
            echo '<li class="failure">' . $errmsg . '</li>';
        }
        echo '</ul>';
    }
    ?>

        <div id="password">
            <div id="passwordinput">
            <?php 
    echo xoPassField('adminpass', '', ADMIN_PASS_LABEL);
    echo xoPassField('adminpass2', '', ADMIN_CONFIRMPASS_LABEL);
    if (!empty($error["pass"])) {
        echo '<ul class="diags">';
        foreach ($error["pass"] as $errmsg) {
            echo '<li class="failure">' . $errmsg . '</li>';
        }
        echo '</ul>';
    }
    ?>
            </div>

            <div id="passwordmetter" class="xoform-help">
                <label class="xolabel" for='passwordStrength'><strong><?php 
    echo PASSWORD_LABEL;
    ?>
</strong></label>