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.23.102.79
Current Path : /var/www/oasis/js/ |
| Current File : /var/www/oasis/js/collegewisedownload.js |
function callCollegeWiseDownload() {
$("#page_main_div").load(
"../html_modules/download_college_photo.html",
function () {
document.getElementById("display_module_name").innerHTML =
"Download Photos CollegeWise";
document.getElementById("module_name_for_save").value =
"Download Photos CollegeWise";
getDefaultHeadFooterLinks("Download Photos CollegeWise");
}
);
getColleges();
}
function getColleges() {
$.ajax({
type: "GET",
url: $host_url + "loadAllCollege",
success: function (res) {
let response = JSON.parse(res);
if (response.error_code === 0) {
let opt = `<option>---select---</option>`;
for (var i = 0; i < response.data.length; i++) {
opt += `<option value='${response.data[i].fcollcode}'>${
response.data[i].fcollcode + " - " + response.data[i].fcollname
} </option>`;
}
$("#college").html(opt);
}
},
});
}
function downloadPhotos() {
let collcode = $("#college").val();
let fregfrom = $("#reg_from").val();
let fregto = $("#reg_to").val();
window.open(
$host_url +
"downloadConvoPhotos" +
"&college=" +
collcode +
"®from=" +
fregfrom +
"®to=" +
fregto
);
}
|