Commit 7c6365c1 by Jansa Jose

Notification Paginatio

parent 4e92f47b
......@@ -5171,7 +5171,7 @@ print_r(date('H:i',$ms));exit();*/
$authtoken = $this->Webservice_model->get_doctorid_frm_authtoken($headers['Auth']);
if(isset($_GET['page']) && strlen(trim($_GET['page']," ")) > 0 ) {
$currentpage = (int)$_GET['page'];
$currentpage = $currentpage==0 ? $currentpage : $currentpage-1;
//$currentpage = $currentpage==0 ? $currentpage : $currentpage-1;
$start = $currentpage * $per_page;
$page_no = $_GET['page'];
}
......
......@@ -3246,7 +3246,7 @@ class Webservice_model extends CI_Model {
$this->db->limit($per_page,$start);
//}
$result = $this->db->get_where('tbl_doctor_notifications',array('doctor_id'=>$doctorid))->result();
echo $this->db->last_query();exit();
//echo $this->db->last_query();exit();
if(count($result) > 0){
return $result;
}else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment