0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
phpwiki
/
1.3.14-6
/
standard
/
htdocs
/
themes
/
Sidebar
/
templates
/
[
Home
]
File: calendar.tmpl
<?php // -*-php-*- rcs_id('$Id: calendar.tmpl,v 1.5 2005/08/06 13:26:26 rurban Exp $'); ?> <div id="calendar"></div> <?= JavaScript(' function dateChanged(calendar) { if (calendar.dateClicked) { var y = calendar.date.getFullYear(); var m = calendar.date.getMonth() + 1; // integer, 0..11 var d = calendar.date.getDate(); // integer, 1..31 m = m < 10 ? "0" + m : m; d = d < 10 ? "0" + d : d; window.location = "' . WikiUrl($WikiTheme->calendarBase(),0,1) . SUBPAGE_SEPARATOR . '" + y + "-" + m + "-" + d; } }; Calendar.setup({flat : "calendar", flatCallback : dateChanged, setDateStatusFunc : dateStatusFunc, weekNumbers : false})') ?>