Commit 996e9604 by Jansa Jose

available dates

parent 06653b7d
......@@ -1835,7 +1835,7 @@ class Webservice extends CI_Controller {
}else{
$db_day_array[] = [];
}
$getmonth = $this->get_month($data['month']);
$getmonth = $this->Webservice_model->get_month($data['month']);
$time = strtotime($getmonth. $data['year']);
$search_form = date('Y-m-01',$time);
......@@ -6754,11 +6754,6 @@ class Webservice extends CI_Controller {
print json_encode($res);
}
Public function get_month($day){
if($day == '1'){$dayid = 'January';}elseif ($day == '2') {$dayid = 'February';}elseif ($day == '3') {$dayid = 'March';}elseif ($day == '4') {$dayid = 'April';}elseif ($day == '5') {$dayid = 'May';}elseif ($day == '6') {$dayid = 'June';}elseif ($day == '7') {$dayid = 'July';}elseif ($day == '8') {$dayid = 'August';}elseif ($day == '9') {$dayid = 'September';}elseif ($day == '10') {$dayid = 'October';}elseif ($day == '11') {$dayid = 'November';}elseif ($day == '12') {$dayid = 'December';}
return $dayid;
}
public function check_wait_listed(){
header('Content-type: application/json');
......
......@@ -3468,6 +3468,11 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
return $result;
}
Public function get_month($day){
if($day == '1'){$dayid = 'January';}elseif ($day == '2') {$dayid = 'February';}elseif ($day == '3') {$dayid = 'March';}elseif ($day == '4') {$dayid = 'April';}elseif ($day == '5') {$dayid = 'May';}elseif ($day == '6') {$dayid = 'June';}elseif ($day == '7') {$dayid = 'July';}elseif ($day == '8') {$dayid = 'August';}elseif ($day == '9') {$dayid = 'September';}elseif ($day == '10') {$dayid = 'October';}elseif ($day == '11') {$dayid = 'November';}elseif ($day == '12') {$dayid = 'December';}
return $dayid;
}
public function get_doctor_consultation_configuration($doctor_id){
$this->db->select('consultation_duration,price as consultation_price,domiciliary_status,accept_return,return_timeperiod as return_consultation_time_period');
......
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