25 require_once NOALYSS_INCLUDE.
'/lib/class_itext.php';
47 $this->
style=
'class="inum"';
48 $this->
javascript=
'onchange="format_number(this,2);"';
54 $readonly=
" readonly ";
55 $this->
id=($this->
id==
"")?$this->
name:$this->
id;
58 $style=
' class="inum input_text_ro"';
60 $r=
'<INPUT '.$style.
' TYPE="TEXT" id="'.
62 'NAME="'.$this->name.
'" VALUE="'.$this->
value.
'" '.
63 'SIZE="'.$this->size.
'" '.$this->
javascript.
" $readonly $this->extra >";
66 if ( $this->
table == 1 )
$r=
'<td>'.$r.
'</td>';
72 public function input($p_name=null,$p_value=null)
74 if ( isset ($this->prec)) {
75 $this->
javascript=
'onchange="format_number(this,'.$this->prec.
');"';
77 $this->
name=($p_name==null)?$this->
name:$p_name;
78 $this->
value=($p_value==null)?$this->
value:$p_value;
79 $this->
id=($this->
id==
"")?$this->
name:$this->
id;
83 $t= ((isset($this->title)))?
'title="'.$this->title.
'" ':
' ';
90 $r=
'<INPUT '.$this->style.
' TYPE="TEXT" id="'.
92 'NAME="'.$this->name.
'" VALUE="'.$this->
value.
'" '.
93 'SIZE="'.$this->size.
'" '.$this->
javascript.
" $this->extra >";
96 $r=
'<INPUT '.$this->style.
' TYPE="TEXT" id="'.
98 'NAME="'.$this->name.
'" VALUE="'.$this->
value.
'" '.
99 ' style="width:'.$this->css_size.
';" '.$this->
javascript.
" $this->extra >";
103 if ( $this->
table == 1 )
$r=
'<td>'.$r.
'</td>';
display()
print in html the readonly value of the widget
for($e=0;$e< count($array);$e++) $desc readOnly
input($p_name=null, $p_value=null)
show the html input of the widget
__construct($name='', $value='')
This class handles only the numeric input, the input will call a javascript to change comma to period...