Current File : /home/inlingua/www/icentex/evaluation/php/level_assessment_list.php
<?php require_once("include/config/config.php");
include_functions(array('url', 'database','input','paging','date','email','file_handling','http','login','xml','image_manipulation', 'admin'));
$function=array('url', 'database','input');
include_functions($function);

		$QueryObj = new query('level_assessment');
		
		if(isset($_POST['submit']) && $_POST['submit']=='Find')
		{
		   if($_POST['start_date'] !='' && $_POST['end_date'] !='' && $_POST['center'] !='center')
			{
			     $QueryObj->Where="where add_date between '".$_POST['start_date']."' and '".$_POST['end_date']."' and center='".$_POST['center']."' order by id desc";	
			}
		    else if($_POST['start_date'] !='' && $_POST['end_date'] !='' && $_POST['center']=='center')
			{
			    $QueryObj->Where="where add_date between '".$_POST['start_date']."' and '".$_POST['end_date']."' order by id desc";	
			}	
			else if($_POST['start_date'] =='' && $_POST['end_date'] =='' && $_POST['center']!='center')
			{
			    $QueryObj->Where="where center='".$_POST['center']."' order by id desc";	
			}
		}
		else {
		 $QueryObj->AllowPaging=true;
		$QueryObj->PageNo=isset($_GET['p'])?$_GET['p']:1;
		$QueryObj->PageSize=25; 	
		 $QueryObj->Where=" where name_of_student !='' order by id desc";	
			
		}
		$QueryObj->DisplayAll();
		$count_project = $QueryObj->GetNumRows();


		
?>