Commit 4a10ed1b by Jansa Jose

cancel

parent e3668e1f
...@@ -2507,13 +2507,12 @@ class Webservice extends CI_Controller { ...@@ -2507,13 +2507,12 @@ class Webservice extends CI_Controller {
$nextday = $value['book_date']; $nextday = $value['book_date'];
$next_day_consult = $this->Webservice_model->wait_list_data($book_data,$nextday,$inserted_id); $next_day_consult = $this->Webservice_model->wait_list_data($book_data,$nextday,$inserted_id);
if(count($next_day_consult) > 0){ if(!empty($next_day_consult) && count($next_day_consult) > 0){
$fcm_user = $this->db->get_where('tbl_authtoken',array('userid'=>$next_day_consult[0]['patient_id']))->row(); $fcm_user = $this->db->get_where('tbl_authtoken',array('userid'=>$next_day_consult[0]['patient_id']))->row();
$doctr_data = $this->db->get_where('tbl_doctors',array('id'=>$next_day_consult[0]['doctor_id']))->row_array(); $doctr_data = $this->db->get_where('tbl_doctors',array('id'=>$next_day_consult[0]['doctor_id']))->row_array();
$special = $this->db->get_where('tbl_specialization',array('id'=>$doctr_data['specialization']))->row(); $special = $this->db->get_where('tbl_specialization',array('id'=>$doctr_data['specialization']))->row();
$conslt_time = date('Y-m-d h:i:s'); $conslt_time = date('Y-m-d h:i:s');
print_r($doctr_data);echo"<br>";
print_r($special);exit();
$msg3 = "Your Wait Listed Appointment on ".date('d.m.Y h:i a',$next_day_consult[0]['time_start'])." can be changed to ".date('d.m.Y h:i a',$booked_data['time_start'])." as the Time Slot is Available Now. Would you like to change the Appointment on Available Slot ?"; $msg3 = "Your Wait Listed Appointment on ".date('d.m.Y h:i a',$next_day_consult[0]['time_start'])." can be changed to ".date('d.m.Y h:i a',$booked_data['time_start'])." as the Time Slot is Available Now. Would you like to change the Appointment on Available Slot ?";
$this->db->insert('tbl_patient_notification',array('patient_id'=>$next_day_consult[0]['patient_id'],'type'=>'4','message'=>$msg3,'time'=>strtotime($conslt_time),'booking_id'=>$next_day_consult[0]['id'],'read_status'=>'0','free_booking_id'=>$value['free_booking_id'])); $this->db->insert('tbl_patient_notification',array('patient_id'=>$next_day_consult[0]['patient_id'],'type'=>'4','message'=>$msg3,'time'=>strtotime($conslt_time),'booking_id'=>$next_day_consult[0]['id'],'read_status'=>'0','free_booking_id'=>$value['free_booking_id']));
......
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