Пример #1
0
 function generRadioField($attr, $val, &$lllProp)
 {
     global $gorumroll;
     $labels =& $lllProp->getSelectLabels($val["values"]);
     $showRelation = isset($val["show_relation"]) ? $val["show_relation"] : "";
     // Huu de csunya:
     if (in_array("nodefault", $val) && $gorumroll->method == "create_form" && !isset($_POST[$attr]) && !$this->base->{$attr}) {
         $default = -1;
     } else {
         $default = $this->base->{$attr};
     }
     return GenerWidget::generRadioField($attr, $labels, $val["values"], $default, $val["cols"], $showRelation);
 }