Commit 62d235f5 by Jansa Jose

dr profile

parent db6638f2
......@@ -2851,8 +2851,8 @@ class Webservice_model extends CI_Model {
$valueday = $this->get_dayname($value_day->id);
foreach($decode_time as $db_k => $db_v) {
if(($valueday == $db_v['day']) && (($data['clinic_id'] != $value['clinic_id']))){
$starttime = date('h:i',$value_day->start_time);
$endtime = date('h:i',$value_day->end_time);
$starttime = date('H:i',$value_day->start_time);
$endtime = date('H:i',$value_day->end_time);
if((strtotime($this->string->default_date.$db_v['time']['start']) <= strtotime($this->string->default_date.$starttime) && strtotime($this->string->default_date.$starttime) <= strtotime($this->string->default_date.$db_v['time']['end'])) || (strtotime($this->string->default_date.$db_v['time']['start']) <= strtotime($this->string->default_date.$endtime) && strtotime($this->string->default_date.$endtime) <= strtotime($this->string->default_date.$db_v['time']['end'])) || ( strtotime($this->string->default_date.$starttime) <= strtotime($this->string->default_date.$db_v['time']['start']) && strtotime($this->string->default_date.$db_v['time']['start']) <= strtotime($this->string->default_date.$endtime) ) || (strtotime($this->string->default_date.$starttime) <= strtotime($this->string->default_date.$db_v['time']['end']) && strtotime($this->string->default_date.$db_v['time']['end']) <= strtotime($this->string->default_date.$endtime))){
$flag = 1;
$get_fullname_day = $this->get_fulldayname($valueday);
......
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