Source for file function.jscalendar.php
Documentation is available at function.jscalendar.php
* Smarty {jscalendar} plugin
* Purpose: Prints the dropdowns for date selection.
$inputField = ''; // ID of the input field
$fieldFormat = '%s'; // format of the input field
$electric = 'false'; // ID of the span where the date is to be shown
$time = time(); // override the currently set date
$onUpdate = ''; // execute the following javascript function when a link is pressed
$daFormat = $gBitSystem->getConfig( 'site_short_date_format' ). ' '. $gBitSystem->getConfig( 'site_short_time_format' ); // format of output date
// override default values
$time = $gBitSystem->mServerTimestamp->getDisplayDateFromUTC( $time );
$time = strftime( "%m/%d/%Y %H:%M", $time );
"<script type=\"text/javascript\">//<![CDATA[
inputField : \"$inputField\",
ifFormat : \"$fieldFormat\",
daFormat : \"$daFormat\",
displayArea : \"$displayArea\",
|