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.138.178.162
function studentlist() {
$.ajax({
type: "POST",
url: $host_url + "loadRange",
async: false,
success: function (response) {
// console.log(response);
var { error_code, data, status } = JSON.parse(response);
console.log(data);
if (error_code == "0") {
$("#loadTab").load("studlist.html", function () {
var degrees = data;
var dept_opt = `<option value="">--Select--</option>`;
for (let deg of degrees) {
dept_opt += `<option value="${deg.fdegree}">${deg.fdescpn}</option>`;
}
$("#fstuddeg").html(dept_opt);
});
// var date = getDate();
// console.log(date);
// document.getElementById('dtfrom').value = date;
// document.getElementById('dtto').value = date;
// $('#dtfrom').val(date);
// $('#dtto').val(date);
} else {
alert("Please try after some time");
return;
}
},
});
}
function getstudlistcollege2() {
var fstuddeg = $("#fstuddeg").val();
// console.log(fstuddeg);
$.ajax({
type: "POST",
url: $host_url + "loadstudcollcode",
data: "&fstuddeg=" + fstuddeg,
async: false,
success: function (response) {
// console.log(response);
var { error_code, data, status } = JSON.parse(response);
console.log(data);
if (error_code == "0") {
var degrees = data;
var fcoll_opt = `<option value=''>--Select--</option>
<option value='All'>All</option>`;
for (let deg of degrees) {
fcoll_opt += `<option value="${deg.fcollcode}">${
deg.fcollcode + " - " + deg.fcollname
}</option>`;
}
$("#fcollege").html(fcoll_opt);
} else {
alert("Please try after some time");
return;
}
},
});
}
function studentlistreport() {
var fstuddeg = $("#fstuddeg").val();
var fcollege = $("#fcollege").val();
// console.log(fstuddeg);
if (fstuddeg == "") {
alert("Select Degree");
return;
} else if (fcollege == "") {
alert("Select College");
return;
}
window.open(
$host_url +
"generatestudentlistreport" +
"&fstuddeg=" +
fstuddeg +
"&fcollege=" +
fcollege,
"_blank"
);
}
|