Update display to match function change in setup

This commit is contained in:
Miles Lott 2001-05-31 09:24:56 +00:00
parent 1ff5b9ab09
commit dc38f82581

View File

@ -29,10 +29,19 @@
<td> <td>
<select name="newsettings[template_set]"> <select name="newsettings[template_set]">
<?php <?php
$templates = $phpgw_setup->get_template_list(); if ($phpgw_setup)
while (list ($key, $value) = each ($templates)){ {
echo '<option value="'.$key.'" '.$selected[$key].'>'.$templates[$key]["title"].'</option>'; $templates = $phpgw_setup->get_template_list();
} }
else
{
$templates = $phpgw->common->list_templates();
}
echo '<option value="user_choice"' . $selected['user_choice'] . '>Users Choice</option>';
while (list ($key, $value) = each ($templates))
{
echo '<option value="'.$key.'" '.$selected[$key].'>'.$templates[$key]["title"].'</option>';
}
?> ?>
</select> </select>
</td> </td>
@ -45,21 +54,25 @@
<td> <td>
<select name="newsettings[force_theme]"> <select name="newsettings[force_theme]">
<?php <?php
if ($phpgw_setup)
$themes = $phpgw_setup->list_themes(); {
echo '<option value="user_choice"' . $selected['user_choice'] . '>Users Choice</option>'; $themes = $phpgw_setup->list_themes();
while (list ($key, $value) = each ($themes)) }
{ else
echo '<option value="'.$value.'" '.$selected[$value].'>'.$value.'</option>'; {
} $themes = $phpgw->common->list_themes();
}
echo '<option value="user_choice"' . $selected['user_choice'] . '>Users Choice</option>';
while (list ($key, $value) = each ($themes))
{
echo '<option value="'.$value.'" '.$selected[$value].'>'.$value.'</option>';
}
?> ?>
</select> </select>
</td> </td>
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php/* $selected[$current_config["useframes"]] = " selected"; ?> <?php/* $selected[$current_config["useframes"]] = " selected"; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Frame support:</td> <td>Frame support:</td>