cosmetic
This commit is contained in:
parent
a4f01d2173
commit
04e09bbe4e
1 changed files with 3 additions and 2 deletions
|
|
@ -28,17 +28,18 @@ class IButton extends HtmlInput
|
|||
{
|
||||
var $label;
|
||||
/*!\brief show the html input of the widget*/
|
||||
public function input($p_name=null,$p_value=null)
|
||||
public function input($p_name=null,$p_value=null,$p_class="")
|
||||
{
|
||||
$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;
|
||||
$class=($p_class="")?" button ":$this->class;
|
||||
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="button" '.
|
||||
' class="'.$class.'" '.
|
||||
$this->extra.
|
||||
$tab.
|
||||
' id="'.$this->id.'"'.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue