Commit 0791305a by Jansa Jose

doctor booking

parent ebb584e3
...@@ -1343,6 +1343,7 @@ CASE when tbl_registration.gender='0' then 'MALE' when tbl_registration.gender=' ...@@ -1343,6 +1343,7 @@ CASE when tbl_registration.gender='0' then 'MALE' when tbl_registration.gender='
} }
elseif($check->num_rows() == 1){ elseif($check->num_rows() == 1){
$check_data = $check->row_array(); $check_data = $check->row_array();
print_r($check_data);exit();
if($check_data['booking_status'] == 4){ if($check_data['booking_status'] == 4){
$date_def = date('Y-m-d',$data['date']); $date_def = date('Y-m-d',$data['date']);
$times = explode('-', $data['time']); $times = explode('-', $data['time']);
...@@ -4114,7 +4115,12 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F ...@@ -4114,7 +4115,12 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
public function check_wait_listed($data){ public function check_wait_listed($data){
$check = $this->db->get_where('tbl_booking',array('doctor_id'=>$data['doctor_id'],'clinic_id'=>$data['clinic_id'],'date'=>$data['date'],'time'=>$data['time'],'payment_status'=>'1')); $check = $this->db->get_where('tbl_booking',array('doctor_id'=>$data['doctor_id'],'clinic_id'=>$data['clinic_id'],'date'=>$data['date'],'time'=>$data['time'],'payment_status'=>'1'));
if($check->num_rows() > 0){ if($check->num_rows() > 0){
$is_booking = true; $check_data = $check->row_array();
if($check_data['booking_status'] == 4){
$is_booking = false;
}else{
$is_booking = true;
}
}else{ }else{
$is_booking = false; $is_booking = false;
} }
......
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