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.17.175.167
function callFinalCieMarks() {
$("#page_main_div").load("../html_modules/finalCieMarks.html", function () {
getDefaultHeadFooterLinks("Final CIE Marks");
loadFinalCieDegree();
});
}
function loadFinalCieDegree() {
$.blockUI({
message:
"<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>",
});
$.ajax({
type: "GET",
url: $host_url + "loadiadeg",
success: function (response) {
let res = JSON.parse(response);
if (res.error_code === 0) {
let opt = `<option value=''>---select---</option>`;
for (var i = 0; i < res.data.degcode.length; i++) {
opt += `<option value='${res.data.degcode[i].id}'>${res.data.degcode[i].value}</option>`;
}
$("#degree").html(opt);
$.unblockUI();
} else {
alert("No degree found");
$.unblockUI();
return;
}
},
});
}
function loadFinalCieSem() {
let degree = $("#degree").val();
$.blockUI({
message:
"<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>",
});
$.ajax({
type: "GET",
url: $host_url + "getIaExamno",
data: "degcode=" + degree,
success: function (response) {
let res = JSON.parse(response);
console.log(res);
if (res.error_code === 0) {
let examOpt = `<option value=''>---select---</option>`;
for (var i = 0; i < res.data.degexam.length; i++) {
examOpt += `<option value='${res.data.degexam[i].id}'>${res.data.degexam[i].value}</option>`;
}
$("#sem").html(examOpt);
let sectionOpt = `<option value=''>---select---</option>`;
for (var i = 0; i < res.data.section.length; i++) {
sectionOpt += `<option value='${res.data.section[i].id}'>${res.data.section[i].value}</option>`;
}
$("#section").html(sectionOpt);
$.unblockUI();
} else {
alert("No sem found");
$.unblockUI();
return;
}
},
});
}
function getFinalCieMarksReport() {
let degree = $("#degree").val();
let sem = $("#sem").val();
let section = $("#section").val();
let rtype = $("#rtype").val();
if (degree === "") {
alert("select degree");
return;
}
if (sem === "") {
alert("select sem");
return;
}
if (section === "") {
alert("select section");
return;
}
let api = "";
if (rtype == "pdf") {
api = "attiacombinedReportnew_sjbit";
} else {
api = "attiacombinedReportnewexcel_sjbit";
}
window.open(
$host_url +
api +
"°code=" +
degree +
"&sem=" +
sem +
"§ion=" +
section
);
}
|