Commit 7c6794db by Jansa Jose

dr profile

parent 88cb09fe
......@@ -993,7 +993,7 @@ class Webservice extends CI_Controller {
"latitude" => $result['data']['location_lattitude'],
"longitude" => $result['data']['location_longitude'],
"about" => $result['data']['about'],
"address" => $result['data']['street_address'].','.$result['data']['locality'].','.$result['data']['number'],
"address" => $result['data']['location_name'].','.$result['data']['location_locality'].','.$result['data']['location_number'],
"phone" => $new,
"specialization" => explode(',',$result['data']['sub_name']),
......
......@@ -1074,7 +1074,7 @@ CASE when tbl_registration.gender='0' then 'MALE' when tbl_registration.gender='
function get_doctor_profile($data){
$this->db->select("tbl_doctors.*,CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'FEMALE' else 'OTHERS' end as pt_gender,tbl_specialization.specialization_name,tbl_specialization.sub_name,case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.street_address else tbl_doctors.street_address end as location_name,case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.location_lattitude else tbl_doctors.default_latitude end as location_lattitude,case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.location_longitude else tbl_doctors.default_longitude end as location_longitude,COUNT(DISTINCT(tbl_review.review_id)) as reviewcount,GROUP_CONCAT(DISTINCT(tbl_doctors_photos.photo_url) SEPARATOR ',') as photos");
$this->db->select("tbl_doctors.*,CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'FEMALE' else 'OTHERS' end as pt_gender,tbl_specialization.specialization_name,tbl_specialization.sub_name,case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.street_address else tbl_doctors.street_address end as location_name,case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.locality else tbl_doctors.locality end as location_locality,case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.number else tbl_doctors.number end as location_number,case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.location_lattitude else tbl_doctors.default_latitude end as location_lattitude,case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.location_longitude else tbl_doctors.default_longitude end as location_longitude,COUNT(DISTINCT(tbl_review.review_id)) as reviewcount,GROUP_CONCAT(DISTINCT(tbl_doctors_photos.photo_url) SEPARATOR ',') as photos");
$this->db->join('tbl_clinic_doctors', 'tbl_clinic_doctors.doctor_id = tbl_doctors.id','INNER');
$this->db->join('tbl_clinic', 'tbl_clinic.id = tbl_clinic_doctors.clinic_id','INNER');
$this->db->join('tbl_doctors_photos', 'tbl_doctors_photos.doctor_id = tbl_doctors.id','LEFT');
......
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