0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.189.143.150


Current Path : /var/www/oasis/js/
Upload File :
Current File : /var/www/oasis/js/pendingcielist.js

function callpendingcielist() {
  $("#page_main_div").load("../html_modules/pendingcielist.html", function () {
    document.getElementById("display_module_name").innerHTML =
      "Pending Cie List";
    document.getElementById("module_name_for_save").value = "Pending Cie List";
    getDefaultHeadFooterLinks("Pending Cie List");
    loadDegreeGroups();
  });
}

function loadDegreeGroups() {
  $.ajax({
    type: "GET",
    url: $host_url + "loadciedeggrp",
    success: function (response) {
      var res = JSON.parse(response);
      console.log(res);
      if (res.error_code === 0) {
        var opt = `<option value=''>---select---</option>`;
        for (var i = 0; i < res.data.length; i++) {
          opt += `<option value='${res.data[i].fdeggrp}'>${
            res.data[i].fdeggrp + " - " + res.data[i].fdescpn
          }</option>`;
        }
        $("#degreegrp").html(opt);
      } else {
        alert(res.data.msg);
        return;
      }
    },
  });
}

function loadDegrees() {
  var deggrp = document.getElementById("degreegrp").value;

  $.ajax({
    type: "GET",
    url: $host_url + "loadciedegree",
    data: "deggrp=" + deggrp,
    success: function (response) {
      var res = JSON.parse(response);
      console.log(res);
      if (res.error_code === 0) {
        var opt = `<option value=''>---select---</option>`;
        for (var i = 0; i < res.data.length; i++) {
          opt += `<option value='${res.data[i].FDEGREE}'>${
            res.data[i].FDEGREE + " - " + res.data[i].FDESCPN
          }</option>`;
        }
        $("#degree").html(opt);
      } else {
        alert(res.data.msg);
        return;
      }
    },
  });
}

function loadexamno() {
  var deg = document.getElementById("degree").value;

  $.ajax({
    type: "GET",
    data: "degree=" + deg,
    url: $host_url + "loadciesem",
    success: function (response) {
      var res = JSON.parse(response);
      console.log(res);

      if (res.status === "success") {
        var examnoOptions = '<option value="">----Select----</option>';
        for (var i = 0; i < res.data.length; i++) {
          examnoOptions += `<option value='${res.data[i].FEXAMNO}'>${res.data[i].FEXAMNAME}</option>`;
        }
        $("#examno").html(examnoOptions);
      }
      // } else {
      //   alert(res.data.msg);
      //   return;
      // }
    },
  });
}

function loadqpcode() {
  var examno = document.getElementById("examno").value;
  var deg = document.getElementById("degree").value;
  $.ajax({
    type: "GET",
    data: "examno=" + examno + "&degree=" + deg,
    url: $host_url + "loadciesub",
    success: function (response) {
      var res = JSON.parse(response);
      console.log(res, "gjh");
      if (res.status === "success") {
        var qpcode = '<option value="">----Select----</option>';
        for (var i = 0; i < res.data.length; i++) {
          qpcode += `<option value='${res.data[i].FSUBCODE}'>${res.data[i].FSUBNAME}</option>`;
        }
        $("#qpcode").html(qpcode);
        // } else {
        //   alert(res.data.msg);
        //   return;
      }
    },
  });
}

function submitTemptab() {
  var deg = document.getElementById("degree").value;
  var examno = document.getElementById("examno").value;

  window.open($host_url + "generatecielist");
}