setup_element($a); } function self_get($val, $which, &$count) { $str = ""; if ($this->multiple) { $n = $this->name . "[]"; $str .= "value)) { reset($this->value); while (list($k,$v) = each($this->value)) { if ($v==$val) { $str .= " checked"; break; } } } } else { $str .= "checked) $str .= " checked"; } if ($this->extrahtml) $str .= " $this->extrahtml"; $str .= ">\n"; $count = 1; return $str; } function self_get_frozen($val, $which, &$count) { $str = ""; $x = 0; $t=""; if ($this->multiple) { $n = $this->name . "[]"; if (is_array($this->value)) { reset($this->value); while (list($k,$v) = each($this->value)) { if ($v==$val) { $x = 1; $str .= "\n"; $t =" bgcolor=#333333"; break; } } } } else { if ($this->checked) { $x = 1; $t = " bgcolor=#333333"; $str .= "multiple) $this->value = $val; elseif (isset($val) && (!$this->value || $val==$this->value)) $this->checked=1; else $this->checked=0; } } // end CHECKBOX ?>