noalyss
Version-6.7.2
|
Public Member Functions | |
display () | |
print in html the readonly value of the widget | |
input ($p_name=null, $p_value=null) | |
show the html input of the widget | |
Static Public Member Functions | |
static | test_me () |
Definition at line 26 of file class_iselect.php.
ISelect::display | ( | ) |
ISelect::input | ( | $ | p_name = null , |
$ | p_value = null |
||
) |
show the html input of the widget
Definition at line 29 of file class_iselect.php.
References $a, HtmlInput\$disabled, $r, $style, disabled, display(), if, name, readOnly, selected, style, table, and value.
{ $this->name=($p_name==null)?$this->name:$p_name; $this->value=($p_value==null)?$this->value:$p_value; if ( $this->readOnly==true) return $this->display(); $style=(isset($this->style))?$this->style:""; $this->id=($this->id=="")?$this->name:$this->id; $disabled=($this->disabled==true)?"disabled":""; $rowsize = (isset ($this->rowsize)) ? ' size = "'.$this->rowsize.'"':""; $r=""; $a="<SELECT id=\"$this->id\" NAME=\"$this->name\" $style $this->javascript $disabled $rowsize>"; if (empty($this->value)) return ''; for ( $i=0;$i<sizeof($this->value);$i++) { $checked=($this->selected==$this->value[$i]['value'])?"SELECTED":""; $a.='<OPTION VALUE="'.$this->value[$i]['value'].'" '.$checked.'>'; $a.=$this->value[$i]['label']; } $a.="</SELECT>"; if ( $this->table == 1 ) $a='<td>'.$a.'</td>'; return $r.$a; }
static ISelect::test_me | ( | ) | [static] |
Definition at line 72 of file class_iselect.php.
{ }