$leaveController->displayLeaveTypeSummary();
     break;
 case 'Leave_Type_Undelete':
     $obj = $LeaveTypeExtractor->parseLeaveType($_POST);
     $leaveController->setObjLeave($obj);
     $leaveController->undeleteLeaveType();
     break;
 case 'Leave_List_Taken':
     $id = isset($_REQUEST['id']) ? $_REQUEST['id'] : $_SESSION['empID'];
     $year = isset($_REQUEST['year']) ? $_REQUEST['year'] : date('Y');
     $leaveController->setId($id);
     $leaveController->viewLeaves("taken", $year, true);
     break;
 case 'Leave_Type_Edit':
     $objs = $LeaveTypeExtractor->parseEditData($_POST);
     $leaveController->editLeaveTypes($objs);
     break;
 case 'Leave_Type_Delete':
     $objs = $LeaveTypeExtractor->parseDeleteData($_POST);
     if (isset($objs)) {
         foreach ($objs as $obj) {
             $leaveController->setObjLeave($obj);
             $leaveController->setId($obj->getLeaveTypeId());
             $mes = $leaveController->LeaveTypeDelete();
         }
     }
     $leaveController->redirect($mes);
     break;
 case 'Leave_Request_CancelLeave':
     $objs = $leaveRequestsExtractor->parseDeleteData($_POST);
     $mes = "Empty record";