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.137.177.116
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;
}
var examfrom = trim($("#report_admission_examfrom").val());
if (examfrom == "") {
alert("Please Enter Exam no");
$("#report_admission_examfrom").focus();
return;
}
var examto = trim($("#report_admission_examto").val());
if (examto == "") {
alert("Please Enter Exam no");
$("#report_admission_examto").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 (document.getElementById("report_adt_one_per_page").checked == true) {
$print_hall_ticket_val = "1";
} else {
$print_hall_ticket_val = "2";
}
var parameters =
"degree=" +
trim($("#report_admission_ticket_degree_code").val()) +
"&examfrom=" +
examfrom +
"&examno=" +
examto;
$.ajax({
type: "POST",
url: $host_url + "checkdateforhalticket.demo",
data: parameters,
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 + ")");
//alert($responce.error_code);
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;
}
var examfrom = trim($("#report_admission_examfrom").val());
if (examfrom == "") {
alert("Please Enter Exam no");
$("#report_admission_examfrom").focus();
return;
}
var examto = trim($("#report_admission_examto").val());
if (examto == "") {
alert("Please Enter Exam no");
$("#report_admission_examto").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();
//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";
}
var parameters =
"°ree_code=" +
trim($("#report_admission_ticket_degree_code").val()) +
"&examfrom=" +
examfrom +
"&examto=" +
examto +
"®_starts=" +
$adm_reg_starts +
"®_ends=" +
$adm_reg_ends +
"&rptype=" +
$rptype;
window.location.href =
$host_url + "generateAdmissionTicket.demo" + parameters;
}
}
|