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


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

function CallEnableExamAppGuideLines() {
  $("#page_main_div").load(
    "../html_modules/exam_app_form_guide_lines.html",
    function () {
      document.getElementById("display_module_name").innerHTML = "GuideLines";
      document.getElementById("module_name_for_save").value = "GuideLines";

      $(".ui-tabs .ui-tabs-panel").css("padding", "0px");
      $(".ui-tabs .ui-tabs-panel").css("padding-top", "21px");
    }
  );
}
function CallEnableAckExamAppForm() {
  $("#page_main_div").load(
    "../html_modules/ack_exam_app_form.html",
    function () {
      document.getElementById("display_module_name").innerHTML =
        "Acknowledge Exam App Form";
      document.getElementById("module_name_for_save").value =
        "Acknowledge Exam App Form";
      getDefaultHeadFooterLinks("Acknowledge Exam App Form");
      $(".ui-tabs .ui-tabs-panel").css("padding", "0px");
      $(".ui-tabs .ui-tabs-panel").css("padding-top", "21px");
    }
  );
  getDegreeNameNew();
}
function DisplayAllAckExamApplications() {
  console.log($("#ack_exam_app_degree").val());
  var type = $("#rtype").val();
  $.ajax({
    type: "POST",
    data:
      "&ack_exam_app_degree=" +
      $("#ack_exam_app_degree").val() +
      "&app_no_from=" +
      $("#app_no_from").val() +
      "&app_no_to=" +
      $("#app_no_to ").val() +
      "&type=" +
      type,
    url: $host_url + "DisplayAllAckExamApplications",
    success: DisplayAllAckExamApplicationsResponce,
  });
}
function DisplayAllAckExamApplicationsResponce(responce) {
  responce = eval("(" + responce + ")");
  $("#ack_rv_rt_application_details").html("");
  $("#ack_rv_rt_application_details").html(responce.data["html"]);
}
function AcknowledgeSelectedExamApplications() {
  checked_app_nos = new Array();
  var obj = $("input[id*='ack_check_box_']");
  jQuery.each(obj, function (k, v) {
    row_id = v["id"].split("_")[3];
    if ($(this).is(":checked")) checked_app_nos.push(row_id);
  });
  if (empty(checked_app_nos)) {
    alert("Please select minumum one application to acknowledge.");
    return false;
  }
  $.ajax({
    type: "POST",
    data: "checked_app_nos=" + checked_app_nos,
    url: $host_url + "AcknowledgeSelectedExamApplications",
    success: AcknowledgeSelectedExamApplicationsResponce,
  });
}
function AcknowledgeSelectedExamApplicationsResponce(responce) {
  responce = eval("(" + responce + ")");
  alert(responce.data);
  DisplayAllAckExamApplications();
}
function PrintOnlineExamApplicationForm(app_no) {
  window.open($host_url + "PrintOnlineExamApplicationForm&app_no=" + app_no);
}
function DownloadExamApplicationsForms() {
  window.open($host_url + "DownloadExamAppFormApplications");
}

function getDegreeNameNew() {
  $.ajax({
    type: "GET",
    url: $host_url + "getACKAppDegree",
    success: function (response) {
      let res = JSON.parse(response);

      if (res.error_code == 0) {
        var degree = `<option>All</option>`;
        for (var i = 0; i < res.data.length; i++) {
          degree += `<option value='${res.data[i].fdegree}'>${res.data[i].fdegree} - ${res.data[i].fdescpn}</option>`;
        }
        $("#ack_exam_app_degree").html(degree);
      } else {
        alert(res.data.msg);
        return;
      }
    },
  });
}

function getAcknowledgeAppReport() {
  let degree = $("#ack_exam_app_degree").val();
  let appFrom = $("#app_no_from").val();
  let appTo = $("#app_no_to").val();
  let type = $("#rtype").val();

  window.open(
    $host_url +
      "getAcknowledgeAppReport" +
      "&degree=" +
      degree +
      "&appFrom=" +
      appFrom +
      "&appTo=" +
      appTo +
      "&type=" +
      type
  );
}