summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-08 19:26:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-08 19:26:18 +0000
commit855cab2166469c6d3a5fa10422a16c58513c8107 (patch)
tree7bc761c046832c0d3050f12a7d82c34a9a97a063
parentbee6ca2623e81b04f842f6516008a2430aee7c8d (diff)
downloadpfsense-855cab2166469c6d3a5fa10422a16c58513c8107.zip
pfsense-855cab2166469c6d3a5fa10422a16c58513c8107.tar.gz
Add checkbox support to rowhelper
-rwxr-xr-xusr/local/www/pkg_edit.php5
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") {
OpenPOWER on IntegriCloud