diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php
index 830c2bc28..bc391da9d 100644
--- a/e107_handlers/form_handler.php
+++ b/e107_handlers/form_handler.php
@@ -9,8 +9,8 @@
* Form Handler
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
- * $Revision: 1.22 $
- * $Date: 2009-01-20 22:59:39 $
+ * $Revision: 1.23 $
+ * $Date: 2009-01-28 14:57:27 $
* $Author: secretr $
*
*/
@@ -150,7 +150,7 @@ class e_form
return "get_attributes($options, $name, $value)." />";
}
-
+
function checkbox_switch($name, $value, $checked = false, $label = '')
{
return $this->checkbox($name, $value, $checked).$this->label($label ? $label : LAN_ENABLED, $name, $value);
@@ -161,17 +161,17 @@ class e_form
$selector = 'jstarget:'.$selector;
return $this->checkbox($name, $selector, false, array('id'=>false,'class'=>'checkbox toggle-all'));
}
-
+
function uc_checkbox($name, $current_value, $uc_options, $field_options = array())
{
- if(!is_array($field_options)) parse_str($field_options, $field_options);
+ if(!is_array($field_options)) parse_str($field_options, $field_options);
return '
'.$this->_uc->vetted_tree($name, array($this, '_uc_checkbox_cb'), $current_value, $uc_options, $field_options).'
';
}
-
+
function _uc_checkbox_cb($treename, $classnum, $current_value, $nest_level, $field_options)
{
if($classnum == e_UC_BLANK)
@@ -183,16 +183,16 @@ class e_form
if($nest_level == 0)
{
$class = " strong";
- }
+ }
else
{
$style = " style='text-indent:" . (1.2 * $nest_level) . "em'";
}
$descr = varset($field_options['description']) ? ' ('.$this->_uc->uc_get_classdescription($classnum).')' : '';
-
+
return "".$this->checkbox($treename.'[]', $classnum, in_array($classnum, $tmp), $field_options).$this->label($this->_uc->uc_get_classname($classnum).$descr, $treename.'[]', $classnum)."
\n";
}
-
+
function radio($name, $value, $checked = false, $options = array())
{
$options['checked'] = $checked; //comes as separate argument just for convenience
@@ -235,7 +235,7 @@ class e_form
$options = $this->format_options('select', $name, $options);
return "