diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-12-08 19:26:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-12-08 19:26:18 +0000 |
commit | 855cab2166469c6d3a5fa10422a16c58513c8107 (patch) | |
tree | 7bc761c046832c0d3050f12a7d82c34a9a97a063 | |
parent | bee6ca2623e81b04f842f6516008a2430aee7c8d (diff) | |
download | pfsense-855cab2166469c6d3a5fa10422a16c58513c8107.zip pfsense-855cab2166469c6d3a5fa10422a16c58513c8107.tar.gz |
Add checkbox support to rowhelper
-rwxr-xr-x | usr/local/www/pkg_edit.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index f0bbc69..7d951a0 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -589,6 +589,11 @@ function display_row($trc, $value, $fieldname, $type, $rowhelper, $size) { echo "<td>\n"; if($type == "input") { echo "<input size='" . $size . "' name='" . $fieldname . $trc . "' value='" . $value . "'>\n"; + } else if($type == "checkbox") { + if($value) + echo "<input size='" . $size . "' type='checkbox' name='" . $fieldname . $trc . "' value='" . $value . "' CHECKED>\n"; + else + echo "<input size='" . $size . "' type='checkbox' name='" . $fieldname . $trc . "' value='" . $value . "'>\n"; } else if($type == "password") { echo "<input size='" . $size . "' type='password' name='" . $fieldname . $trc . "' value='" . $value . "'>\n"; } else if($type == "textarea") { |