0xV3NOMx
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.149.24.70


Current Path : /var/www/html/univadmin/Reports/
Upload File :
Current File : /var/www/html/univadmin/Reports/reports.js

var $host_url="http://"+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+reportType+"&deggrp="+deggrp+"&univcode="+univcode;
    }
    if(reportType == 'Center List'){
        // console.log("center list");
        window.location.href = $host_url+"getCenterList&univcode="+univcode+"&deggrp="+deggrp+"&val="+reportType;
    }
    if(reportType == 'Center List With Tagged Colleges'){
        // console.log("CLWT list");
        window.location.href = $host_url+"getCntWiseColgList&univcode="+univcode+"&deggrp="+deggrp+"&val="+reportType;
    }
    
}