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


Current Path : /var/www/html/gcg/js/
Upload File :
Current File : /var/www/html/gcg/js/apporder.js

function Callapporder()
{
    $("#page_main_div").load('html_modules/apporder.html',function()
	{
		document.getElementById('display_module_name').innerHTML = 'Appointment order';
		document.getElementById('module_name_for_save').value = 'Appointment order';
		getDefaultHeadFooterLinks('Appointment order'); //module name field 
		$.ajax({
				type: "POST",
				url: $host_url+"AssignTeachDropDownMenus",
				data:"id=",
				success: function AssignTeachDropDownMenusSuccess(responce)
				{
					responce = eval('(' + responce + ')');
					var dept = responce.data['dept'];
					for($i=0;$i < dept.length;$i++)                                  
					{      
						$op = new Option(dept[$i]['value'], dept[$i]['code']);
						$op.id=dept[$i]['code'];
						document.getElementById('department').options.add($op);
					}
				}
				});
		
	}); 		
}

function getsubjectdet(deptCode)
{
	$.ajax({
		type: "POST",
		url: $host_url+"DepartmentSubjectDropdown",
		data:"deptCode="+deptCode,
		success: function DepartmentSubjectDropdownSuccess(responce)
		{
			responce = eval('(' + responce + ')');
			var { deptSubj } = responce.data;
			document.getElementById('subject').options.length = 0;
			$op = new Option("None", "0");$op.id="0";
			
			document.getElementById('subject').options.add($op);
			for($i=0;$i < deptSubj.length;$i++)                                  
			{            
				$op = new Option(deptSubj[$i]['value'], deptSubj[$i]['code']);
				$op.id=deptSubj[$i]['code'];
				document.getElementById('subject').options.add($op);
			}
		}
	});
}