'.implode(' | ',$headings).' | |
'; $days_in_this_week++; } /* keep going with days.... */ for($list_day = 1; $list_day <= $days_in_month; $list_day++){ /* add in the day number */ $events = curl_get_file_contents("http://".$_SERVER['HTTP_HOST']."/academics/business-administration/undergraduate-majors/accounting/news--events/upcoming-events/?m=".$month."&y=".$year."&d=".$list_day); if (strlen($events) > 0) { $calendar.= ' | ';
$calendar.= ' '.$list_day.' ';
$calendar.= '';
}
else {
$calendar.= ' | ';
$calendar.= ' '.$list_day.' ';
}
$calendar.= ' | ';
if($running_day == 6){
$calendar.= '
'; } } /* final row */ $calendar.= ' |
'.$_GET['y'].' ▼
';
echo '2014
2015
2016
';
echo previousButton($_GET['m'],$_GET['y']);
echo ''.date("M", mktime(0, 0, 0, $_GET['m'], 10)).'';
echo nextButton($_GET['m'],$_GET['y']);
echo '
January
February
March
April
May
June
July
August
September
October
November
December
'; echo draw_calendar($_GET['m'],$_GET['y']);