|
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) | |
| show the html input of the widget | |
| set_check ($p_value) | |
| set selected to true (checked) if the value equal the parameter | |
Static Public Member Functions | |
| static | test_me () |
Definition at line 28 of file class_iradio.php.
| IRadio::display | ( | ) |
| IRadio::input | ( | $ | p_name = null, |
| $ | p_value = null |
||
| ) |
show the html input of the widget
Definition at line 32 of file class_iradio.php.
References $check, $r, display(), javascript, name, readOnly, selected, and value.
{
$this->name = ($p_name == null) ? $this->name : $p_name;
$this->value = ($p_value == null) ? $this->value : $p_value;
if ($this->readOnly == true)
return $this->display();
$check = ( $this->selected == true || $this->selected == 't' ) ? "checked" : "unchecked";
$r = '<input type="RADIO" name="' . $this->name . '"';
$r.=" VALUE=\"$this->value\"";
$r.=' class="css-checkbox" ';
$r.=($this->javascript != '') ? 'onclick="' . $this->javascript . '"' : '';
$r.=" $check > ";
return $r;
}
| IRadio::set_check | ( | $ | p_value | ) |
| static IRadio::test_me | ( | ) | [static] |
Definition at line 68 of file class_iradio.php.
{
}