string smarty_function_pncalendarinput(
array $params, object &$smarty, assign 2)
|
|
Smarty function to display a calendar input control
This function displays a javascript (jscalendar) calendar control
Available parameters:
- objectname The name of the object the field will be placed in
- htmlname: The html fieldname under which the date value will be submitted
- dateformat: The dateformat to use for displaying the chosen date
- defaultstring: The String to display before a value has been selected
- defaultdate: The Date the calendar should to default to (format: Y/m/d)
- hidden: Boolean to show a hidden input or not
- display: Boolean to show a display output (when date is added in a hidden field)
- class: The class to apply to the html elements
- time: If set show time selection
Example <!--[pncalendarinput objectname=myobject htmlname=from dateformat='%Y-%m-%d' defaultdate='2005/12/31']-->
Tags:
Parameters
| array |
$params |
All attributes passed to this function from the template |
| object |
&$smarty |
Reference to the Smarty object |
| assign |
2 |
The smarty variable to assign the resulting menu HTML to |