Commit 02e2b146 by Jansa Jose

dr profile

parent 60280398
......@@ -96,6 +96,25 @@ public function doctor_search($post_data)
public function get_single_doctor_clinic($dctr_id,$clinic_id)
{
// $this->db->select("tbl_doctors.id as doctorid,
// tbl_doctors.name as dr_name,
// tbl_doctors.profile_pic as dr_pic,
// tbl_doctors.email as dr_email,
// tbl_doctors.dob as dr_dob,
// tbl_doctors.about as dr_bio,
// tbl_doctors.price as dr_price,
// tbl_specialization.specialization_name AS dr_specialization,
// tbl_clinic.id AS clinic_id,
// tbl_clinic.name AS clinic_name,
// tbl_clinic.street_address AS clinic_street_address,
// tbl_clinic.locality AS clinic_locality,
// tbl_clinic.cep clinic_cep,
// tbl_clinic.number AS clinic_number,
// tbl_clinic.location_lattitude AS clinic_lat,
// tbl_clinic.location_longitude AS clinic_lng
// ");
$this->db->select("tbl_doctors.id as doctorid,
tbl_doctors.name as dr_name,
tbl_doctors.profile_pic as dr_pic,
......@@ -106,12 +125,13 @@ public function get_single_doctor_clinic($dctr_id,$clinic_id)
tbl_specialization.specialization_name AS dr_specialization,
tbl_clinic.id AS clinic_id,
tbl_clinic.name AS clinic_name,
tbl_clinic.street_address AS clinic_street_address,
tbl_clinic.locality AS clinic_locality,
tbl_clinic.cep clinic_cep,
tbl_clinic.number AS clinic_number,
tbl_clinic.location_lattitude AS clinic_lat,
tbl_clinic.location_longitude AS clinic_lng
case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.street_address else tbl_doctors.street_address end AS clinic_street_address,
case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.cep else tbl_doctors.cep end AS clinic_cep,
case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.locality else tbl_doctors.locality end AS clinic_locality,
case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.number else tbl_doctors.number end AS clinic_number,
case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.location_lattitude else tbl_doctors.default_latitude end AS clinic_lat,
case when tbl_clinic_doctors.clinic_id != '0' then tbl_clinic.location_longitude else tbl_doctors.default_longitude end AS clinic_lng
");
$this->db->from('tbl_doctors');
......
......@@ -42,7 +42,7 @@
<div class="ip_profile_bio">
<h6 class="uppercase"><?php load_language('biography');?></h6>
<p><?php echo $doctor_data['dr_bio'];?></p>
<p><?php echo encrypt_data($doctor_data['dr_bio']);?></p>
</div>
<div class="ip_profile_others">
......
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