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.221.161.43
function callTestwiseMarksReport() {
$("#page_main_div").load(
"../html_modules/testwiseMarksReport.html?v=31072017",
function () {
document.getElementById("display_module_name").innerHTML =
"Testwise Marks Report";
document.getElementById("module_name_for_save").value =
"Testwise Marks Report";
getDefaultHeadFooterLinks("Testwise Marks Report");
loadestwiseMarksDegree();
}
);
}
function loadestwiseMarksDegree() {
$.blockUI({
message:
"<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>",
});
$.ajax({
type: "GET",
url: $host_url + "loadAttDegwise",
success: function (res) {
let response = JSON.parse(res);
let opt = "";
opt += `<option>---Select---</option>`;
if (response.error_code === 0) {
response.data.forEach((element) => {
opt += `<option value='${element.fdegree}'>${element.fdegree} - ${element.fdescpn}</option>`;
});
document.getElementById("testwise_marks_degree").innerHTML = opt;
}
$.unblockUI();
},
});
}
function getTestMarksSem() {
let degree = document.getElementById("testwise_marks_degree").value;
$.blockUI({
message:
"<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>",
});
$.ajax({
type: "GET",
url: $host_url + "getAttDegSem" + "°ree=" + degree,
success: function (res) {
let response = JSON.parse(res);
let option = "";
option += `<option>---Select---</option>`;
if (response.error_code === 0) {
response.data.forEach((elements) => {
option += `<option value='${elements.fexamno}'>${elements.fexamno} - ${elements.fexamname}</option>`;
});
document.getElementById("testwise_marks_sem").innerHTML = option;
}
$.unblockUI();
},
});
}
function getTestMarksElement() {
let degree = document.getElementById("testwise_marks_degree").value;
let sem = document.getElementById("testwise_marks_sem").value;
let sub = "All";
$.ajax({
type: "GET",
url: $host_url + "testforIAreport",
data: "°ree=" + degree + "&sem=" + sem + "&sub=" + sub,
success: function (res) {
let response = JSON.parse(res);
console.log(response);
option = "";
option += `<option>---Select---</option>`;
if (response.error_code == 0) {
response.data.forEach((elements) => {
option += `<option value='${elements.fsubname}'>${elements.fsubname}</option>`;
});
document.getElementById("testwise_marks_element").innerHTML = option;
}
},
});
}
function getTestMarksTest() {
let degree = document.getElementById("testwise_marks_degree").value;
let sem = document.getElementById("testwise_marks_sem").value;
let sub = "All";
let subelement = document.getElementById("testwise_marks_element").value;
$.ajax({
type: "GET",
url: $host_url + "testforIAreporttest",
data:
"°ree=" +
degree +
"&sem=" +
sem +
"&sub=" +
sub +
"&subelement=" +
subelement,
success: function (res) {
let response = JSON.parse(res);
console.log(response, "ghvjh");
option = "";
option += `<option>---Select---</option>`;
if (response.error_code == 0) {
response.data.forEach((elements) => {
option += `<option value='${elements.ftest}'>${elements.ftest}</option>`;
});
document.getElementById("testwise_marks_test").innerHTML = option;
}
},
});
}
function getTestWiseAllMarksData() {
let degree = document.getElementById("testwise_marks_degree").value;
let sem = document.getElementById("testwise_marks_sem").value;
let sub = "All";
let subelement = document.getElementById("testwise_marks_element").value;
let test = document.getElementById("testwise_marks_test").value;
window.open(
$host_url +
"getTestWiseAllMarksData" +
"°ree=" +
degree +
"&sem=" +
sem +
"&sub=" +
sub +
"&subelement=" +
subelement +
"&test=" +
test
);
}
|