diff --git a/include/class_ibutton.php b/include/class_ibutton.php index 54bb61d50..c08cb1596 100644 --- a/include/class_ibutton.php +++ b/include/class_ibutton.php @@ -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='extra. $tab. ' id="'.$this->id.'"'.