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 : 3.144.21.237


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

function degreewisestdusn() {
  $("#page_main_div").load("../html_modules/stdulistusn.html?", function () {
    document.getElementById("display_module_name").innerHTML =
      "Degree Wise Student List(with USN)";
    document.getElementById("module_name_for_save").value =
      "Degree Wise Student List(with USN)";
    getDefaultHeadFooterLinks("Degree Wise Student List(with USN)");
    getDegree();
  });
}

function getDegree() {
  $.ajax({
    type: "POST",
    async: false,
    url: $host_url + "loadAdmDegCode",
    success: function ($responce) {
      var res = JSON.parse($responce);
      var degree_options = "";
      if (res.error_code == 0) {
        degree_options += "<option value=''>---Select Degree---</option>";
        for (var i = 0; i < res.data.degcode.length; i++) {
          degree_options += `<option value='${res.data.degcode[i].internal_code}'>${res.data.degcode[i].value}</option>`;
        }
        $("#student_entry_degree_code_USN").html(degree_options);
      } else {
        alert(res.data);
        return;
      }
    },
  });
}

function generateStudentListUSN() {
  let degree = document.getElementById("student_entry_degree_code_USN").value;
  window.open(
    $host_url + "generateDegreewiseStudentListUSN" + "&degree=" + degree
  );
}