noalyss
Version-6.7.2
|
Public Member Functions | |
input ($p_name=null, $p_value=null, $p_style=null) | |
show the html input of the widget | |
Data Fields | |
$label |
Definition at line 91 of file class_ibutton.php.
ISmallButton::input | ( | $ | p_name = null , |
$ | p_value = null , |
||
$ | p_style = null |
||
) |
show the html input of the widget
Reimplemented from IButton.
Definition at line 95 of file class_ibutton.php.
References HtmlInput\$extra, $r, $tab, IButton\display(), extra, label, name, readOnly, trim(), and value.
{ $this->name=($p_name==null)?$this->name:$p_name; $this->value=($p_value==null)?$this->value:$p_value; $this->label=(trim($this->label) != '')?$this->label:$this->value; if ( $this->readOnly==true) return $this->display(); $extra= ( isset($this->extra))?$this->extra:""; $this->id=($this->id=="")?$this->name:$this->id; $tab=(isset($this->tabindex))?' tabindex="'.$this->tabindex.'"':""; $r='<input type="BUTTON" name="'.$this->name.'"'. ' class="smallbutton" '. $this->extra. $tab. ' id="'.$this->id.'"'. ' value="'.$this->label.'"'. ' onClick="'.$this->javascript.'"'.$extra.'>'; $attr=$this->get_js_attr(); $r.=$attr; return $r; }
ISmallButton::$label |
$label the question before the input
Reimplemented from IButton.
Definition at line 93 of file class_ibutton.php.