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.219.112.243
Current Path : /var/www/oasis/js/ |
| Current File : /var/www/oasis/js/attiacombined.js |
function Loadattiacombined() {
$g_fmacs_total_row_count = 0;
$g_fmacas_rem_sub = "";
$g_fmacas_org_rem_sub = "";
$("#page_main_div").load("../html_modules/attiacombined.html", function () {
document.getElementById("display_module_name").innerHTML =
"Attendance CIE Eligiblity";
document.getElementById("module_name_for_save").value =
"Attendance CIE Eligiblity";
getDefaultHeadFooterLinks("Attendance CIE Eligiblity");
loadAttdeg();
});
}
function loadAttdeg() {
$.ajax({
type: "POST",
url: $host_url + "loadiadeg",
success: loadAttdegResponce,
});
}
function loadAttdegResponce($responce) {
$responce = eval("(" + $responce + ")");
let degcode = $responce.data["degcode"];
document.getElementById("fmacas_degree_code").options.length = 0;
$op = new Option("-select-", "0");
$op.id = "";
document.getElementById("fmacas_degree_code").options.add($op);
for ($i = 0; $i < $responce.data.degcode.length; $i++) {
$op = new Option(
$responce.data.degcode[$i]["value"],
$responce.data.degcode[$i]["id"]
);
$op.id = $responce.data.degcode[$i]["id"];
document.getElementById("fmacas_degree_code").options.add($op);
}
}
function getAttExamno() {
$.ajax({
type: "POST",
data: "degcode=" + $("#fmacas_degree_code").val(),
url: $host_url + "getIaExamno",
success: getAttExamnoResponce,
});
}
function getAttExamnoResponce($responce) {
$responce = eval("(" + $responce + ")");
let degexam = $responce.data["degexam"];
let section = $responce.data["section"];
let usrtype = $responce.data["usrtype"];
document.getElementById("fmacas_sub_Examno").options.length = 0;
$op = new Option("-select-", "");
$op.id = "";
document.getElementById("fmacas_sub_Examno").options.add($op);
for ($i = 0; $i < $responce.data.degexam.length; $i++) {
$op = new Option(
$responce.data.degexam[$i]["value"],
$responce.data.degexam[$i]["id"]
);
$op.id = $responce.data.degexam[$i]["id"];
document.getElementById("fmacas_sub_Examno").options.add($op);
}
document.getElementById("fsection").options.length = 0;
$op = new Option("-select-", "");
$op = new Option("All", "");
$op.id = "";
document.getElementById("fsection").options.add($op);
for ($i = 0; $i < $responce.data.section.length; $i++) {
$op = new Option(
$responce.data.section[$i]["value"],
$responce.data.section[$i]["id"]
);
$op.id = $responce.data.section[$i]["id"];
document.getElementById("fsection").options.add($op);
}
}
function GenerateattiacombinedReport() {
let degcode = $("#fmacas_degree_code").val();
let sem = $("#fmacas_sub_Examno").val();
let section = $("#fsection").val();
console.log(degcode, sem, section, "hii");
if (degcode == 0 || degcode == "") {
alert("Select Degree");
return;
} else if (sem == "" || sem == null) {
alert("Select Examno");
return;
} else {
window.open(
$host_url +
"attiacombinedReportnew°code=" +
degcode +
"&sem=" +
sem +
"§ion=" +
section
);
}
}
|