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.142.197.111


Current Path : /proc/thread-self/root/var/www/html/gcw/js/
Upload File :
Current File : //proc/thread-self/root/var/www/html/gcw/js/downloadStudentPhotos.js

function CalldownloadStudentPhotos()
{ 
	$("#page_main_div").load('html_modules/download_photo.html',function()
	{	
		document.getElementById('display_module_name').innerHTML = 'Download Photo';
		document.getElementById('module_name_for_save').value = 'Download Photo';	 	
		clearCalldownloadStudentPhotos();
		getDefaultHeadFooterLinks("Download Photo");
	}
	);
}

function clearCalldownloadStudentPhotos()
{
	$("#degree_code").val('');
	$("#degree_code").focus();
}

function downloadAllStudentPhotos()
{	
	if(trim($('#college_from').val()) =='')
	{
		alert("Enter College From");		
		$("#college_from").focus();
		return;
	}
	
	if(trim($('#degree_from').val()) == '')
	{
		alert("Enter Degree From");		
		$("#degree_from").focus();
		return;
	}
	
	var datastring = "&college_from="+$('#college_from').val()+"&college_to="+$('#college_to').val()+"&degree_from="+$('#degree_from').val()+"&degree_to="+$('#degree_to').val();
	
		$.ajax({
		type: "POST",
		url: $host_url+"checkphoto",
		data:datastring,
		success:checkphotoSuccess
	}); 
	
	//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 checkphotoSuccess(responce)
{
	responce = eval('(' + responce + ')'); 
	if(responce.error_code == -1) 
	{
		alert('No details found for given data');
		return false;
	}
	else
		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(); 	
}