25 require_once NOALYSS_INCLUDE.
'/lib/class_html_input.php';
31 public function input($p_name=null,$p_value=null,$p_class=
"")
33 $this->
name=($p_name==null)?$this->
name:$p_name;
34 $this->
value=($p_value==null)?$this->
value:$p_value;
36 $this->
class=($p_class !=
"")?$p_class:$this->
class;
37 $this->
class=($this->
class==
"")?
"smallbutton ":$this->
class;
40 $this->
id=($this->
id==
"")?$this->
name:$this->
id;
41 $tab=(isset($this->tabindex))?
' tabindex="'.$this->tabindex.
'"':
"";
42 $r=
'<input type="BUTTON" name="'.$this->name.
'"'.
43 ' class="'.$this->class.
'" '.
46 ' id="'.$this->id.
'"'.
47 ' value="'.$this->label.
'"'.
48 ' onClick="'.$this->javascript.
'"'.
$extra.
'>';
49 $attr=$this->get_js_attr();
64 $select_all->javascript=
"toggle_checkbox('$p_form')";
71 $select_all->javascript=
"select_checkbox('$p_form')";
78 $select_all->javascript=
"unselect_checkbox('$p_form')";
84 $calc->label=_(
'Calculatrice');
85 $calc->javascript=
"show_calc()";
86 return $calc->input();
97 public function input($p_name=null,$p_value=null,$p_style=null)
99 $this->
name=($p_name==null)?$this->
name:$p_name;
100 $this->
value=($p_value==null)?$this->
value:$p_value;
104 $this->
id=($this->
id==
"")?$this->
name:$this->
id;
105 $tab=(isset($this->tabindex))?
' tabindex="'.$this->tabindex.
'"':
"";
106 $r=
'<input type="BUTTON" name="'.$this->name.
'"'.
107 ' class="smallbutton" '.
110 ' id="'.$this->id.
'"'.
111 ' value="'.$this->label.
'"'.
112 ' onClick="'.$this->javascript.
'"'.
$extra.
'>';
113 $attr=$this->get_js_attr();
for($e=0;$e< count($array);$e++) $desc readOnly
function trim(s)
remove trailing and heading space