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


Current Path : /proc/thread-self/root/var/www/html/univadmin/js/
Upload File :
Current File : //proc/thread-self/root/var/www/html/univadmin/js/generatebonfdata.js

var $host_url =
  "https://" +
  window.location.host +
  "/" +
  window.location.pathname.split("/")[1] +
  "/app.php?a=";

function genbonfdata() {
  $("#loadtab").load("html_modules/generatebonfdata.html?v=" + version, () => {
    loadUnivs("univname");
    loadclgnm();
  });
}

function loadclgnm() {
  var univcode = $("#univname").val();

  var parameters = "univcode=" + univcode;

  $.ajax({
    type: "post",
    url: $host_url + "loadclgnm",
    data: parameters,
    success: function (response) {
      if (response.error_code == 0) {
        var optionsAsString = "<option value=''>--Select College--</option>";
        for (var i = 0; i < response.data.length; i++) {
          optionsAsString +=
            "<option value='" +
            response.data[i].fcollcode +
            "'>" +
            response.data[i].fcollcode +
            "-" +
            response.data[i].fcollname +
            "-" +
            response.data[i].ftown +
            "</option>";
        }

        $("#college").append(optionsAsString);
      }
    },
  });
}

function generateData() {
  var univcode = $("#univname").val();
  var college = $("#college").val();
  var deg_frm = $("#deg_frm").val();
  var deg_to = $("#deg_to").val();
  var reg_frm = $("#reg_frm").val();
  var reg_to = $("#reg_to").val();

  //   var parameters =
  //     "&univcode=" +
  //     univcode +
  //     "&college=" +
  //     college +
  //     "&deg_frm=" +
  //     deg_frm +
  //     "&deg_to=" +
  //     deg_to +
  //     "&reg_frm=" +
  //     reg_frm +
  //     "&reg_to=" +
  //     reg_to;
  window.location.href =
    $host_url +
    "genbonf_EXCEL&univcode=" +
    univcode +
    "&college=" +
    college +
    "&deg_frm=" +
    deg_frm +
    "&deg_to=" +
    deg_to +
    "&reg_frm=" +
    reg_frm +
    "&reg_to=" +
    reg_to;
}