Ejemplo n.º 1
0
    $sem = $_GET['sem'];
}
// get all POST variables
extract($_POST);
switch ($action) {
    case "Add":
        insertCourse($schedule, $sem, $crs, $lec, $tut, $pra);
        break;
    case "Edit":
        editCourse($schedule, $sem, $crs, $lec, $tut, $pra);
        break;
    case "Remove":
        removeCourse($schedule, $crs);
        break;
    case "AddNew":
        addNewCourse($schedule, $dept, $code, $type, $section, $day, $start, $end);
        break;
    case "Purge":
        purge($schedule, $sem);
        break;
    case "QuickAdd":
        quickAdd($schedule, $sem, $toadd);
        break;
    default:
        break;
}
// Get list of departments (APS, CSC, etc...)
$depts = deptList($sem);
// Decide whether to turn on the conflict filter or not
if ($_GET["filter"]) {
    $_SESSION["filter"] = $_GET["filter"];
Ejemplo n.º 2
0
     require_once 'footer.php';
     break;
 case 'myaccount':
     $page['title'] = "My Account";
     require_once 'header.php';
     require_once 'myaccount.php';
     require_once 'footer.php';
     break;
 case 'changepassword':
     changepassword($_SESSION['userID'], $_POST['NewPassword']);
     break;
 case "createUser":
     addUser();
     break;
 case "addCourse":
     addNewCourse();
     break;
 case "addSemester":
     addNewSemester();
     break;
 case "addAssignment":
     addNewAssignment();
     break;
 case "updateRemoveEnrollment":
     updateRemoveEnrollment();
     break;
 case "updateAddEnrollment":
     updateAddEnrollment();
     break;
 case "gradeSubmission":
     gradeSubmission();