Commit d92b5e65 by Dixon Joseph

Merge branch 'jansa' into dixon

parents 815380d3 62854362
......@@ -91,7 +91,10 @@ class Webservice_model extends CI_Model {
if($this->db->insert('tbl_doctors', $data)){
$insertid = $this->db->insert_id();
$this->db->query("update tbl_doctors set dob = AES_ENCRYPT(".$data['dob'].",'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA')where id = ".$insertid);
$this->db->insert('tbl_clinic_doctors',array('doctor_id'=>$insertid,'clinic_id'=> 0));
$this->db->insert('tbl_consultation',array('doctor_id'=>$insertid,'clinic_id'=> 0,'date'=>'""','date_secondary'=>'""','active_schedule'=> 0));
$this->db->select('tbl_specialization.id as specialization_id,tbl_specialization.specialization_name,tbl_doctors.*');
$this->db->join('tbl_specialization','tbl_specialization.id = tbl_doctors. specialization');
$query = $this->db->get_where("tbl_doctors",array("tbl_doctors.id"=>$insertid));
......@@ -289,8 +292,8 @@ class Webservice_model extends CI_Model {
$data['username'] = $data['uid'];
$data['is_registration_completed'] = 1;
//$data['name'] = encrypt_data($data['name']);
$data['price'] = encrypt_data($data['price']);
$data['domiciliary_status'] = encrypt_data($data['domiciliary_status']);
//$data['price'] = encrypt_data($data['price']);
//$data['domiciliary_status'] = encrypt_data($data['domiciliary_status']);
$data['rg'] = encrypt_data($data['rg']);
$data['crm'] = encrypt_data($data['crm']);
$data['street_address'] = encrypt_data($data['street_address']);
......@@ -323,8 +326,8 @@ class Webservice_model extends CI_Model {
$query['about'] = decrypt_data($query['biodata']);
$query['gender'] = decrypt_data($query['gender']);
//$query['name'] = decrypt_data($query['name']);
$query['price'] = decrypt_data($query['price']);
$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
//$query['price'] = decrypt_data($query['price']);
//$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
$query['rg'] = decrypt_data($query['rg']);
$query['crm'] = decrypt_data($query['crm']);
$query['street_address'] = decrypt_data($query['street_address']);
......@@ -505,10 +508,10 @@ class Webservice_model extends CI_Model {
$this->db->where('id',$query_email['id']);
$querydate = $this->db->get('tbl_doctors')->row();
$query_email['dob'] = $query_date->dob_new;
$query_email['cep'] = decrypt_data($query_email['zip_code']);
$query_email['complement'] = decrypt_data($query_email['landmark']);
$query_email['about'] = decrypt_data($query_email['biodata']);
$query_email['dob'] = $querydate->dob_new;
$query_email['cep'] = decrypt_data($query_email['cep']);
$query_email['complement'] = decrypt_data($query_email['complement']);
$query_email['about'] = decrypt_data($query_email['about']);
$query_email['gender'] = decrypt_data($query_email['gender']);
//$query_email['name'] = decrypt_data($query_email['name']);
//$query_email['price'] = decrypt_data($query_email['price']);
......@@ -525,10 +528,10 @@ class Webservice_model extends CI_Model {
$this->db->where('id',$query['id']);
$querydate = $this->db->get('tbl_doctors')->row();
$query_email = $query;
$query_email['dob'] = $query_date->dob;
$query_email['cep'] = decrypt_data($query_email['zip_code']);
$query_email['complement'] = decrypt_data($query_email['landmark']);
$query_email['about'] = decrypt_data($query_email['biodata']);
$query_email['dob'] = $querydate->dob_new;
$query_email['cep'] = decrypt_data($query_email['cep']);
$query_email['complement'] = decrypt_data($query_email['complement']);
$query_email['about'] = decrypt_data($query_email['about']);
$query_email['gender'] = decrypt_data($query_email['gender']);
//$query_email['name'] = decrypt_data($query_email['name']);
//$query_email['price'] = decrypt_data($query_email['price']);
......@@ -679,8 +682,8 @@ class Webservice_model extends CI_Model {
$query['about'] = decrypt_data($query['biodata']);
$query['gender'] = decrypt_data($query['gender']);
//$query['name'] = decrypt_data($query['name']);
$query['price'] = decrypt_data($query['price']);
$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
//$query['price'] = decrypt_data($query['price']);
//$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
$query['rg'] = decrypt_data($query['rg']);
$query['crm'] = decrypt_data($query['crm']);
$query['street_address'] = decrypt_data($query['street_address']);
......@@ -714,8 +717,8 @@ class Webservice_model extends CI_Model {
$query['about'] = decrypt_data($query['biodata']);
$query['gender'] = decrypt_data($query['gender']);
//$query['name'] = decrypt_data($query['name']);
$query['price'] = decrypt_data($query['price']);
$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
//$query['price'] = decrypt_data($query['price']);
//$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
$query['rg'] = decrypt_data($query['rg']);
$query['crm'] = decrypt_data($query['crm']);
$query['street_address'] = decrypt_data($query['street_address']);
......@@ -767,9 +770,9 @@ class Webservice_model extends CI_Model {
$data['is_registration_completed'] = 0;
$data['name'] = encrypt_data($data['name']);
$data['about'] = encrypt_data($data['about']);
$data['price'] = encrypt_data($data['price']);
//$data['price'] = encrypt_data($data['price']);
$data['gender'] = encrypt_data($data['gender']);
$data['domiciliary_status'] = encrypt_data($data['domiciliary_status']);
//$data['domiciliary_status'] = encrypt_data($data['domiciliary_status']);
$data['rg'] = encrypt_data($data['rg']);
$data['crm'] = encrypt_data($data['crm']);
$data['cep'] = encrypt_data($data['cep']);
......@@ -1075,8 +1078,8 @@ class Webservice_model extends CI_Model {
$query['about'] = decrypt_data($query['biodata']);
$query['gender'] = decrypt_data($query['gender']);
//$query['name'] = decrypt_data($query['name']);
$query['price'] = decrypt_data($query['price']);
$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
//$query['price'] = decrypt_data($query['price']);
//$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
$query['rg'] = decrypt_data($query['rg']);
$query['crm'] = decrypt_data($query['crm']);
$query['street_address'] = decrypt_data($query['street_address']);
......@@ -1477,10 +1480,6 @@ class Webservice_model extends CI_Model {
//print_r($this->db->last_query());die();
if ($query->num_rows() > 0) {
$querys = $query->result_array();
foreach ($querys as $key => $value) {
$querys[$key]['domiciliary_status'] = decrypt_data($value['domiciliary_status']);
$querys[$key]['price'] = decrypt_data($value['price']);
}
//echo "<pre>";print_r($querys);exit();
if(isset($data['date']) && strlen($data['date'])){
$day = date('D',$data['date']);
......@@ -1724,9 +1723,9 @@ class Webservice_model extends CI_Model {
function register_doctor($data){
//$data['name'] = encrypt_data($data['name']);
$data['about'] = encrypt_data($data['about']);
$data['price'] = encrypt_data($data['price']);
//$data['price'] = encrypt_data($data['price']);
$data['gender'] = encrypt_data($data['gender']);
$data['domiciliary_status'] = encrypt_data($data['domiciliary_status']);
//$data['domiciliary_status'] = encrypt_data($data['domiciliary_status']);
$data['rg'] = encrypt_data($data['rg']);
$data['crm'] = encrypt_data($data['crm']);
$data['cep'] = encrypt_data($data['cep']);
......@@ -1746,9 +1745,9 @@ class Webservice_model extends CI_Model {
$query['dob'] = $query_date->dob;
//$query['name'] = decrypt_data($query['name']);
$query['about'] = decrypt_data($query['about']);
$query['price'] = decrypt_data($query['price']);
//$query['price'] = decrypt_data($query['price']);
$query['gender'] = decrypt_data($query['gender']);
$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
//$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
$query['rg'] = decrypt_data($query['rg']);
$query['crm'] = decrypt_data($query['crm']);
$query['cep'] = decrypt_data($query['cep']);
......@@ -2262,7 +2261,7 @@ class Webservice_model extends CI_Model {
$this->db->where('tbl_doctors.id',$value);
$res = $this->db->get()->result();
foreach ($res as $key => $values) {
$res[$key]->fee = decrypt_data($values->fee);
//$res[$key]->fee = decrypt_data($values->fee);
$new_array[] = $values;
}
$result = array("status"=>"success","data"=>$new_array);
......@@ -2497,7 +2496,7 @@ class Webservice_model extends CI_Model {
$result = $this->db->get('tbl_booking')->row_array();
//echo"<pre>";print_r($result);echo"</pre>";
if($result){
$result['consultation_fee'] = decrypt_data($result['consultation_fee']);
//$result['consultation_fee'] = decrypt_data($result['consultation_fee']);
$fee = $this->db->get('settings')->row();
$result['review'] = decrypt_data($result['patient_review']);
unset($result['patient_review']);
......@@ -2697,7 +2696,7 @@ class Webservice_model extends CI_Model {
}
//echo "<pre>";print_r($data);exit();
if($doc_query->num_rows() > 0){
$this->db->update('tbl_doctors',array('consultation_duration'=>$data['consultation_duration'],'price'=>encrypt_data($data['consultation_fee']),' domiciliary_status'=>encrypt_data($data['home_consultation_available']),'accept_return'=>$data['return_consultation_available'],'return_timeperiod'=>$data['timeperiod']),array('id'=>$doctor_id));
$this->db->update('tbl_doctors',array('consultation_duration'=>$data['consultation_duration'],'price'=>$data['consultation_fee'],' domiciliary_status'=>$data['home_consultation_available'],'accept_return'=>$data['return_consultation_available'],'return_timeperiod'=>$data['timeperiod']),array('id'=>$doctor_id));
$res = $this->db->get_where("tbl_doctors",array("id"=>$doctor_id))->row_array();
if($res['accept_return'] == '1'){
$res['accept_return'] = true;
......@@ -2705,13 +2704,13 @@ class Webservice_model extends CI_Model {
$res['accept_return'] = false;
}
if(decrypt_data($res['domiciliary_status']) == '1'){
if($res['domiciliary_status'] == '1'){
$res['domiciliary_status'] = true;
}else{
$res['domiciliary_status'] = false;
}
//echo $this->db->last_query();exit();
$return_array = array('status'=>'success','data'=>array('doctor_id'=>$doctor_id,'is_return_consultation_available'=>$res['accept_return'],'is_home_consultation_available'=>$res['domiciliary_status'],'consultation_price'=>decrypt_data($res['price']),'consultation_duration'=>$res['consultation_duration'],'return_consultation_time_period'=>$res['return_timeperiod']));
$return_array = array('status'=>'success','data'=>array('doctor_id'=>$doctor_id,'is_return_consultation_available'=>$res['accept_return'],'is_home_consultation_available'=>$res['domiciliary_status'],'consultation_price'=>$res['price'],'consultation_duration'=>$res['consultation_duration'],'return_consultation_time_period'=>$res['return_timeperiod']));
//print_r($return_array);exit();
}else{
......@@ -2789,7 +2788,7 @@ class Webservice_model extends CI_Model {
$accept_status = false;
}
$data = array('clinic_id'=>$clinic_id,'consultation_duration'=>$doc_res->consultation_duration,'consultation_price'=>decrypt_data($doc_res->price),'is_home_consultation_available'=>$home_status,'is_return_consultation_available'=>$accept_status,'return_consultation_time_period'=>$doc_res->return_timeperiod,'activated_schedule'=>$query->active_schedule,'primary_schedule'=>$primary,'secondary_schedule'=>$secondary,'vacations'=>$vacation);
$data = array('clinic_id'=>$clinic_id,'consultation_duration'=>$doc_res->consultation_duration,'consultation_price'=>$doc_res->price,'is_home_consultation_available'=>$home_status,'is_return_consultation_available'=>$accept_status,'return_consultation_time_period'=>$doc_res->return_timeperiod,'activated_schedule'=>$query->active_schedule,'primary_schedule'=>$primary,'secondary_schedule'=>$secondary,'vacations'=>$vacation);
$return_array = array('status'=>'success','data'=>$data);
}else{
$return_array = array('status'=>'failed','message'=>'No consultation for this doctor in this clinic');
......@@ -3095,7 +3094,7 @@ class Webservice_model extends CI_Model {
$this->db->join('tbl_doctors','tbl_booking.doctor_id = tbl_doctors.id');
$this->db->where('tbl_registration.id',$data['patient_id']);
$result = $this->db->get()->row();
$result->price = decrypt_data($result->price);
//$result->price = decrypt_data($result->price);
$settings = $this->db->get('settings')->row();
......@@ -3323,8 +3322,8 @@ class Webservice_model extends CI_Model {
$this->db->select('consultation_duration,price as consultation_price,domiciliary_status,accept_return,return_timeperiod as return_consultation_time_period');
$query = $this->db->get_where('tbl_doctors',array('id'=>$doctor_id))->row();
if($query){
$query->consultation_price = decrypt_data($query->consultation_price);
$query->domiciliary_status = decrypt_data($query->domiciliary_status);
//$query->consultation_price = decrypt_data($query->consultation_price);
//$query->domiciliary_status = decrypt_data($query->domiciliary_status);
if($query->accept_return == '0'){
$query->is_return_consultation_available = false;
}else{
......@@ -3813,7 +3812,7 @@ class Webservice_model extends CI_Model {
if(count($query) > 0 ){
foreach ($query as $key => $value) {
$query[$key]->patient_name = decrypt_data($value->patient_name);
if(decrypt_data($value->type) == '0'){
if($value->type == '0'){
$query[$key]->type = '0';
}else{
$query[$key]->type = '0';
......@@ -4079,7 +4078,7 @@ class Webservice_model extends CI_Model {
$data =$this->db->get()->row_array();
$data['dr_bio'] = decrypt_data($data['dr_bio']);
$data['dr_price'] = decrypt_data($data['dr_price']);
//$data['dr_price'] = decrypt_data($data['dr_price']);
$data['dr_gender'] = decrypt_data($data['dr_gender']);
$data['dr_neighbourhood'] = decrypt_data($data['dr_neighbourhood']);
$data['dr_rua'] = decrypt_data($data['dr_rua']);
......@@ -4099,7 +4098,7 @@ class Webservice_model extends CI_Model {
$query = $this->db->get()->row_array();
$query['about'] = decrypt_data($query['about']);
$query['price'] = decrypt_data($query['price']);
//$query['price'] = decrypt_data($query['price']);
$query['gender'] = decrypt_data($query['gender']);
$query['street_address'] = decrypt_data($query['street_address']);
$query['locality'] = decrypt_data($query['locality']);
......@@ -4108,7 +4107,7 @@ class Webservice_model extends CI_Model {
$query['rg'] = decrypt_data($query['rg']);
$query['crm'] = decrypt_data($query['crm']);
$query['cep'] = decrypt_data($query['cep']);
$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
//$query['domiciliary_status'] = decrypt_data($query['domiciliary_status']);
return $query;
}
......
......@@ -701,11 +701,11 @@ public function loadrecord()
if(!empty($record_data))
{
$record_data['diseases'] = json_decode($record_data['diseases']);
$record_data['prescribtions'] = json_decode($record_data['prescribtions']);
$record_data['exams'] = json_decode($record_data['exams']);
$record_data['budget'] = json_decode($record_data['budget']);
$record_data['letters'] = json_decode($record_data['letters']);
$record_data['diseases'] = json_decode(decrypt_data($record_data['diseases']));
$record_data['prescribtions'] = json_decode(decrypt_data($record_data['prescribtions']));
$record_data['exams'] = json_decode(decrypt_data($record_data['exams']));
$record_data['budget'] = json_decode(decrypt_data($record_data['budget']));
$record_data['letters'] = json_decode(decrypt_data($record_data['letters']));
}
$template['booking_details'] = $booking_details;
......@@ -1057,7 +1057,7 @@ public function save_medicalrecord_data()
$nowin_server_addoffset = date('Y-m-d H:i:s',strtotime('-'.$offset->hour.' hour -'.$offset->minute.' minutes',strtotime($nowin_server)));
}
$insert_array['patient_review'] = $_POST['review'];
$insert_array['patient_review'] = encrypt_data($_POST['review']);
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update)
......
......@@ -1506,7 +1506,7 @@ class Home extends CI_Controller {
$userdata = $this->session->userdata('UserData');
$_POST['msg'] = $this->encrypt->encode($_POST['msg']);
$_POST['msg'] = $_POST['msg'];
$this->Home_model->update_recent_chat($_POST);
$recent = $this->Home_model->get_recent_chat($userdata['id'],$userdata['type']);
......
......@@ -712,11 +712,11 @@ public function record()
$patient_data = $this->Patient_model->get_single_patient($booking_details['pat_id']);
$record_data['diseases'] = json_decode($record_data['diseases']);
$record_data['prescribtions'] = json_decode($record_data['prescribtions']);
$record_data['exams'] = json_decode($record_data['exams']);
$record_data['budget'] = json_decode($record_data['budget']);
$record_data['letters'] = json_decode($record_data['letters']);
$record_data['diseases'] = json_decode(decrypt_data($record_data['diseases']));
$record_data['prescribtions'] = json_decode(decrypt_data($record_data['prescribtions']));
$record_data['exams'] = json_decode(decrypt_data($record_data['exams']));
$record_data['budget'] = json_decode(decrypt_data($record_data['budget']));
$record_data['letters'] = json_decode(decrypt_data($record_data['letters']));
//print_r($record_data);die();
......
......@@ -34,10 +34,10 @@ class Printer extends CI_Controller {
$doctor_data = $this->Doctor_model->get_single_doctor($record_data['doctor_id']);
$booking_data = $this->Patient_model->get_Booking($record_data['booking_id']);
// /print_r($record_data);die();
$diseases = json_decode($record_data['diseases']);
$prescription = json_decode($record_data['prescribtions']);
$exams = json_decode($record_data['exams']);
$budget = json_decode($record_data['budget']);
$diseases = json_decode(decrypt_data($record_data['diseases']));
$prescription = json_decode(decrypt_data($record_data['prescribtions']));
$exams = json_decode(decrypt_data($record_data['exams']));
$budget = json_decode(decrypt_data($record_data['budget']));
//print_r($budget);die();
......@@ -59,7 +59,7 @@ class Printer extends CI_Controller {
<tbody>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Name</b></td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.$patient_data['pt_name'].'</td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.decrypt_data($patient_data['pt_name']).'</td>
</tr>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Vist Date</b></td>
......@@ -84,7 +84,7 @@ class Printer extends CI_Controller {
<tbody>
<tr>
<td style="padding:5px;font-size: 15px;padding-left: 0px;">
<p style="margin:0px;padding-top: 10px;"><b>'.$record_data['main_complaint'].'</b></p>
<p style="margin:0px;padding-top: 10px;"><b>'.decrypt_data($record_data['main_complaint']).'</b></p>
</td>
</tr>';
if(!empty($record_data['description']))
......@@ -92,7 +92,7 @@ class Printer extends CI_Controller {
$html = $html.'<tr>
<td style="padding:8px;padding-left: 0px;">
<h5 style="margin:0px;font-size: 14px;"><b>Description</b></h5>
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">'.$record_data['description'].'</p>
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">'.decrypt_data($record_data['description']).'</p>
</td>
</tr>';
}
......@@ -222,7 +222,7 @@ class Printer extends CI_Controller {
<td style="padding:8px;padding-left: 0px;">
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">
'.$record_data['letters'].'
'.decrypt_data($record_data['letters']).'
</p>
</td>
</tr>
......@@ -288,7 +288,7 @@ class Printer extends CI_Controller {
<tr>
<td style="padding:8px;padding-left: 0px;">
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">
'.$record_data['patient_review'].'
'.decrypt_data($record_data['patient_review']).'
</p>
</td>
</tr>
......@@ -331,7 +331,7 @@ class Printer extends CI_Controller {
$booking_data = $this->Patient_model->get_Booking($record_data['booking_id']);
// /print_r($record_data);die();
$prescription = json_decode($record_data['prescribtions']);
$prescription = json_decode(decrypt_data($record_data['prescribtions']));
// Set some content to print
$html = '
......@@ -349,7 +349,7 @@ class Printer extends CI_Controller {
<tbody>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Name</b></td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.$patient_data['pt_name'].'</td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.decrypt_data($patient_data['pt_name']).'</td>
</tr>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Vist Date</b></td>
......@@ -431,7 +431,7 @@ class Printer extends CI_Controller {
// /print_r($record_data);die();
$exams = json_decode($record_data['exams']);
$exams = json_decode(decrypt_data($record_data['exams']));
// Set some content to print
$html = '
......@@ -449,7 +449,7 @@ class Printer extends CI_Controller {
<tbody>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Name</b></td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.$patient_data['pt_name'].'</td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.decrypt_data($patient_data['pt_name']).'</td>
</tr>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Vist Date</b></td>
......@@ -522,7 +522,7 @@ class Printer extends CI_Controller {
$booking_data = $this->Patient_model->get_Booking($record_data['booking_id']);
// /print_r($record_data);die();
$budget = json_decode($record_data['budget']);
$budget = json_decode(decrypt_data($record_data['budget']));
// Set some content to print
$html = '
......@@ -540,7 +540,7 @@ class Printer extends CI_Controller {
<tbody>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Name</b></td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.$patient_data['pt_name'].'</td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.decrypt_data($patient_data['pt_name']).'</td>
</tr>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Vist Date</b></td>
......@@ -644,7 +644,7 @@ class Printer extends CI_Controller {
<tbody>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Name</b></td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.$patient_data['pt_name'].'</td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.decrypt_data($patient_data['pt_name']).'</td>
</tr>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Vist Date</b></td>
......@@ -679,7 +679,7 @@ class Printer extends CI_Controller {
<td style="padding:8px;padding-left: 0px;">
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">
'.$record_data['letters'].'
'.decrypt_data($record_data['letters']).'
</p>
</td>
</tr>
......
......@@ -34,10 +34,10 @@ class Sentmail extends CI_Controller {
$doctor_data = $this->Doctor_model->get_single_doctor($record_data['doctor_id']);
$booking_data = $this->Patient_model->get_Booking($record_data['booking_id']);
// /print_r($record_data);die();
$diseases = json_decode($record_data['diseases']);
$prescription = json_decode($record_data['prescribtions']);
$exams = json_decode($record_data['exams']);
$budget = json_decode($record_data['budget']);
$diseases = json_decode(decrypt_data($record_data['diseases']));
$prescription = json_decode(decrypt_data($record_data['prescribtions']));
$exams = json_decode(decrypt_data($record_data['exams']));
$budget = json_decode(decrypt_data($record_data['budget']));
//print_r($budget);die();
......@@ -59,7 +59,7 @@ class Sentmail extends CI_Controller {
<tbody>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Name</b></td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.$patient_data['pt_name'].'</td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.decrypt_data($patient_data['pt_name']).'</td>
</tr>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Vist Date</b></td>
......@@ -84,7 +84,7 @@ class Sentmail extends CI_Controller {
<tbody>
<tr>
<td style="padding:5px;font-size: 15px;padding-left: 0px;">
<p style="margin:0px;padding-top: 10px;"><b>'.$record_data['main_complaint'].'</b></p>
<p style="margin:0px;padding-top: 10px;"><b>'.decrypt_data($record_data['main_complaint']).'</b></p>
</td>
</tr>';
if(!empty($record_data['description']))
......@@ -92,7 +92,7 @@ class Sentmail extends CI_Controller {
$html = $html.'<tr>
<td style="padding:8px;padding-left: 0px;">
<h5 style="margin:0px;font-size: 14px;"><b>Description</b></h5>
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">'.$record_data['description'].'</p>
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">'.decrypt_data($record_data['description']).'</p>
</td>
</tr>';
}
......@@ -220,7 +220,7 @@ class Sentmail extends CI_Controller {
<tr>
<td style="padding:8px;padding-left: 0px;">
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">
'.$record_data['letters'].'
'.decrypt_data($record_data['letters']).'
</p>
</td>
</tr>
......@@ -285,7 +285,7 @@ class Sentmail extends CI_Controller {
<tr>
<td style="padding:8px;padding-left: 0px;">
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">
'.$record_data['patient_review'].'
'.decrypt_data($record_data['patient_review']).'
</p>
</td>
</tr>
......@@ -333,7 +333,7 @@ class Sentmail extends CI_Controller {
$booking_data = $this->Patient_model->get_Booking($record_data['booking_id']);
// /print_r($record_data);die();
$prescription = json_decode($record_data['prescribtions']);
$prescription = json_decode(decrypt_data($record_data['prescribtions']));
// Set some content to print
$html = '
......@@ -351,7 +351,7 @@ class Sentmail extends CI_Controller {
<tbody>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Name</b></td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.$patient_data['pt_name'].'</td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.decrypt_data($patient_data['pt_name']).'</td>
</tr>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Vist Date</b></td>
......@@ -444,7 +444,7 @@ class Sentmail extends CI_Controller {
// /print_r($record_data);die();
$exams = json_decode($record_data['exams']);
$exams = json_decode(decrypt_data($record_data['exams']));
// Set some content to print
$html = '
......@@ -462,7 +462,7 @@ class Sentmail extends CI_Controller {
<tbody>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Name</b></td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.$patient_data['pt_name'].'</td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.decrypt_data($patient_data['pt_name']).'</td>
</tr>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Vist Date</b></td>
......@@ -543,7 +543,7 @@ class Sentmail extends CI_Controller {
$booking_data = $this->Patient_model->get_Booking($record_data['booking_id']);
// /print_r($record_data);die();
$budget = json_decode($record_data['budget']);
$budget = json_decode(decrypt_data($record_data['budget']));
// Set some content to print
$html = '
......@@ -561,7 +561,7 @@ class Sentmail extends CI_Controller {
<tbody>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Name</b></td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.$patient_data['pt_name'].'</td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.decrypt_data($patient_data['pt_name']).'</td>
</tr>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Vist Date</b></td>
......@@ -671,7 +671,7 @@ class Sentmail extends CI_Controller {
<tbody>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Name</b></td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.$patient_data['pt_name'].'</td>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;">'.decrypt_data($patient_data['pt_name']).'</td>
</tr>
<tr>
<td style="border-bottom:1px solid #a8a8a8;padding:8px;font-size: 14px;padding-left: 0px;"><b>Vist Date</b></td>
......@@ -704,7 +704,7 @@ class Sentmail extends CI_Controller {
<td style="padding:8px;padding-left: 0px;">
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">
'.$record_data['letters'].'
'.decrypt_data($record_data['letters']).'
</p>
</td>
</tr>
......
......@@ -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');
......
......@@ -272,7 +272,7 @@
</div>
<div class="ip_profile_tab_name_detail">
<p><strong>
<?php if(!empty($record_data['patient_review'])) {echo $record_data['patient_review']; } ?>
<?php if(!empty($record_data['patient_review'])) {echo decrypt_data($record_data['patient_review']); } ?>
</strong></p>
</div>
<div class="clear"></div>
......
......@@ -84,7 +84,7 @@
<p class="ip_row_p"><?php load_language('date_of_birth');?></p>
<div class="ip_bank_detail_frame" id="edit-doctor">
<!-- <input class="ip_reg_form_input" type="text" form-control" placeholder=""> -->
<input name="dob" readonly class="ip_reg_form_input form-control reset-form-custom background_transparent" data-parsley-required="true">
<input name="dob" readonly class="ip_reg_form_input form-control reset-form-custom background_transparent" data-parsley-required="true" value="<?php echo $doctor_data['dr_dob']?>">
</div>
</div>
</div>
......
<?php if($this->session->userdata('UserData'))
{$userdata = $this->session->userdata('UserData');}
{
$userdata = $this->session->userdata('UserData');
}
//echo "<pre>";print_r($userdata);
if(auto_logout("user_time"))
{
$this->session->set_userdata('user_time', time());
......
......@@ -142,7 +142,7 @@
</li>
<li>
<div class="child1"><?php load_language('complement');?> :</div>
<div class="child2"><?php echo decrypt_data($patient_data['pt_complement'])?></div>
<div class="child2"><?php echo decrypt_data($patient_data['pt_complement']);?></div>
<div class="clear"></div>
</li>
......
......@@ -65,7 +65,7 @@
<div id="record" class="tab-pane fade in active">
<div class="ip_profile_tab_detail">
<?php if(!empty($record_data['description']))echo $record_data['description'];?>
<?php if(!empty($record_data['description']))echo decrypt_data($record_data['description']);?>
<br>
<div class="ip_prescription_div">
<ul>
......@@ -256,7 +256,7 @@
<img src="<?php echo base_url();echo $patient_data['pt_pic']?>">
</div>
<div class="ip_profile_tab_name">
<h3><?php echo $patient_data['pt_name']?></h3>
<h3><?php echo decrypt_data($patient_data['pt_name'])?></h3>
<!-- <form id="ip_user_rating_form">
<div id="ip_selected_rating" class="ip_selected_rating floatLeft">5.0</div>
<span class="ip_user_rating floatLeft">
......@@ -274,7 +274,7 @@
<input type="hidden" name="booking_id" value="<?php echo $booking_details['book_id'];?>">
<input type="hidden" name="section" value="review">
<div class="ip_bank_detail_frame heightAuto bg_white">
<textarea class="ip_bank_input" rows="4" data-parsley-required="" name="review" ><?php if(!empty($record_data['patient_review'])) {echo $record_data['patient_review']; } ?></textarea>
<textarea class="ip_bank_input" rows="4" data-parsley-required="" name="review" ><?php if(!empty($record_data['patient_review'])) {echo decrypt_data($record_data['patient_review']); } ?></textarea>
</div>
<br>
......
......@@ -33,7 +33,7 @@
</div>
<div class="ip_edit_row">
<div class="ip_bank_detail_frame">
<input class="ip_bank_input" disabled placeholder="<?php load_language('email');?>" value="<?php echo decrypt_data($patient_data['pt_email']);?>">
<input class="ip_bank_input" disabled placeholder="<?php load_language('email');?>" value="<?php echo $patient_data['pt_email'];?>">
</div>
</div>
<div class="ip_edit_row">
......@@ -57,7 +57,7 @@
<div class="col-md-6">
<p class="ip_row_p"><?php load_language('date_of_birth');?></p>
<div class="ip_bank_detail_frame" id="edit-patient">
<input name="dob" readonly class="ip_bank_input" placeholder="" data-parsley-required="true" >
<input name="dob" readonly class="ip_bank_input" placeholder="" data-parsley-required="true" value="<?php echo $patient_data['pt_dob'];?>">
</div>
</div>
<div class="col-md-6">
......
......@@ -35,14 +35,21 @@
<div class="ip_profile_details_listing">
<li><?php load_language('email');?>:<strong><?php echo $doctor_data['dr_email'];?></strong></li>
<!-- <li>Birthday:<strong><?php echo date('d F Y',$doctor_data["dr_dob"]);?></strong></li> -->
<li><?php load_language('clinic');?>:<strong><?php echo $doctor_data['clinic_name'];?>,<?php echo $doctor_data['clinic_street_address'];?> <?php echo $doctor_data['clinic_locality'];?></strong></li>
<li><?php load_language('clinic');?>:<strong><?php echo $doctor_data['clinic_name'];?>,
<?php if($doctor_data['clinic_name'] == 'Default'){ ?>
<?php echo decrypt_data($doctor_data['clinic_street_address']);?> <?php echo decrypt_data($doctor_data['clinic_locality']);?>
<?php }else{ ?>
<?php echo $doctor_data['clinic_street_address'];?> <?php echo $doctor_data['clinic_locality'];?>
<?php }?>
</strong></li>
<div class="clear"></div>
</div>
<hr>
<div class="ip_profile_bio">
<h6 class="uppercase"><?php load_language('biography');?></h6>
<p><?php echo $doctor_data['dr_bio'];?></p>
<p><?php echo decrypt_data($doctor_data['dr_bio']);?></p>
</div>
<div class="ip_profile_others">
......
......@@ -36,7 +36,13 @@ if($this->session->userdata('language') == 'en'){
</div>
<h5><strong><?php echo $doctor_data['dr_name']?></strong></h5>
<p><?php echo $doctor_data['dr_specialization']?></p>
<p><?php echo $doctor_data['clinic_name']?>,<?php echo $doctor_data['clinic_street_address']?>,<?php echo $doctor_data['clinic_locality']?>-<?php echo $doctor_data['clinic_cep']?></p>
<p><?php echo $doctor_data['clinic_name']?>,
<?php if($doctor_data['clinic_name'] == 'Default'){?>
<?php echo decrypt_data($doctor_data['clinic_street_address'])?>,<?php echo decrypt_data($doctor_data['clinic_locality'])?>-<?php echo decrypt_data($doctor_data['clinic_cep'])?>
<?php } else{?>
<?php echo $doctor_data['clinic_street_address']?>,<?php echo $doctor_data['clinic_locality']?>-<?php echo $doctor_data['clinic_cep']?>
<?php }?>
</p>
<div class="ip_profile_ratting">
<!-- <fieldset class="ip_rating">
<input type="radio" id="star5" name="rating" value="5" /><label class = "full" for="star5" title="Awesome - 5 stars"></label>
......@@ -251,9 +257,15 @@ if($this->session->userdata('language') == 'en'){
<h6><?php echo $doctor_data['dr_specialization']?></h6>
<p class="ip_booking_confirm_detail">
<?php echo $doctor_data['clinic_name']?><br>
<?php echo $doctor_data['clinic_street_address']?>,
<?php if($doctor_data['clinic_name'] == 'Default'){?>
<?php echo decrypt_data($doctor_data['clinic_street_address'])?>,
<?php echo decrypt_data($doctor_data['clinic_locality'])?>-<?php echo decrypt_data($doctor_data['clinic_cep'])?><br>
<br>
<?php }else{?>
<?php echo $doctor_data['clinic_street_address']?>,
<?php echo $doctor_data['clinic_locality']?>-<?php echo $doctor_data['clinic_cep']?><br>
<br>
<?php } ?>
<span id="book-date-show"> </span><br><span id="book-time-show"> </span>
</p>
<br>
......
......@@ -71,7 +71,7 @@
<div class="ip_detailed_tab_content">
<div class="tab-content">
<div id="biography<?php echo $key?>" class="tab-pane fade in active">
<p><?php echo $value['biography']?></p>
<p><?php echo decrypt_data($value['biography'])?></p>
<!-- <p>Lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer</p> -->
......
......@@ -1745,11 +1745,11 @@ $('#money_cash').click(function(){
var result = post_ajax(base_url+'Searchdoctor/markpayment',data);
var items = JSON.parse(result);
console.log(items);
if(items == 'true'){
//if(items == 'true'){
$('.confirm-tab-1').removeClass('active');
$('#btnTrigger-confirmation').click();
$('.confirm-tab-4').addClass('active');
}
// }
// }
// else //Paid Consulation -> goto Payment Page
// {
......@@ -1768,12 +1768,12 @@ $('#credit_card_cash').click(function(){
var result = post_ajax(base_url+'Searchdoctor/markpayment_viacredit',data);
var items = JSON.parse(result);
//console.log(items);
if(items== 'true'){
// if(items== 'true'){
$('#select_cash_mode').modal('hide');
$('.confirm-tab-1').removeClass('active');
$('#btnTrigger-payment').click();
$('.confirm-tab-3').addClass('active');
}
//}
})
$('#enter_waiting_list_btn').click(function()
......@@ -2256,14 +2256,14 @@ $("#login_submit_doctor").click(function()
if(items.status=="error"&&items.error=="Login Failed")
{
$("#loading3").hide();
$("#err-login").html(items.message);
$('#err-login').removeClass('hidden');
$("#err-login2").html(items.message);
$('#err-login2').removeClass('hidden');
}
else if(items.status=="error"&&items.error=="Location Update Failed")
{
$("#loading3").hide();
$("#err-login").html(items.message);
$('#err-login').removeClass('hidden');
$("#err-login2").html(items.message);
$('#err-login2').removeClass('hidden');
}
}
}
......
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