noalyss
Version-6.7.2
|
Public Member Functions | |
display () | |
print in html the readonly value of the widget | |
input ($p_name=null, $p_value=null, $p_class="") | |
show the html input of the widget | |
Static Public Member Functions | |
static | select_checkbox ($p_form) |
static | show_calc () |
static | test_me () |
static | tooggle_checkbox ($p_form) |
static | unselect_checkbox ($p_form) |
Data Fields | |
$label |
Definition at line 26 of file class_ibutton.php.
IButton::display | ( | ) |
print in html the readonly value of the widget
Definition at line 54 of file class_ibutton.php.
Referenced by input(), and ISmallButton\input().
{ return ""; }
IButton::input | ( | $ | p_name = null , |
$ | p_value = null , |
||
$ | p_class = "" |
||
) |
show the html input of the widget
Reimplemented in ISmallButton.
Definition at line 30 of file class_ibutton.php.
References $class, HtmlInput\$extra, $r, $tab, 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; $class=($p_class=="")?"smallbutton ":$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="'.$class.'" '. $this->extra. $tab. ' id="'.$this->id.'"'. ' value="'.$this->label.'"'. ' onClick="'.$this->javascript.'"'.$extra.'>'; $attr=$this->get_js_attr(); $r.=$attr; return $r; }
static IButton::select_checkbox | ( | $ | p_form | ) | [static] |
Definition at line 65 of file class_ibutton.php.
{ $select_all=new IButton('select_all'); $select_all->label=_('Cocher tous'); $select_all->javascript="select_checkbox('$p_form')"; return $select_all->input(); }
static IButton::show_calc | ( | ) | [static] |
Definition at line 79 of file class_ibutton.php.
{ $calc=new IButton('shcalc'); $calc->label=_('Calculatrice'); $calc->javascript="show_calc()"; return $calc->input(); }
static IButton::test_me | ( | ) | [static] |
Definition at line 87 of file class_ibutton.php.
{ }
static IButton::tooggle_checkbox | ( | $ | p_form | ) | [static] |
Definition at line 58 of file class_ibutton.php.
{ $select_all=new IButton('select_all'); $select_all->label=_('Inverser la sélection'); $select_all->javascript="toggle_checkbox('$p_form')"; return $select_all->input(); }
static IButton::unselect_checkbox | ( | $ | p_form | ) | [static] |
Definition at line 72 of file class_ibutton.php.
{ $select_all=new IButton('select_all'); $select_all->label=_('Décocher tous'); $select_all->javascript="unselect_checkbox('$p_form')"; return $select_all->input(); }
IButton::$label |
$label the question before the input
Reimplemented from HtmlInput.
Reimplemented in ISmallButton.
Definition at line 28 of file class_ibutton.php.