$PageTitle : $SiteName\n"); print("\n"); print("\n"); print("
\n"); print("
\n"); print("
\n"); print("

$Year BTCC - Races and results

\n"); print("
\n"); print("

\"BTCC$Year BTCC Calendar

\n"); print("

BTCC $Year Below is the race calendar for the $Year BTCC season, with details of dates and locations of BTCC races in $Year.

\n"); print("
\n"); print("\n"); print("
\n"); print("
\n"); //Start Event Dates section print("

Event Dates

\n"); //$Query2 = "SELECT * FROM timetabledata WHERE `EventID` = $EventID ORDER by `Date`, `Time` ASC"; //$Result2 = mysql_query ($Query2); //$Num_Rows = mysql_num_rows($Result2); //print ("Rows: $Num_Rows Rows\n"); //print ("PersonID: $PersonID\n"); $Query2 = "SELECT * FROM events WHERE StartDate LIKE '%$Year%' AND Type ='Race Meeting'"; $Result2 = mysql_db_query ($DBName, $Query2, $Link); print("
\n"); $Query4 = "SELECT * FROM years WHERE Year=$Year"; $Result4 = mysql_db_query ($DBName, $Query4, $Link); $Array4 = mysql_fetch_array ($Result4); $RndsPerEvent=$Array4[RndsPerEvent]; //print("Rounds per event: $RndsPerEvent\n"); //START CALENDAR INFO $Counter=1; print("\n"); print("\n"); while ($results = mysql_fetch_array ($Result2)) { $Rnds=$RndsPerEvent*$Counter; $StartRnds=($RndsPerEvent*$Counter)-($RndsPerEvent-1); $EndRnds=$Rnds; $RndsHTML="$StartRnds - $EndRnds"; $CircuitID = $results[CircuitID]; $ShortStart = date('jS M', strtotime($results['StartDate'])); $ShortEnd = date('jS M', strtotime($results['EndDate'])); $Query3 = "SELECT * FROM circuits WHERE CircuitID=$CircuitID"; $Result3 = mysql_db_query ($DBName, $Query3, $Link); $Array3 = mysql_fetch_array ($Result3); print("
\n"); print("
\n"); print("\n"); $Counter++; } print("
RoundsCircuitDateMore information
$RndsHTML$Array3[CircuitName]$ShortStart / $ShortEndMore information
\n"); print("
\n"); //END CALENDAR INFO print("
BTCC $Year Index / BTCC Archive
\n"); //End Event dates section //Begin Test session section print("

Test Sessions

\n"); $Query2 = "SELECT * FROM events WHERE StartDate LIKE '%$Year%' AND Type ='Test Session'"; $Result2 = mysql_db_query ($DBName, $Query2, $Link); print("
\n"); $Query4 = "SELECT * FROM years WHERE Year=$Year"; $Result4 = mysql_db_query ($DBName, $Query4, $Link); $Array4 = mysql_fetch_array ($Result4); //START CALENDAR INFO print("\n"); print("\n"); while ($results = mysql_fetch_array ($Result2)) { $EventTitle = $results[Title]; $CircuitID = $results[CircuitID]; $ShortStart = date('jS M', strtotime($results['StartDate'])); $Query3 = "SELECT * FROM circuits WHERE CircuitID=$CircuitID"; $Result3 = mysql_db_query ($DBName, $Query3, $Link); $Array3 = mysql_fetch_array ($Result3); print("
\n"); print("
\n"); print("\n"); } print("
EventCircuitDateMore information
$EventTitle$Array3[CircuitName]$ShortStartMore information
\n"); print("
\n"); //END CALENDAR INFO print("
BTCC $Year Index / BTCC Archive
\n"); print("
\n"); //END TEST SESSION SECTION //END IF YEAR }else{ $PageTitle="BTCC Race Calendars"; $PageDescription="Details of dates and locations of BTCC rounds from past seasons. Get results and reports from here as well."; $PageKeyWords="rounds, races, dates, results, reports, touring cars, btcc"; print("$PageTitle : $SiteName\n"); print("\n"); print("\n"); print("
\n"); print("
\n"); print("
\n"); print("

BTCC - Races and results

\n"); print("
\n"); print("

\"BTCCBTCC race calendars

\n"); print("

BTCC calendars You have not selected a year. Please click on a year below to see the race calendar for that year.

\n"); print("
\n"); print("\n"); print("
\n"); print("
\n"); print("

Event Dates

\n"); print("
\n"); print("No other calendars currently available.\n"); print("
\n"); print("
\n"); } //END ELSE print("
\n"); // Start ad code include("/home/motorspo/public_html/includes/ad_250x250_notfp.php"); // End ad codes //include("/home/motorspo/public_html/rounds/mostviewed_rounds.php"); ?>