Smallcal.php:
<?php
##########################################################################
# Please refer to the README file for licensing and contact information.
#
# 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>
<?php
echo " ";
$pdate = date("Y-m-d", mktime(0, 0, 0, $scmonth+1, 1, $scyear)) ;
if (date("Y", mktime(0, 0, 0, $scmonth+1, 1, $scyear))<=$y+$caladvanceyear)
echo "<a class=normalfont href=smallcal.php?op=smallcal&date=$pdate>>></a>";
?>
</div>
</body>
</html>
Other Calendars Scripts: