# This file has been updated for version 0.6.20050131 # # If you like this application, do support me in its development # by sending any contributions at www.calendarix.com. # # # Copyright © 2002-2005 Vincent Hor ########################################################################## include 'cal_header.inc.php'; include "../cal_utils.php"; $scyear = substr($date, 0, 4); $scmonth = substr($date, 5, 2); if (substr($scmonth, 0, 1) == "0") { $scmonth = str_replace("0", "", $scmonth); } smallmonth($scmonth, $scyear, true, $d, $m, $y, true); ?> <div align=center class=normalfont> <?php $pdate = date("Y-m-d", mktime(0, 0, 0, $scmonth - 1, 1, $scyear)); if (date("Y", mktime(0, 0, 0, $scmonth - 1, 1, $scyear)) >= $calstartyear) { echo "<a class=normalfont href=smallcal.php?op=smallcal&date={$pdate}><<</a>"; } echo " "; ?> <a href="#" class=normalfont onClick="Javascript:self.window.close();"><?php echo translate("Close"); ?> </a>
# This is file is identical to one in admin section of same name. # # Copyright © 2002-2007 Vincent Hor ########################################################################## require "cal_header.inc.php"; include 'cal_utils.php'; if (!isset($_GET['ycyear'])) { $ycyear = $y; } else { $ycyear = sanitize($_GET['ycyear'], $y); } echo "<div align=center class=calfontasked><u>" . translate("Year") . " " . $ycyear . "</u></div>"; echo "<table width='100%' border=0 cellspacing=1><tr>"; for ($ycm = 1; $ycm < 13; $ycm++) { echo "<td valign='top' align='center' class=txtbox>"; smallmonth($ycm, $ycyear, false, $d, $m, $y, true); echo "</td>"; if ($ycm % 3 == 0) { echo "</tr><tr>"; } } echo "</table>"; // get total number of events under year $tquery = "select id from " . $EVENTS_TB . " where " . $EVENTS_TB . ".year='" . $ycyear . "' and " . $EVENTS_TB . ".approved='1' "; $normuser = false; if ($userview == 1 && $userlogin == 1 && $uname != "") { // view user specific events only $uquery = "select group_id from " . $USER_TB . " where " . $USER_TB . ".user_id=" . $userid; $uresult = mysql_query($uquery); $urow = mysql_fetch_object($uresult); if ($urow->group_id != 0) {