}
 case 'leave':
     switch ($_GET['leavecode']) {
         case 'Leave':
             if (isset($_GET['action'])) {
                 $leaveController = new LeaveController();
                 $leaveExtractor = new EXTRACTOR_Leave();
                 $leaveRequestsExtractor = new EXTRACTOR_LeaveRequests();
                 $leaveTakenExtractor = new EXTRACTOR_LeaveTakenRequests();
                 $LeaveTypeExtractor = new EXTRACTOR_LeaveType();
                 $leaveQuotaExtractor = new EXTRACTOR_LeaveQuota();
                 $holidaysExtractor = new EXTRACTOR_Holidays();
                 $weekendsExtractor = new EXTRACTOR_Weekends();
                 switch ($_GET['action']) {
                     case 'Leave_HomeSupervisor':
                         $leaveController->setId($_SESSION['empID']);
                         $leaveController->gotoLeaveHomeSupervisor();
                         break;
                     case 'Leave_FetchLeaveEmployee':
                         $leaveController->setId($_SESSION['empID']);
                         $leaveController->viewLeaves();
                         break;
                     case 'Leave_FetchLeaveAdmin':
                         $leaveController->setId($_SESSION['empID']);
                         $leaveController->viewLeaves("admin");
                         break;
                     case 'Leave_FetchLeaveSupervisor':
                         $leaveController->setId($_SESSION['empID']);
                         $leaveController->viewLeaves("suprevisor");
                         break;
                     case 'Leave_FetchLeaveTaken':