Commit 46fc9ebb by Jansa Jose

payment booking

parent 0209568a
...@@ -33,7 +33,7 @@ class ManageFaqs extends CI_Controller { ...@@ -33,7 +33,7 @@ class ManageFaqs extends CI_Controller {
} }
function faq_view(){ function faq_view(){
$template['page'] = "ManageFaqs/ViewFaqs"; $template['page'] = "ManageFaqs/viewFaqs";
$template['page_title'] = "Manage Faq Page"; $template['page_title'] = "Manage Faq Page";
$template['data'] = $this->Faq_model->get_all_faqs(); $template['data'] = $this->Faq_model->get_all_faqs();
$this->load->view('template', $template); $this->load->view('template', $template);
...@@ -89,7 +89,7 @@ class ManageFaqs extends CI_Controller { ...@@ -89,7 +89,7 @@ class ManageFaqs extends CI_Controller {
} }
function faq_view_doctor(){ function faq_view_doctor(){
$template['page'] = "ManageFaqsDoctor/ViewFaqs"; $template['page'] = "ManageFaqsDoctor/viewFaqs";
$template['page_title'] = "Manage Faq Page"; $template['page_title'] = "Manage Faq Page";
$template['data'] = $this->Faq_model->get_all_faqs_doctor(); $template['data'] = $this->Faq_model->get_all_faqs_doctor();
$this->load->view('template', $template); $this->load->view('template', $template);
......
...@@ -6889,7 +6889,7 @@ print_r(date('H:i',$ms));exit();*/ ...@@ -6889,7 +6889,7 @@ print_r(date('H:i',$ms));exit();*/
$text_pat = 'Your appointment was scheduled in the system, on '.date('d.m.Y', $booking_details['time_start']).' at '.date('H:i a', $booking_details['time_start']).', doctor '.$doctor_data['dr_name']; $text_pat = 'Your appointment was scheduled in the system, on '.date('d.m.Y', $booking_details['time_start']).' at '.date('H:i a', $booking_details['time_start']).', doctor '.$doctor_data['dr_name'];
$notification_pat = array('patient_id' => $booking_details['patient_id'], 'type' => 0, 'message' => $text_pat, 'read_status' => 0, 'time' => strtotime($nowin_server), 'booking_id' => $_POST['booking_id']); $notification_pat = array('patient_id' => $booking_details['patient_id'], 'type' => 0, 'message' => $text_pat, 'read_status' => 0, 'time' => strtotime($nowin_server), 'booking_id' => $data['booking_id']);
$patient_insert_id = $this->Webservice_model->insert_notification_patient($notification_pat); $patient_insert_id = $this->Webservice_model->insert_notification_patient($notification_pat);
...@@ -6897,7 +6897,7 @@ print_r(date('H:i',$ms));exit();*/ ...@@ -6897,7 +6897,7 @@ print_r(date('H:i',$ms));exit();*/
if (!empty($fcm_user['fcm_token'])) { if (!empty($fcm_user['fcm_token'])) {
$pat_push_obj['id'] = $patient_insert_id; $pat_push_obj['id'] = $patient_insert_id;
$pat_push_obj['type'] = "Consultation Confirmation"; $pat_push_obj['type'] = "Consultation Confirmation";
$pat_push_obj['booking_id'] = $_POST['booking_id']; $pat_push_obj['booking_id'] = $data['booking_id'];
$pat_push_obj['booking_date'] = $booking_details['date']; $pat_push_obj['booking_date'] = $booking_details['date'];
$pat_push_obj['doctor_id'] = $booking_details['doctor_id']; $pat_push_obj['doctor_id'] = $booking_details['doctor_id'];
$pat_push_obj['doctor_name'] = $doctor_data['dr_name']; $pat_push_obj['doctor_name'] = $doctor_data['dr_name'];
...@@ -6911,7 +6911,7 @@ print_r(date('H:i',$ms));exit();*/ ...@@ -6911,7 +6911,7 @@ print_r(date('H:i',$ms));exit();*/
} }
/*------------------------------------------------*/ /*------------------------------------------------*/
} }
$result = $this->Webservice_model->set_payment_status($_POST['booking_id']); $result = $this->Webservice_model->set_payment_status($data['booking_id']);
$res = array('status' => 'success', 'payment_status' => '1', 'message' => 'payment success', 'booking_date' => date('d/m/Y', $check_markbooking['booking_date']), 'booking_slot' => $check_markbooking['booking_slot']); $res = array('status' => 'success', 'payment_status' => '1', 'message' => 'payment success', 'booking_date' => date('d/m/Y', $check_markbooking['booking_date']), 'booking_slot' => $check_markbooking['booking_slot']);
......
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