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.117.151.198
function loadclassrpt() {
$("#page_main_div").load(
"../html_modules/classtimetablerpt.html?",
function () {
document.getElementById("display_module_name").innerHTML =
"Class Timetable Report";
document.getElementById("module_name_for_save").value =
"Class Timetable Report";
getDefaultHeadFooterLinks("Class Timetable Report");
}
);
loadtimetablereportdegree();
}
function loadtimetablereportdegree() {
$.ajax({
type: "POST",
url: $host_url + "loadtimetabledegree",
success: function (response) {
var res = JSON.parse(response);
console.log(res);
var degreeoptions = "";
degreeoptions = "<option value=''>---Select Degree---</option>";
for (var i = 0; i < res.data.deg.length; i++) {
degreeoptions += `<option value='${res.data.deg[i].fdegree}'>${res.data.deg[i].fdegree} - ${res.data.deg[i].fdescpn}</option>`;
}
$("#degree").html(degreeoptions);
},
});
}
function getTtDegSem() {
$.ajax({
type: "POST",
url: $host_url + "getTtDegSem",
data: "degree=" + $("#degree").val(),
success: function (response) {
var res = JSON.parse(response);
var degreeoptions = "";
degreeoptions = "<option value=''>---Select Degree---</option>";
for (var i = 0; i < res.data.semdet.length; i++) {
degreeoptions += `<option value='${res.data.semdet[i].fexamno}'>${res.data.semdet[i].fexamname}</option>`;
}
$("#sem").html(degreeoptions);
},
});
}
function generateReport() {
var degree = document.getElementById("degree").value;
var sem = document.getElementById("sem").value;
if (degree == "") {
alert("Enter Degree");
$("#degree").focus();
return;
}
if (sem == "") {
alert("Select Semester");
$("#sem").focus();
return;
}
var parameters = "°ree=" + degree + "&sem=" + sem;
window.open($host_url + "reportAttCount" + parameters);
}
|