49 parent::__construct($p_name, $p_value,
$p_id);
54 $this->
value=$p_value;
77 public function input($p_name=
null,$p_value=
null)
79 $this->
name=($p_name==
null)?$this->
name:$p_name;
80 $this->
value=($p_value==
null)?$this->
value:$p_value;
86 $rowsize = (isset ($this->
rowsize)) ?
' size = "'.$this->
rowsize.
'"':
"";
90 $a=
"<SELECT id=\"$this->id\" NAME=\"$this->name\" $style $this->javascript $disabled $rowsize>";
91 if (empty($this->
value))
return '';
97 if ($this->
value[
$i][
'value']===
null && !$start_group) {
99 $a.=sprintf(
'<optgroup label="%s">', htmlspecialchars($this->
value[
$i][
'label']));
103 if ($this->
value[
$i][
'value']==
null && $start_group) {
110 $a.=
'<OPTION VALUE="'.$this->value[
$i][
'value'].
'" '.
$checked.
'>';
111 $a.=strip_tags($this->
value[
$i][
'label']);
114 if ( $this->
table == 1 )
$a=
'<td>'.$a.
'</td>';
122 if ($this->
value ==
null) {
123 $this->
value=array();
134 if ( $this->
table == 1 )
$r=
'<td>'.$r.
'</td>';
167 $a_ret[
'value']=$key;
169 $this->
value[]=$a_ret;
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
input($p_name=null, $p_value=null)
show the html input of the widget
get_value()
print in html the readonly value of the widget
set_value($p_string)
Set the value of input (IText, INum,...)
display()
print in html the readonly value of the widget
transform($p_array)
set the value of an ISelect with the array , this array is bidimensional , the first dimension is the...
__construct($p_name="", $p_value="", $p_id="")
Constructor , $p_value is supposed to be an array.