29 require_once NOALYSS_INCLUDE.
'/lib/class_html_input.php';
33 public function input($p_name=null,$p_value=null)
35 $this->
name=($p_name==null)?$this->
name:$p_name;
36 $this->
value=($p_value==null)?$this->
value:$p_value;
39 $this->
id=($this->
id==
"")?$this->
name:$this->
id;
42 $rowsize = (isset ($this->rowsize)) ?
' size = "'.$this->rowsize.
'"':
"";
46 $a=
"<SELECT id=\"$this->id\" NAME=\"$this->name\" $style $this->javascript $disabled $rowsize>";
47 if (empty($this->
value))
return '';
50 $checked=($this->
selected==$this->
value[$i][
'value'])?
"SELECTED":
"";
51 $a.=
'<OPTION VALUE="'.$this->value[$i][
'value'].
'" '.$checked.
'>';
55 if ( $this->
table == 1 )
$a=
'<td>'.$a.
'</td>';
71 if ( $this->
table == 1 )
$a=
'<td>'.$r.
'</td>';
88 if (count(
$p_array)==0)
return array();
93 $this->
value[]=$a_ret;
transform($p_array)
set the value of an ISelect with the array , this array is bidimensional , the first dimension is the...
for($e=0;$e< count($array);$e++) $desc readOnly
display()
print in html the readonly value of the widget
h($p_string)
to protect again bad characters which can lead to a cross scripting attack the string to be diplayed ...
input($p_name=null, $p_value=null)
show the html input of the widget