<a href="<?php echo '?m=events&a=year_view&date=' . $next_year; ?> "><img src="<?php echo w2PfindImage('next.gif'); ?> " alt="next" title="next" /></a> </td> </tr> </table> </td> </tr> </table> <?php $minical = new w2p_Output_MonthCalendar($date); $minical->setStyles('minititle', 'minical'); $minical->showArrows = false; $minical->showWeek = true; $minical->clickMonth = true; $minical->setLinkFunctions('clickDay', 'clickWeek'); $s = ''; for ($j = 0; $j < 3; $j++) { $s .= '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>'; $s .= '<td valign="top" align="center" width="20%"> </td>'; for ($i = 0; $i <= 3; $i++) { // prepare time period for minical'events' $first_time = new w2p_Utilities_Date($date); $first_time->setDay(1); $first_time->setTime(0, 0, 0); $last_time = new w2p_Utilities_Date($date); $last_time->setDay($date->getDaysInMonth());
/* $Id$ $URL$ */ if (!defined('W2P_BASE_DIR')) { die('You should not call this file directly.'); } $callback = isset($_GET['callback']) ? w2PgetParam($_GET, 'callback', '') : 0; $date = w2PgetParam($_GET, 'date', null); $prev_date = w2PgetParam($_GET, 'uts', null); // if $date is empty, set to null $date = $date !== '' ? $date : null; $this_month = new w2p_Utilities_Date($date); $uistyle = $AppUI->getPref('UISTYLE') ? $AppUI->getPref('UISTYLE') : w2PgetConfig('host_style'); ?> <a href="javascript: void(0);" onclick="clickDay('', '');">clear date</a> <?php $cal = new w2p_Output_MonthCalendar($this_month); $cal->setStyles('poptitle', 'popcal'); $cal->showWeek = false; $cal->callback = $callback; $cal->setLinkFunctions('clickDay'); if (isset($prev_date)) { $highlights = array($prev_date => '#FF8888'); $cal->setHighlightedDays($highlights); $cal->showHighlightedDays = true; } echo $cal->show(); ?> <script language="javascript" type="text/javascript"> /** * @param string Input date in the format YYYYMMDD * @param string Formatted date */