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


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

var totallength = ''

function Callupdateexamcnt()
{
    $("#page_main_div").load('html_modules/updateexamcnt.html',function()
	{

		document.getElementById('display_module_name').innerHTML = 'Update I.A Exam Count';
		document.getElementById('module_name_for_save').value = 'Update Exam Cnt';
		getDefaultHeadFooterLinks('Update Exam Cnt'); 
		$('#fee_details').hide();
	}); 
		
}
 
function getexamcntpopup()
{
	$.ajax({
		type: "POST",
		url: $host_url+"getexamcntInformation",
		success: getexamcntInformationResponce
	});
}
 
function getexamcntInformationResponce(responce)
{
	responce = eval('(' + responce + ')');
	document.getElementById("candidate_list_examno").options.length = 0;
	document.getElementById("candidate_list_degree").options.length = 0;
	
	var FEXAMNO =responce.data['FEXAMNO'];
	var FDEGREE =responce.data['FDEGREE'];
	
	$op = new Option();
	$op.id=0;//specifying the id  for options
	//document.getElementById("candidate_list_category").options.add($op);

	
	for($i=0;$i < FEXAMNO.length;$i++)                                  
	{   	   
		$op = new Option(FEXAMNO[$i]['value'], FEXAMNO[$i]['internal_code']);
		$op.id=FEXAMNO[$i]['internal_code'];//specifying the id  for options
		document.getElementById("candidate_list_examno").options.add($op);
	}
	
	for($i=0;$i < FDEGREE.length;$i++)                                  
	{   	   
		$op = new Option(FDEGREE[$i]['value'], FDEGREE[$i]['internal_code']);
		$op.id=FDEGREE[$i]['internal_code'];//specifying the id  for options
		document.getElementById("candidate_list_degree").options.add($op);
	}
	
}
 
function displayexamcnt()
{
	var examno = document.getElementById("candidate_list_examno").value;
	var degree = document.getElementById("candidate_list_degree").value;
	
	var datastring = "&examno="+examno+"&degree="+degree;
	$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
		$.ajax({
		type: "POST",
		url: $host_url+"displayexamcnt",
		data:datastring,
		success:displayexamcntSuccess
	}); 
	
}
 
function displayexamcntSuccess(responce)
{
	$('#fee_details').show();
	responce = eval('(' + responce + ')'); 
	$.unblockUI();
	$("#fee_details").load('html_modules/examcntdetails.html',function()
	{
		totallength = responce.data.totallength;
		$('#fee_indet_table').append(responce.data.details);
	});
	 
}
 
function Saveexamcntinformation()
{
	
	var examno = document.getElementById("candidate_list_examno").value;
	var degree = document.getElementById("candidate_list_degree").value;


	var chkCnt = 0;
	var j =0;
	var subcode = new Array();
	var subcnt = new Array();
	
	var inputFileds = document.getElementsByTagName('input');

	for (var counter=0; counter < inputFileds.length; counter++) 
	{       
		if(inputFileds[counter].type.toUpperCase()=='TEXT'  && inputFileds[counter].name == "rowid"  )
		{   
			subcode[j]=encodeURIComponent($("#subcode"+chkCnt).val());
			subcnt[j]=encodeURIComponent($("#subcnt"+chkCnt).val());
			chkCnt++;
			j++;
					
		}
	}

	//$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
	var datastring = "&subcode="+subcode+"&subcnt="+subcnt+"&examno="+examno+"&degree="+degree;

	$.ajax({
	type: "POST",
	url: $host_url+"Saveexamcntinformation",
	data:datastring,
	success:Saveexamcntinformationresponse
	});  


}
 
function Saveexamcntinformationresponse(responce)
{
 responce = eval('(' + responce + ')'); 
 alert(responce.data);
 displayexamcnt();
 
}

function to_upperx(id)
{	
	var x = document.getElementById(id).value;
	document.getElementById(id).value = x.toUpperCase();
}