From 33a56b278675bc61bdcd4e3042d0e00a1f855dc1 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Thu, 2 Jun 2005 04:42:57 +0000 Subject: Add greyout support. This is still very experimental ;) --- usr/local/www/wizard.php | 59 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 13 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php index 3af082f..943d2dc 100755 --- a/usr/local/www/wizard.php +++ b/usr/local/www/wizard.php @@ -99,8 +99,6 @@ $description = $pkg['step'][$stepid]['description']; function update_config_field($field, $updatetext, $unset, $arraynum) { global $config; - if($field['type'] == "checkbox" and $updatetext == "on") - $updatetext = TRUE; $field_split = split("->",$field); foreach ($field_split as $f) $field_conv .= "['" . $f . "']"; if($field_conv == "") return; @@ -132,21 +130,54 @@ if($pkg['step'][$stepid]['stepbeforeformdisplay'] <> "") { <?=gentitle_pkg($title);?> + - + - - - -
+ @@ -187,7 +218,7 @@ function FieldValidate(userinput, regexp, message) foreach ($field_split as $f) $field_conv .= "['" . $f . "']"; $toeval = "\$value = \$config" . $field_conv . $arraynum . ";"; eval($toeval); - if ($field['type'] == "x") { + if ($field['type'] == "checkbox") { $toeval = "if(isset(\$config" . $field_conv . $arraynum . ")) \$value = \" CHECKED\";"; eval($toeval); } @@ -299,7 +330,9 @@ function FieldValidate(userinput, regexp, message) } $checked = ""; if($value <> "") $checked = " CHECKED"; - echo "\n"; + echo "\n"; } if($field['typehint'] <> "") { -- cgit v1.1