|
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 | |
Static Public Member Functions | |
| static | test_me () |
Definition at line 26 of file class_idate.php.
| IDate::display | ( | ) |
| IDate::input | ( | $ | p_name = null, |
| $ | p_value = null |
||
| ) |
show the html input of the widget
Definition at line 29 of file class_idate.php.
References $r, display(), HtmlInput\generate_id(), name, readOnly, 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();
if( $this->id=="")
$this->id=self::generate_id($this->name);
$r='<input type="text" name="'.$this->name.'" id="'.$this->id.'" '.
' class="input_text" '.
'size="10" style="width:6em" '.
' value ="'.$this->value.'" '.
'/>'.
'<img src="image/x-office-calendar.png" id="'.$this->id.'_trigger"'.
' style="cursor: pointer" '.
'onmouseover="this.style.background=\'red\';" onmouseout="this.style.background=\'\'" />';
$r.='<script type="text/javascript">'.
'Calendar.setup({'.
// 'date : "'.$this->value.'",
'inputField : "'.$this->id.'", // id of the input field
ifFormat : "%d.%m.%Y", // format of the input field
button : "'.$this->id.'_trigger", // trigger for the calendar (button ID)
align : "Bl", // alignment (defaults to "Bl")
singleClick : true
});
</script>
';
return $r;
}
| static IDate::test_me | ( | ) | [static] |
Definition at line 68 of file class_idate.php.
{
}