aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/datepicker_popup.php
blob: 0daeb7307f7c2447b6210a20aa321b79d67ce69a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php

/**
 * JQuery data picker
 * 
 * @package event_calendar
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
 * @author Kevin Jardine <kevin@radagast.biz>
 * @copyright Radagast Solutions 2008
 * @link http://radagast.biz/
 * 
 */

if ($vars['dateformat']) {
	$date_format = $vars['dateformat'];
} else {
	$date_format = "yy/mm/dd";
}
?>

<script language="javascript">
$(document).ready(function(){
$("#<?php echo $vars['internalname']; ?>").datepicker({ 
    dateFormat: "<?php echo $date_format; ?>", 
    showOn: "both", 
    buttonImage: "<?php echo $vars['url']; ?>mod/event_calendar/images/calendar.gif", 
    buttonImageOnly: true 
})
});
</script>
<input type="text" size="30" value="<?php echo $vars['value']; ?>" name="<?php echo $vars['internalname']; ?>" id="<?php echo $vars['internalname']; ?>"/>