35 public function input($p_name=
null,$p_value=
null,$p_class=
"")
37 $this->
name=($p_name==
null)?$this->
name:$p_name;
38 $this->
value=($p_value==
null)?$this->
value:$p_value;
40 $this->
class=($p_class !=
"")?$p_class:$this->
class;
41 $this->
class=($this->
class==
"")?
"smallbutton ":$this->
class;
44 $this->
id=($this->
id==
"")?$this->
name:$this->
id;
45 $tab=(isset($this->tabindex))?
' tabindex="'.$this->tabindex.
'"':
"";
46 $r=
'<input type="BUTTON" name="'.$this->name.
'"'.
47 ' class="'.$this->class.
'" '.
50 ' id="'.$this->id.
'"'.
51 ' value="'.$this->label.
'"'.
52 ' onClick="'.$this->javascript.
'"'.
$extra.
'>';
53 $attr=$this->get_js_attr();
68 $select_all->javascript=
"toggle_checkbox('$p_form')";
75 $select_all->javascript=
"select_checkbox('$p_form')";
82 $select_all->javascript=
"unselect_checkbox('$p_form')";
87 $calc=
'<span class="button icon" onclick="show_calc();"></span>';
99 public function input($p_name=
null,$p_value=
null,$p_style=
null)
101 $this->
name=($p_name==
null)?$this->
name:$p_name;
102 $this->
value=($p_value==
null)?$this->
value:$p_value;
106 $this->
id=($this->
id==
"")?$this->
name:$this->
id;
107 $tab=(isset($this->tabindex))?
' tabindex="'.$this->tabindex.
'"':
"";
108 $r=
'<input type="BUTTON" name="'.$this->name.
'"'.
109 ' class="smallbutton" '.
112 ' id="'.$this->id.
'"'.
113 ' value="'.$this->label.
'"'.
114 ' onClick="'.$this->javascript.
'"'.
$extra.
'>';
115 $attr=$this->get_js_attr();
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r