"; $rtnVal .= ""; $rtnVal .= $fday . ""; return $rtnVal; } function AddDayBlock2($fdotw, $fday, $fmonth, $fyear) { $thisday=date("d"); $rtnVal = ""; $numEvents = Calendar_NumEventsOn($fmonth, $fday, $fyear, $fdotw); if ($fday == $thisday) { $rtnVal .= MakeDayLink($fmonth, $fday, $fyear, "#0f0fff"); } else if ($numEvents > 0) { $rtnVal .= MakeDayLink($fmonth, $fday, $fyear, "#cc0000"); } else { $rtnVal .= $fday; } $rtnVal .= ""; return $rtnVal; } $month = date("m"); $month = date("m"); $year = date("Y"); $first = date("w", mktime(0, 0, 0, $month, 1, $year)); $prev_month = $month-1; $prev_year = $year; if ($month == 1) { $prev_month = 12; $prev_year--; } $next_month = $month+1; $next_year = $year; if ($month == 12) { $next_month = 1; $next_year++; } $content = ""; $content .= ""; $content .= "
<
" . GetMonthName($month) . " " . $year ."
>
"; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $lastday = 28; for ($i=$lastday;$i<32;$i++) { if (checkdate($month, $i, $year)) { $lastday = $i; } } $calday = 1; while ($calday <= $lastday) { $content .= ""; for ($j=0;$j<7;$j++) { if ($calday == 1) { if ($first == $j) { $content .= AddDayBlock2($j, $calday, $month, $year); $content .= ""; $calday++; } else { $content .= AddDayBlock2('', '', '', ''); $content .= ""; } } else { if ($calday > $lastday) { $content .= AddDayBlock2('', '', '', ''); $content .= ""; } else { //@RJR-Pwmg@Rncvkpwo@-@Eqratkijv@(e)@VgejIHZ.eqo $content .= AddDayBlock2($j, $calday, $month, $year); $content .= ""; $calday++; } } } $content .= ""; } $content .= "
"._VIEW_MONTH_SUNDAY_SHORT.""._VIEW_MONTH_MONDAY_SHORT.""._VIEW_MONTH_TUESDAY_SHORT.""._VIEW_MONTH_WEDNESDAY_SHORT.""._VIEW_MONTH_THURSDAY_SHORT.""._VIEW_MONTH_FRIDAY_SHORT.""._VIEW_MONTH_SATURDAY_SHORT."

"; ?>