//*******************************************************************************************************
$donotlist = false;
include ("header.php");
//--------------------------------------
if ($_SESSION['authenticate'] != "ok")
echo "
You are not logged in. Please relogin here.
";
else {
//--------------------------------------
include ("menu.php");
include ("functions.php");
?>
switch($action) {
case 'add_course':
//construct the time block
$weekday = $HTTP_POST_VARS['weekday'];
for ($i=0; $i ";
$qry = "INSERT INTO cs_schedule (id, semester, course, instructor, location, time, www) VALUES('', '".$HTTP_POST_VARS['semester']."', '".$HTTP_POST_VARS['course']."', '".$HTTP_POST_VARS['instructor']."', '".$HTTP_POST_VARS['location']."', '".$time."', '".$HTTP_POST_VARS['www']."')";
echo $qry;
$sql = mysql_query($qry) or die (mysql_error());
IfSuccess("Course successfully added.");
$donotlist=true;
ListSchedule('20051');
break;
}//end switch
if ($donotlist==false) { ?>
}//if
//*******************************************************************************************************
include ("footer.php");
}?>