Current File : /home/inlingua/public_html/noida/icentex_noida/evaluation/php/fw_feedback_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('fw_feedback');
		
		if(isset($_POST['submit']) && $_POST['submit']=='Find')
		{
		   if($_POST['start_date'] !='' && $_POST['end_date'] !='')
			{
			    $Where .="and add_date between '".$_POST['start_date']."' and '".$_POST['end_date']."' ";	
			}
			if(isset($_POST['course_id']) && $_POST['course_id'] !='')
			{
			    $Where .="and  course_id = '".$_POST['course_id']."' ";	
			}
			if(isset($_POST['instructor_name']) && $_POST['instructor_name'] !='')
			{
			    $Where .="and  instructor_name like  '%".$_POST['instructor_name']."%' ";	
			}
		    
		}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();


		
?>