Another PHP Calendar
<?
$year = date(Y);
$month = date("n");
$raz = date("w",mktime(0,0,0,$month,1,$year));
$var = 0;
echo date("F") . " - $year";
echo "<TABLE border=0 width=200><TR><TH>Í<TH>Ï<TH>Â<TH>Ñ<TH>×<TH>Ï<TH>Ñ";
for($sbor=1;$sbor<7;$sbor++) {
echo "<tr>";
for($week=1;$week<8;$week++) {
$var++;
$value=mktime(0,0,0,$month,$var-$raz,$year);
if (date("m",$value) == $month) { echo "<th>" . date("d",$value) . "</th>"; }
else { echo "<TD>"; }
}
}
echo "<TR><TD colspan=7></TABLE>";
?>