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 : 18.222.118.236


Current Path : /var/www/html/gach/js/
Upload File :
Current File : /var/www/html/gach/js/attshort.js

function Callphotoreport()
{ 
	$("#page_main_div").load('html_modules/attshort.html',function()
	{	
		document.getElementById('display_module_name').innerHTML = 'Attendace Shortage';
		document.getElementById('module_name_for_save').value = 'Attendace Shortage';	 	
		getDefaultHeadFooterLinks("Attendace Shortage");
	}
	);
}

function downloadAllStudentPhotos()
{	
	if(trim($('#degree_from').val()) =='')
	{
		alert("Enter College From");		
		$("#college_from").focus();
		return;
	}
	
	if(trim($('#exam_from').val()) == '')
	{
		alert("Enter Degree From");		
		$("#degree_from").focus();
		return;
	}
	
	var datastring = "&exam_from="+$('#exam_from').val()+"&exam_to="+$('#exam_to').val()+"&degree_from="+$('#degree_from').val()+"&degree_to="+$('#degree_to').val();
	//alert(datastring);
		$.ajax({
		type: "POST",
		url: $host_url+"updateattshort",
		data:datastring,
		success:updateattshortSuccess
	});  
	
	//window.location.href = $host_url+"downloadAllStudentPhotos.demo&college_from="+$('#college_from').val()+"&college_to="+$('#college_to').val()+"&degree_from="+$('#degree_from').val()+"&degree_to="+$('#degree_to').val(); 

}

function updateattshortSuccess(responce)
{
	responce = eval('(' + responce + ')'); 
	if(responce.error_code == -1) 
	{
		alert('No details found for given data');
		return false;
	}
	else
		window.location.href = $host_url+"downloadAllStudentPhotosreport.demo&college_from="+$('#college_from').val()+"&college_to="+$('#college_to').val()+"&degree_from="+$('#degree_from').val()+"&degree_to="+$('#degree_to').val(); 	
}