Current File : /home/inlingua/www/icentex/evaluation/php/course_questionaire_list_OLD_DATA_23_8_19.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('end_of_course');
		//$QueryObj->Where="where 1";
		if(isset($_POST['submit']) && $_POST['submit']=='Find')
		{
			//echo '<pre>'; print_r($_POST);
			
		   if($_POST['start_date'] !='' && $_POST['end_date'] !='')
			{
			   $Where .="and  add_date between '".$_POST['start_date']."' and '".$_POST['end_date']."' ";	
			}
		  if(isset($_POST['instructor'])  && $_POST['instructor'] !='')
			{
			  $Where .="and instructor Like  '%".$_POST['instructor']."%' ";	
			}
        if(isset($_POST['name_of_course'])  && $_POST['name_of_course'] !='')
			{
			   $Where .="and name_of_course =  '".$_POST['name_of_course']."'  ";	
			}			
		}else {
		$QueryObj->AllowPaging=true;
		$QueryObj->PageNo=isset($_GET['p'])?$_GET['p']:1;
		$QueryObj->PageSize=25; 	
		$QueryObj->Where=" where id !='' order by id desc";	
			
		}
		$QueryObj->Where=" where id !='' $Where order by id desc";	
		$QueryObj->DisplayAll();
		$count_project = $QueryObj->GetNumRows();


		
?>