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.222.67.8


Current Path : /proc/thread-self/root/var/www/oasis/js/
Upload File :
Current File : //proc/thread-self/root/var/www/oasis/js/copomarkslist.js

function callCopomarkslist() {
  $("#page_main_div").load(
    "../html_modules/copomarkslist.html?v=1",
    function () {
      document.getElementById("display_module_name").innerHTML = "COPO Marks";
      document.getElementById("module_name_for_save").value = "COPO Marks";
      getDefaultHeadFooterLinks("COPO Marks");
    }
  );
  handlerDegree();
}

function handlerDegree() {
  $.ajax({
    type: "GET",
    url: $host_url + "getcolldegree",
    success: function (res) {
      let responce = JSON.parse(res);
      if (responce.error_code == 0) {
        opt = "";
        opt += `<option>---Select---</option>`;
        for (let i = 0; i < responce.data.length; i++) {
          opt += `<option value="${responce.data[i].FDEGREE}">${responce.data[i].FDEGREE} - ${responce.data[i].FDESCPN}</option>`;
        }
        document.getElementById("degree").innerHTML = opt;
      }
    },
  });
}
function examnoHandler() {
  let degree = document.getElementById("degree").value;
  $.ajax({
    type: "GET",
    url: $host_url + "getExamnoForCOPOMarksList",
    data: "degree=" + degree,
    success: function (response) {
      let res = JSON.parse(response);
      console.log(res);

      if (res.error_code == 0) {
        opt = "";
        opt += `<option>---Select---</option>`;
        for (let i = 0; i < res.data.length; i++) {
          opt += `<option value="${res.data[i].fexamno}">${res.data[i].fexamno} - ${res.data[i].fexamname}</option>`;
        }
        document.getElementById("examno").innerHTML = opt;
      }
    },
  });
}
function subjectHandler() {
  let degree = document.getElementById("degree").value;
  let examno = document.getElementById("examno").value;
  console.log(degree, examno, "hi");

  $.ajax({
    type: "GET",
    url: $host_url + "getSubjectsForCOPOMraksList",
    data: "degree=" + degree + "&examno=" + examno,
    success: function (response) {
      let res = JSON.parse(response);
      console.log(res, "aniota");

      if (res.error_code == 0) {
        opt = "";
        opt += `<option>---Select---</option>`;
        for (let i = 0; i < res.data.length; i++) {
          opt += `<option value="${res.data[i].fsubcode}">${res.data[i].fsubcode} - ${res.data[i].fsubname}</option>`;
        }
        document.getElementById("subject").innerHTML = opt;
      }
    },
  });
}
function reportHandler() {
  let degree = document.getElementById("degree").value;
  let examno = document.getElementById("examno").value;
  let subject = document.getElementById("subject").value;
  window.open(
    $host_url +
      "reportCOPOMarksList" +
      "&degree=" +
      degree +
      "&examno=" +
      examno +
      "&subject=" +
      subject
  );
}