コード例 #1
0
ファイル: getData.php プロジェクト: Fatma91/firstwebservice
         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"];
         $groupID = $_POST["group_id"];
         $term = $_POST["term"];
         $languageID = $_POST["language_id"];
         $returnExams = getData::getExams($instID, $acyearID, $depID, $depYearID, $groupID, $term, $languageID);
         $exams_Json = json_encode($returnExams);
         echo $exams_Json;