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


Current Path : /var/www/html/pget/js/admin/
Upload File :
Current File : /var/www/html/pget/js/admin/meritlist.js

function loadMeritListRcub() {
  $.ajax({
    type: "POST",
    url: $host_url + "loaddegree",
    async: false,
    success: function(response) {
      var { error_code, data, status } = JSON.parse(response);
      console.log(data);
      if (error_code == "0") {
        $("#loadTab").load("meritlist.html", function() {
          var degers = data;
          // console.log(degers[0]["fcollcode"]);

          var opt = "<option value = ''>-Select-</option>";
          for (var i = 0; i < degers.length; i++) {
            opt += `<option value = '${degers[i]["fdegree"]}'>${
              degers[i]["fdescpn"]
            }</option>`;
          }
          $("#degree").html(opt);
          // if($('#college').val() == ''){
          //   $('#degtable').hide();
          // }
        });
      } else {
        alert("Please try after some time");
        return;
      }
    }
  });
}

function UpdMeritList() {
  var degree = $("#degree").val();

  if (degree == "") {
    alert("Select Degree");
    $("#degree").focus();
    return;
  }
  $.blockUI({
    message:
      "<h1 class='h1' style='font-size:12px'><img src='../images/ajax-loader.gif' border='0'></h1>"
  });
  $.ajax({
    type: "POST",
    url: $host_url + "UpdMeritList",
    data: "degree=" + degree,
    async: true,
    success: function(response) {
      $.unblockUI();
      var { error_code, data, status } = JSON.parse(response);
      console.log(data);
      if (error_code == "0") {
        alert(data);
        window.open($host_url + "Rcub_MeritList" + "&fdegree=" + degree);
        loadMeritListRcub();
        return;
      } else {
        alert(data);
        return;
      }
    }
  });
}

// function DownloadMeritList() {
//   var degree = $("#degree").val();

//   if (degree == "") {
//     alert("Select Degree");
//     $("#degree").focus();
//     return;
//   }
//   window.open($host_url + "Rcub_MeritList" + "&fdegree=" + degree);
//   return;
// }