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.140.185.250
function CallEnableApplication() {
$("#page_main_div").load(
"../html_modules/ack_application.html?v=17082016",
function() {
document.getElementById("display_module_name").innerHTML =
"Acknowledge Applications";
document.getElementById("module_name_for_save").value =
"Acknowledge Applications";
getDefaultHeadFooterLinks("Acknowledge Applications");
$(".ui-tabs .ui-tabs-panel").css("padding", "0px");
$(".ui-tabs .ui-tabs-panel").css("padding-top", "21px");
}
);
getpopup();
}
function getpopup() {
$.ajax({
type: "POST",
url: $host_url + "getDegreeGroup",
success: degreeGroupSuccess
});
}
function degreeGroupSuccess($responce) {
$responce = eval("(" + $responce + ")");
document.getElementById("deg_type").options.length = 0;
var deg = $responce.data["deggrp"];
$op = new Option("--SELECT--", "");
document.getElementById("deg_type").options.add($op);
for ($i = 0; $i < deg.length; $i++) {
$op = new Option(deg[$i]["VALUE"], deg[$i]["internal_code"]);
//console.log(deg[$i]['value']);
$op.id = deg[$i]["internal_code"];
document.getElementById("deg_type").options.add($op);
}
}
function getval() {
$.ajax({
type: "POST",
//data:"°type="+degtype,
url: $host_url + "getDegreeNames°type=" + $("#deg_type").val(),
success: degreeNameSuccess
});
}
function degreeNameSuccess($responce) {
$responce = eval("(" + $responce + ")");
document.getElementById("degree").options.length = 0;
var degree = $responce.data["degree"];
$op = new Option("--SELECT--", "");
document.getElementById("degree").options.add($op);
for ($i = 0; $i < degree.length; $i++) {
$op = new Option(degree[$i]["VALUE"], degree[$i]["internal_code"]);
//console.log($op);
$op.id = degree[$i]["internal_code"];
//console.log()
document.getElementById("degree").options.add($op);
//console.log(degree);
}
}
function getdegree() {
$.ajax({
type: "POST",
url:
$host_url +
"getExamNo°type=" +
$("#deg_type").val() +
"°reename=" +
$("#degree").val(),
success: ExamNameSuccess
});
}
function ExamNameSuccess($responce) {
$responce = eval("(" + $responce + ")");
document.getElementById("exam").options.length = 0;
var exam = $responce.data["exam"];
$op = new Option("--SELECT--", "");
document.getElementById("exam").options.add($op);
for ($i = 0; $i < exam.length; $i++) {
$op = new Option(exam[$i]["VALUE"], exam[$i]["internal_code"]);
//console.log(deg[$i]['value']);
$op.id = exam[$i]["internal_code"];
document.getElementById("exam").options.add($op);
//console.log(degree);
}
}
function DisplayAckApplications() {
var payment = document.getElementById("payment");
$payment_type = payment.options[payment.selectedIndex].value;
$.ajax({
type: "POST",
data:
"°_type=" +
$("#deg_type").val() +
"°ree=" +
$("#degree ").val() +
"&exam=" +
$("#exam").val() +
"&app_from=" +
$("#app_from ").val() +
"&app_to=" +
$("#app_to").val() +
"&payment_type=" +
$payment_type,
url: $host_url + "DisplayAckApplications",
success: DisplayAckApplicationsResponce
});
}
function DisplayAckApplicationsResponce(responce) {
responce = eval("(" + responce + ")");
$("#ack_application_details").html("");
$("#ack_application_details").html(responce.data["html"]);
//total = responce.data['count'];
}
function SaveAckApplications() {
checked_app_nos = new Array();
checked_app_nos2 = new Array();
var obj = $("input[id*='ack_check_box_']");
jQuery.each(obj, function(k, v) {
row_id = v["id"].split("_")[3];
if ($("#h_" + row_id).val() == "T") {
if ($(this).is(":checked")) checked_app_nos.push(row_id);
else checked_app_nos2.push(row_id);
}
});
$.ajax({
type: "POST",
data:
"checked_app_nos=" + checked_app_nos + "&unchecked=" + checked_app_nos2,
url: $host_url + "SaveAckApplications",
success: SaveAckApplicationsResponce
});
}
function SaveAckApplicationsResponce(responce) {
responce = eval("(" + responce + ")");
alert(responce.data);
DisplayAckApplications();
}
function CheckedValue(appno) {
$("#h_" + appno).val("T");
}
|