Current File : /home/inlingua/public_html/icentex/evaluation/php/course_questionaire_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('end_of_course');
if(isset($_POST['submit']) && $_POST['submit']=='Find')
{
if(isset($_POST['course_id']) && $_POST['course_id'] !='')
{
//$course_id = substr($_POST['course_id'], 2);
$course_id = preg_replace("/[^0-9]/", "", $_POST['course_id'] );
$QueryObj->Where="where course_id like '%".$course_id."' ";
}
if(isset($_POST['course_id']) && $_POST['course_id'] =='')
{
$QueryObj->Where=" where id !='0' order by id desc";
}
}else {
$QueryObj->AllowPaging=true;
$QueryObj->PageNo=isset($_GET['p'])?$_GET['p']:1;
$QueryObj->PageSize=25;
$QueryObj->Where=" where id !='0' order by id desc";
}
$QueryObj->DisplayAll();
$count_project = $QueryObj->GetNumRows();
?>