|
|
echo $msgMonthsArray[$mon-1]." ".$year ?> |
|
|
| echo $msgDaysShortArray[0] ?> |
echo $msgDaysShortArray[1] ?> |
echo $msgDaysShortArray[2] ?> |
echo $msgDaysShortArray[3] ?> |
echo $msgDaysShortArray[4] ?> |
echo $msgDaysShortArray[5] ?> |
echo $msgDaysShortArray[6] ?> |
$d = 1;
$thisDay = date('d');
$thisMon = date('n');
$thisMon = date('n');
# $thisMonth = date('F');
$thisYear = date('Y');
$wday = $firstwday;
$firstweek = true;
// loop through all the days of the month
while ( $d <= $lastday) {
// set up blank days for first week
if ($firstweek) {
echo "";
for ($i=1; $i<=$firstwday; $i++) {
echo "| | ";
}
$firstweek = false;
}
if ($wday==0) {
// Sunday start week with
echo "
";
}
// print cell
//
// $lnk_f = "index2.php3?table=".$table."&reqdate=".strtotime("$year-$mon-$d")."&reset=0&period=$period";
$lnk_f = "index2.php3?table=".$table."&reqdate=".mktime(0,0,0,$mon,$d,$year)."&reset=0&period=$period";
$lnk = "".$d."";
echo "| $d | ";
echo " > $lnk
";
if ($wday==6) {
// Saturday end week with
echo "\n";
}
$wday++;
$wday = $wday % 7;
$d++;
}
?>
| echo $msgToday ?> :
echo $msgDaysArray[date("w")] ." ";
echo date("j").(date("j") == 1 ? "er " : " ");
echo $msgMonthsArray[date("n")-1]." ".date("Y");
?>
|
|