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


Current Path : /var/www/oasis/js_old/
Upload File :
Current File : /var/www/oasis/js_old/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");
    }
  );
}

var str = "";
function CallEnableAckExamAppForm() {
  $("#page_main_div").load(
    "../html_modules/ack_exam_app_form.html?v=19112018",
    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");
      str = "";
    }
  );
}

function DisplayAllAckExamApplications() {
  var app_from = $("#app_no_from").val();

  if (empty(app_from)) {
    alert("Please Enter Application Number");
    document.getElementById("app_no_from").focus();
    return;
  }

  var pay_status = $("#ack_type").val();
  /*var pay_mode= $("#pay_mode").val();

	if(pay_mode != 'College Bank')
	{
		alert("Acknowledgement with payment mode "+pay_mode+" is not allowed");
		document.getElementById('pay_mode').focus();
		return;	
	}*/

  $.ajax({
    type: "POST",
    data:
      "&app_no_from=" +
      encodeURIComponent(app_from) +
      "&ack_type=" +
      encodeURIComponent(pay_status),
    url: $host_url + "DisplayAllAckExamApplications",
    success: DisplayAllAckExamApplicationsResponce
  });
}

function DisplayAllAckExamApplicationsResponce(responce) {
  responce = eval("(" + responce + ")");
  $("#reval_table_data").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) {
  var evt = "";
  var id = "";
  responce = eval("(" + responce + ")");
  alert(responce.data);
  CallEnableAckExamAppForm();
}

function PrintOnlineExamApplicationForm(app_no) {
  window.location.href =
    $host_url + "PrintOnlineExamApplicationForm&app_no=" + app_no;
}

function DownloadExamApplicationsForms() {
  window.location.href =
    $host_url +
    "DownloadExamAppFormApplications&app_no_from=" +
    $("#app_no_from").val() +
    "&app_no_to=" +
    $("#app_no_to ").val() +
    "&ack_type=" +
    $("#ack_type").val() +
    "&pay_mode=" +
    $("#pay_mode").val() +
    "&degree_type=" +
    $("#degree_type").val();
}