Ejemplo n.º 1
0
 /**
  * @param string The name of the form element
  * @param string The value of the element
  * @param object The xml element for the parameter
  * @param string The control name
  * @return string The html for the element
  */
 function _form_radio($name, $value, &$node, $control_name)
 {
     $options = array();
     foreach ($node->childNodes as $option) {
         $val = $option->getAttribute('value');
         $text = $option->gettext();
         $options[$val] = $text;
     }
     return ps_html::radioList($control_name . '[' . $name . ']', $value, $options);
 }