<?php if (isset($_POST['no_js'])) { $configs = load_configs(); } foreach ($configs as $key => $config) { if ($config['id'] != $prev_group_id) { if ($prev_group_id != null) { echo "</table></fieldset>"; } $prev_group_id = $config['id']; echo "<fieldset id=\"" . $config['title'] . "\">"; echo "<legend>" . $config['title'] . " " . T_("Settings") . "</legend>"; echo $config['description'] . "<table class=\"inline\">"; } if ($config['config_type'] == "choices") { $options = $configManager->html_select($config['config_value'], $config['config_choices'], $config['config_name']); } else { if ($config['config_type'] == "boolean") { $options = $configManager->html_checkbox($config['config_value'], $config['config_name']); } else { if ($config['config_type'] == "string" || $config['config_type'] == "integer") { $options = $configManager->html_textfield($config['config_value'], $config['config_name'], $config['config_type']); } else { $options = $config['config_value']; } } } echo "<tr class=\"default\"><td class=\"title\"><span title=\"" . $config['config_name'] . "\"><label for=\"config___title\">" . $config['config_description'] . "</label></span></td><td class=\"value\">{$options}</td></tr>"; } echo "</table></fieldset>"; if (!isset($_POST['no_js'])) {