From b26608edbcbf524e609ad7936e063b0dd7a3c835 Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 25 Apr 2009 19:12:42 +0000 Subject: Experimental selection system in imagecombobox. --- utils/forms.php | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'utils') diff --git a/utils/forms.php b/utils/forms.php index 3d1050a..d946c34 100644 --- a/utils/forms.php +++ b/utils/forms.php @@ -209,20 +209,33 @@ class ImageComboBox { public function render($indent = "") { - $width = 64; + $width = 100; $str = $indent . "
\n"; $str .= $indent . "
".$this->label."
\n"; $str .= $indent . "
\n"; - $str .= $indent . "
\n"; - $str .= $indent . "
values)."px;\">\n"; - $str .= $indent . " name."\" name=\"vars[".$this->name."]\" type=\"hidden\" value=\"".$this->value."\"/>\n"; - + $str .= $indent . " \n"; + $str .= $indent . "
\n"; + $str .= $indent . "
values)."px;\">\n"; + $str .= $indent . " name."\" name=\"vars[".$this->name."]\" type=\"hidden\" value=\"\"/>\n"; foreach($this->values as $k => $v) { - $str .= $indent . " name."').value='".$v."'\"/>\n"; + $str .= $indent . " \n"; } $str .= $indent . "
\n"; // box $str .= $indent . "
\n"; // overflow + $str .= $indent . " \n"; $str .= $indent . "
\n"; // widget $str .= $indent . "
\n"; // input return $str; -- cgit v1.2.3