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.116.85.96
var $host_url="https://"+window.location.host+"/"+window.location.pathname.split('/')[1]+"/app.php?a=";
function loadCollege(){
$('#loadtab').load('html_modules/reports.html?v='+version, () => loadUnivs('univname') );
$('#deggrp').load('html_modules/reports.html?v='+version, () => getdegree() );
}
function getdegree(){
$.ajax({
type: 'post',
url: $host_url+'getdeggrp',
success: function(response){
var {error_code, data,status} = response;
// console.log("collcollcoll",data);
if(error_code == 0)
{
var deg = data;
var options;
options +=`<option value="All">All</option>`;
for(var i = 0; i< deg.length; i++)
{
options += `<option value="${deg[i].ffaculty}">${deg[i].ffaculty}</options>`;
}
$("#deggrp").html(options);
}
}
});
}
function getReports(){
univcode = document.getElementById('univname').value;
deggrp = document.getElementById('deggrp').value;
reportType = document.getElementById('reportType').value;
// console.log("univcodeunivcodedeggrpdeggrpvalval",univcode,deggrp,reportType);
if(reportType == 'College List'){
console.log("college list");
window.location.href = $host_url+"getReports&val="+reportType+"°grp="+deggrp+"&univcode="+univcode;
}
if(reportType == 'Center List'){
// console.log("center list");
window.location.href = $host_url+"getCenterList&univcode="+univcode+"°grp="+deggrp+"&val="+reportType;
}
if(reportType == 'Center List With Tagged Colleges'){
// console.log("CLWT list");
window.location.href = $host_url+"getCntWiseColgList&univcode="+univcode+"°grp="+deggrp+"&val="+reportType;
}
}
|