49 parent::__construct($p_name, $p_value,
$p_id);
54 $this->
value=$p_value;
58 public function input($p_name=
null,$p_value=
null)
60 $this->
name=($p_name==
null)?$this->
name:$p_name;
61 $this->
value=($p_value==
null)?$this->
value:$p_value;
64 $this->
id=($this->
id==
"")?$this->
name:$this->
id;
67 $rowsize = (isset ($this->
rowsize)) ?
' size = "'.$this->
rowsize.
'"':
"";
71 $a=
"<SELECT id=\"$this->id\" NAME=\"$this->name\" $style $this->javascript $disabled $rowsize>";
72 if (empty($this->
value))
return '';
76 $a.=
'<OPTION VALUE="'.$this->value[
$i][
'value'].
'" '.
$checked.
'>';
77 $a.=strip_tags($this->
value[
$i][
'label']);
80 if ( $this->
table == 1 )
$a=
'<td>'.$a.
'</td>';
88 if ($this->
value ==
null) {
100 if ( $this->
table == 1 )
$r=
'<td>'.$r.
'</td>';
133 $a_ret[
'value']=$key;
135 $this->
value[]=$a_ret;
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
if(!headers_sent())
– pour utiliser unoconv démarrer un server libreoffice commande libreoffice –headless –accept="socket...
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.