News & updates

Upcoming events

[insert_php] function readCSV($csvFile){ $file_handle = fopen($csvFile, ‘r’); while (!feof($file_handle) ) { $line_of_text[] = fgetcsv($file_handle, 1024); } fclose($file_handle); return $line_of_text; } $csvFile = ‘http://harrowfeb19.zanderfray-dev.com/events.csv’; // location of the file is very important. we must have access to this $csv = readCSV($csvFile); // this is a two dimensional array $rowColor = “even”; $repeatArr = []; for($i=1;$i
PreviousNext

Events in

    [insert_php] $repeatArrCounter = 0; $currentMonYear = ”; $MonthsYearsArr = []; $ChangedMonth = false; for($i=1; $i= 1) { if($currentMonYear != $MonthsYearsArr[count($MonthsYearsArr)-1]) { $ChangedMonth = true; } } if($rowColor == “even” || $ChangedMonth) { $rowColor = “odd”; $ChangedMonth = false; } else { $rowColor = “even”; } array_push($MonthsYearsArr, $currentMonYear); echo “
  • “; echo “

    “.$dm.”

    “; for($j=0;$j<$repeatArr[$repeatArrCounter];$j++) { echo "
    “; if(substr($csv[$i][3],0,8) == “Open Day”) { echo ” “.$csv[$i][3].”“; } else { echo ” “.$csv[$i][3].”“; } if($csv[$i][1] == “”) { echo ” “; } else { echo ” Start: “.$csv[$i][1].” End: “.$csv[$i][2].”“; } echo ” “.$csv[$i][4].”“; echo ”
    “; echo “
    “; $i++; } $repeatArrCounter++; echo “
  • \n”; if($repeatArrCounter == count($repeatArr)) { break; } } function getDateString($dmStr, $n) { $monthArr = [“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December”]; $m = $monthArr[(int)substr($dmStr,strpos($dmStr,”/”)+1,2)-1]; $date = substr($dmStr,0,strpos($dmStr,”/”)); $y = substr($dmStr,strlen($dmStr)-4,strlen($dmStr)); if ($n==1) { return $m . ” ” . $y; } else if ($n==2) { return $m . ” ” . $date; } else { return $m.”-“.$y; } } [/insert_php]
[insert_php] $JSMonthsYearArr = [$MonthsYearsArr[0]]; for($i=0,$j=0;$i var JSMonthsYearArr = [ [insert_php] for($i=0;$i