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


Current Path : /proc/thread-self/root/var/www/oasis/js_old/Report/
Upload File :
Current File : //proc/thread-self/root/var/www/oasis/js_old/Report/report_Admission_Ticket.js

function LoadAdmissionTicket() {
  $geditinternalcode = 0;
  window.enable_proper_module = "AdmissionTicket";
  $("#page_main_div").load(
    "../../html_modules/admission_ticket.html?v=24091642",
    function() {
      getDefaultHeadFooterLinks("Admission Ticket");
      document.getElementById("display_module_name").innerHTML =
        "Admission Ticket";
      document.getElementById("module_name_for_save").value =
        "saveAdmissionTicket";
      ClearAdmissionTicket();
    }
  );
}

function GenerateAdmissionTicket() {
  if (trim($("#report_admission_ticket_degree_code").val()) == "") {
    alert("Please Enter Degree Code!!");
    $("#report_admission_ticket_degree_code").focus();
    return;
  }

  if (trim($("#report_admission_ticket_start").val()) == "")
    $adm_reg_starts = "00000000";
  else $adm_reg_starts = $("#report_admission_ticket_start").val();

  if (trim($("#report_admission_ticket_End").val()) == "")
    $adm_reg_ends = "ZZZZZZZZ";
  else $adm_reg_ends = $("#report_admission_ticket_End").val();

  //if(trim($("#report_adt_one_per_page").checked == true))
  if (document.getElementById("report_adt_one_per_page").checked == true) {
    $print_hall_ticket_val = "1";
  } else {
    $print_hall_ticket_val = "2";
  }

  $.ajax({
    type: "POST",
    //async:false,
    url: $host_url + "checkdateforhalticket.demo",
    data: "degree=" + trim($("#report_admission_ticket_degree_code").val()),
    success: checkdateforhalticketResponse
  });
}

function ClearAdmissionTicket() {
  $("#report_admission_ticket_degree_code").val("");
  $("#report_admission_ticket_degree_name").val("");
  $("#report_admission_ticket_start").val("");
  $("#report_admission_ticket_End").val("");
}

/* function checkdateforhalticket()
{
	$.ajax({
			type: "POST",
			//async:false,
			url: $host_url+"checkdateforhalticket.demo", 
			data:"degree="+trim(($("#report_admission_ticket_degree_code").val())),
			success: checkdateforhalticketResponse
	}); 
	
} */

function checkdateforhalticketResponse($responce) {
  $responce = eval("(" + $responce + ")");
  if ($responce.error_code == "-1") {
    $("#report_admission_ticket_degree_code").val("");
    $("#report_admission_ticket_degree_name").val("");
    document.getElementById("report_admission_ticket_degree_code").focus();
    alert($responce.data);
    return false;
  } else {
    if (trim($("#report_admission_ticket_degree_code").val()) == "") {
      alert("Please Enter Degree Code!!");
      $("#report_admission_ticket_degree_code").focus();
      return;
    }

    if (trim($("#report_admission_ticket_start").val()) == "")
      $adm_reg_starts = "00000000";
    else $adm_reg_starts = $("#report_admission_ticket_start").val();

    if (trim($("#report_admission_ticket_End").val()) == "")
      $adm_reg_ends = "ZZZZZZZZ";
    else $adm_reg_ends = $("#report_admission_ticket_End").val();
    $rptype = $("#rptype").val();
    $exam = $("#exam").val();
    //alert($rptype);
    //if(trim($("#report_adt_one_per_page").checked == true))
    if (document.getElementById("report_adt_one_per_page").checked == true) {
      $print_hall_ticket_val = "1";
    } else {
      $print_hall_ticket_val = "2";
    }

    window.location.href =
      $host_url +
      "generateAdmissionTicket.demo&degree_code=" +
      trim($("#report_admission_ticket_degree_code").val()) +
      "&reg_starts=" +
      $adm_reg_starts +
      "&reg_ends=" +
      $adm_reg_ends +
      "&print_hall_ticket=" +
      $print_hall_ticket_val +
      "&rptype=" +
      $rptype +
      "&exam=" +
      $exam;
  }
}

function htstaus() {
  var rtype = $("#reporttype").val();
  var regnofrom = $("#report_admission_ticket_start").val();
  var regnoto = $("#report_admission_ticket_End").val();
  var degcode = $("#report_admission_ticket_degree_code").val();

  if (degcode == "") {
    alert("Please Enter Degree Code.");
    degcode = $("#report_admission_ticket_degree_code").focus();
    return;
  }

  if (regnofrom == "") {
    alert("Please Enter From Register Number.");
    degcode = $("#report_admission_ticket_start").focus();
    return;
  }

  if (regnoto == "") {
    alert("Please Enter To Register Number.");
    degcode = $("#report_admission_ticket_End").focus();
    return;
  }

  $.ajax({
    type: "POST",
    url: $host_url + "checkgeneratehtstaus.demo",
    data:
      "degcode=" +
      trim(degcode) +
      "&regnofrom=" +
      regnofrom +
      "&regnoto=" +
      regnoto,
    success: function($responce) {
      $responce = eval("(" + $responce + ")");

      if ($responce.error_code == "-1") {
        alert($responce.data);
        return false;
      } else {
        window.location.href =
          $host_url +
          "generatehtstaus.demo&degcode=" +
          degcode +
          "&regnofrom=" +
          regnofrom +
          "&regnoto=" +
          regnoto +
          "&rtype=" +
          rtype;
      }
    }
  });
}