Source for file 21.php
Documentation is available at 21.php
* Description: a complete year with numeric week numbers
return ((float) $usec + (float) $sec);
if (!@include 'Calendar/Calendar.php') {
define ('CALENDAR_ROOT', '../../');
require_once CALENDAR_ROOT. 'Year.php';
require_once CALENDAR_ROOT. 'Month/Weeks.php';
define ('CALENDAR_MONTH_STATE',CALENDAR_USE_MONTH_WEEKS );
if (!isset ($_GET['year'])) $_GET['year'] = date('Y');
if (!isset ($_GET['week_type']) || !in_array($_GET['week_type'],$week_types) ) {
$_GET['week_type'] = 'n_in_year';
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title> <?php echo $Year->thisYear (); ?> </title>
font-family: Georgia, serif;
border: thin groove #800080
background-color: #e5e5f5;
<?php echo $Year->thisYear (); ?>
<a href="?year= <?php echo $Year->nextYear (); ?>&week_type= <?php echo $_GET['week_type']; ?>">>></a>
<a href="?year= <?php echo $Year->prevYear (); ?>&week_type= <?php echo $_GET['week_type']; ?>"><<</a>
<a href="?year= <?php echo $Year->thisYear (); ?>&week_type=n_in_year">Weeks by Year</a> :
<a href="?year= <?php echo $Year->thisYear (); ?>&week_type=n_in_month">Weeks by Month</a>
while ($Month = $Year->fetch ()) {
echo "<td>\n<table class=\"month\">\n";
echo '<caption class="month">'. date('F', $Month->thisMonth (TRUE )). '</caption>';
echo '<colgroup><col class="weekNumbers"><col span="7"></colgroup>'. "\n";
echo "<tr>\n<th>Week</th><th>M</th><th>T</th><th>W</th><th>T</th><th>F</th><th>S</th><th>S</th>\n</tr>";
while ($Week = $Month->fetch ()) {
echo '<td>'. $Week->thisWeek ($_GET['week_type']). "</td>\n";
while ($Day = $Week->fetch ()) {
echo "<td> </td>\n";
echo "<td>". $Day->thisDay (). "</td>\n";
echo "</table>\n</td>\n";
Documentation generated on Mon, 11 Mar 2019 15:37:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|