|
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 | |
| $class | |
| $label | |
Definition at line 26 of file class_ibutton.php.
| IButton::display | ( | ) |
print in html the readonly value of the widget
Definition at line 56 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 31 of file class_ibutton.php.
References 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;
$this->class=($p_class != "")?$p_class:$this->class;
$this->class=($this->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="'.$this->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 67 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 81 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 89 of file class_ibutton.php.
{
}
| static IButton::tooggle_checkbox | ( | $ | p_form | ) | [static] |
Definition at line 60 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 74 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::$class |
Definition at line 29 of file class_ibutton.php.
| IButton::$label |
$label the question before the input
Reimplemented from HtmlInput.
Reimplemented in ISmallButton.
Definition at line 28 of file class_ibutton.php.