<?php

$courseNumber = array();
$courseDescription = array();
$courseFall = array();
$courseWinter = array();
$courseSpring = array();

function addCourse($thiscourseNumber,$thiscourseDescription,$thiscourseFall,$thiscourseWinter,$thiscourseSpring)
{
	global $courseNumber;
	global $courseDescription;
	global $courseFall;
	global $courseWinter;
	global $courseSpring;

$courseNumber[count($courseNumber)] = $thiscourseNumber;
$courseDescription[count($courseDescription)] = $thiscourseDescription;
$courseFall[count($courseFall)] = $thiscourseFall;
$courseWinter[count($courseWinter)] = $thiscourseWinter;
$courseSpring[count($courseSpring)] = $thiscourseSpring;

}

function displayVars()
{
	global $courseNumber;
	global $courseDescription;
	global $courseFall;
	global $courseWinter;
	global $courseSpring;

	$arraySize = count($courseNumber);

	for ($i = 0; $i < $arraySize; $i++)
	{
	if (($i % 2) == 0)
	{
		echo '<tr>';
	} else {
		echo '<tr class="rowEven">';
	}

	echo '<td width="15%">' . $courseNumber[$i] . 
	'</td><td>' . $courseDescription[$i] . 
	'</td><td width=5%>' . $courseFall[$i] .
	'</td><td width=5%>' . $courseWinter[$i] . 
	'</td><td width=5%>' . $courseSpring[$i] . '</td></tr>';
	}
}

include('files/cogsci/other/ugrad_courses_list.php');

?>

<center>
<table width="95%">
    <?php

displayVars();

?>
</table>
</center>