configuration.tpl 2.14 KB
<h1>System Configuration</h1>

<form action="index.php?step_name=configuration" method="post">

<h3>Server Settings</h3>

<div class="error">
    <?php
        foreach ($errors as $error){
            echo $error.'<br />';
        }
    ?>
</div>

<table>
    <tr>
        <td><label for='host'>Host: </label></td>
        <td><input name='host' id='host' size='60' value='<?php echo $server['host']; ?>' /></td>
    </tr>
    <tr>
        <td><label for='port'>Port: </label></td>
        <td><input name='port' id='port' size='5' value='<?php echo $server['port']; ?>' /></td>
    </tr>
    <tr>
        <td><label for='root_url'>Root Url: </label></td>
        <td><input name='root_url' id='root_url' size='60' value='<?php echo $server['root_url']; ?>' /></td>
    </tr>
    <tr>
        <td><label for='file_system_root'>File System Root: </label></td>
        <td><input name='file_system_root' id='file_system_root' size='60' value='<?php echo $server['file_system_root']; ?>' /></td>
    </tr>
    <tr>
        <td><label for='yes'>SSL Enabled: </label></td>
        <td>
            <label for='yes'>Yes: </label><input type='radio' name='ssl_enabled' id='yes' value='yes' <?php echo $server['ssl_enabled'] == 'yes' ? 'CHECKED' : ''; ?> />&nbsp;&nbsp;
            <label for='no'>No: </label><input type='radio' name='ssl_enabled' id='no' value='no' <?php echo $server['ssl_enabled'] == 'no' ? 'CHECKED' : ''; ?> />
        </td>
    </tr>
</table>

<br />
<h3>Paths and Permissions</h3>

<table>
<?php
    foreach ($paths as $key => $path){
        $row = '<tr>';

        $row .= "<td><div class='{$path['class']}'></div></td>\n";
        $row .= "<td><label for='{$path['setting']}'>{$path['name']}: </label></td>\n";
        $row .= "<td><input name='{$path['setting']}' id='{$path['setting']}' size='60' value='{$path['path']}' /></td>\n";
        $row .= '<td class="error">';
        $row .= (isset($path['msg'])) ? $path['msg'] : '';
        $row .= "</td>\n";

        $row .= "</tr>\n";

        echo $row;
    }
?>
</table>

<div class="buttons">
    <input type="submit" name="Previous" value="Previous"/>
    <input type="submit" name="Next" value="Next"/>
</div>
</form>