"; } print ""; if(($mm % 2) == 1) { print ""; } } print "
Activity photos on:
"; $serverdoc = $_SERVER["DOCUMENT_ROOT"] ; // $pyear = date("Y"); // for($mm=0;$mm<=3;$mm++) { for($mm=0;$mm<=5;$mm++) { if(($mm % 2) == 0) { print "
"; $pyear = date("Y"); //$pyear = date("Y",mktime(0,0,0,$currentmonth,1,$pyear)); // $currentmonth = date("n") - $mm; // - 0 : currentmonth, - 1 : lastmonth, -2 : last two months // $currentmonth = date("n") - 3 + $mm; // ascend $currentmonth = date("n") - 5 + $mm; // ascend if($currentmonth <= 0) { $currentmonth += 12; $pyear --; } $firstday = date("w",mktime (0,0,0,$currentmonth,1,$pyear)); $firstday = ($firstday + 6) %7; // M=0, T=1, W=2, TH=3, F=4, S=5, SU=6 $pday = mktime(0,0,0,$currentmonth,1-$firstday,$pyear); $monthname = date("F",mktime(0,0,0,$currentmonth,1,$pyear)); print ""; print ""; print ""; for($i=0;$i<=5;$i++) { print ""; for($j=0;$j<=6;$j++) { print ""; $pday += 86400; // increase 1 day } print ""; } print "
"; print "$monthname $pyear
MTWTHFSSU
"; $pmonth = date("m",$pday); if($pmonth == $currentmonth) { $pdate=date("d",$pday); // date with 0 instead $pdate2=date("j",$pday); // date with out 0 instead $dirname = $pyear . $pmonth . $pdate; $absdir = $serverdoc . '/photo/' . $dirname . '/thumbnails'; $filename = $serverdoc . '/photo/' . $dirname . '/index.html'; clearstatcache(); if (file_exists($filename)) { // file_exists($absdir) print "$pdate2"; } else { print "$pdate2"; } } else { print " "; } print "
"; print "
"; ?>
* The photos will be ready to download in 1 week after the class and will remain to download for approximately 3 - 4 months depending on the website space.