This commit is contained in:
Dany De Bontridder 2013-12-20 15:49:17 +00:00
parent a4f01d2173
commit 04e09bbe4e

View file

@ -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.'"'.