Exemple #1
0
 case 'departmentyears':
     if (isset($_POST["inst_id"]) && isset($_POST["dep_id"])) {
         $instID = $_POST["inst_id"];
         $depID = $_POST["dep_id"];
         $departmentyears = getData::getDepartmentYear($instID, $depID);
         $departmentyears_Json = json_encode($departmentyears);
         echo $departmentyears_Json;
     }
     break;
 case 'groups':
     if (isset($_POST["inst_id"]) && isset($_POST["acyear_id"]) && isset($_POST["dep_id"]) && isset($_POST["dep_year_id"])) {
         $instID = $_POST["inst_id"];
         $acyearID = $_POST["acyear_id"];
         $depID = $_POST["dep_id"];
         $depYearID = $_POST["dep_year_id"];
         $returnGroups = getData::getGroups($instID, $acyearID, $depID, $depYearID);
         $groups_Json = json_encode($returnGroups);
         echo $groups_Json;
     }
     break;
 case 'languages':
     $all_languages = getData::getLanguages();
     $all_languages_Json = json_encode($all_languages);
     echo $all_languages_Json;
     break;
 case 'exams':
     if (isset($_POST["inst_id"]) && isset($_POST["acyear_id"]) && isset($_POST["dep_id"]) && isset($_POST["dep_year_id"]) && isset($_POST["group_id"]) && isset($_POST["term"]) && isset($_POST["language_id"])) {
         $instID = $_POST["inst_id"];
         $acyearID = $_POST["acyear_id"];
         $depID = $_POST["dep_id"];
         $depYearID = $_POST["dep_year_id"];