Commit 498e3e37 by Jansa Jose

Merge branch 'dixon' into jansa

parents 3754f8d7 a1e52b2a
...@@ -776,7 +776,7 @@ public function service() ...@@ -776,7 +776,7 @@ public function service()
//print_r($major_problems);die(); //print_r($major_problems);die();
$medicines = $this->Doctor_model->get_distinct_medicines(); //for use of medicines $medicines = $this->Doctor_model->get_distinct_medicines(); //for use of medicines
$exams = $this->Doctor_model->get_distinct_exams(); //for use of medicines $exams = $this->Doctor_model->get_distinct_exams(); //for use of medicines
$procedure = $this->Doctor_model->get_distinct_procedure(); //for use of medicines $procedure = $this->Doctor_model->get_distinct_procedure(); //for use of medicines
$cidnumbers = $this->Doctor_model->get_distinct_cid(); //for use of medicines $cidnumbers = $this->Doctor_model->get_distinct_cid(); //for use of medicines
$certificate_letter = $this->Doctor_model->get_certificate_letters(); //for use of medicines $certificate_letter = $this->Doctor_model->get_certificate_letters(); //for use of medicines
...@@ -846,12 +846,11 @@ public function recordsummary() ...@@ -846,12 +846,11 @@ public function recordsummary()
$doctor_data = $this->Doctor_model->get_single_doctor($booking_details['doc_id']); $doctor_data = $this->Doctor_model->get_single_doctor($booking_details['doc_id']);
$patient_data = $this->Patient_model->get_single_patient($booking_details['pat_id']); $patient_data = $this->Patient_model->get_single_patient($booking_details['pat_id']);
$record_data['diseases'] = json_decode($this->encrypt->decode($record_data['diseases']));
$record_data['diseases'] = json_decode($record_data['diseases']); $record_data['prescribtions'] = json_decode($this->encrypt->decode($record_data['prescribtions']));
$record_data['prescribtions'] = json_decode($record_data['prescribtions']); $record_data['exams'] = json_decode($this->encrypt->decode($record_data['exams']));
$record_data['exams'] = json_decode($record_data['exams']); $record_data['budget'] = json_decode($this->encrypt->decode($record_data['budget']));
$record_data['budget'] = json_decode($record_data['budget']); $record_data['letters'] = json_decode($this->encrypt->decode($record_data['letters']));
$record_data['letters'] = json_decode($record_data['letters']);
//print_r($record_data);die(); //print_r($record_data);die();
...@@ -921,15 +920,15 @@ public function save_medicalrecord_data() ...@@ -921,15 +920,15 @@ public function save_medicalrecord_data()
{ {
$disease['anamnese'] = $anamnese; $disease['anamnese'] = $anamnese;
$myJSON = json_encode($disease); $myJSON = json_encode($disease);
$insert_array['diseases'] = $myJSON; $insert_array['diseases'] = $this->encrypt->encode($myJSON);
} }
if(!empty($_POST['description']) and (isset($_POST['description']))) if(!empty($_POST['description']) and (isset($_POST['description'])))
{ {
$insert_array['description'] = $_POST['description']; $insert_array['description'] = $this->encrypt->encode($_POST['description']);
} }
$insert_array['main_complaint'] = $_POST['main_complaint']; $insert_array['main_complaint'] = $this->encrypt->encode($_POST['main_complaint']);
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array); $update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update) if($update)
...@@ -953,7 +952,7 @@ public function save_medicalrecord_data() ...@@ -953,7 +952,7 @@ public function save_medicalrecord_data()
} }
$myJSON = json_encode($medicine); //json encoding for db entry $myJSON = json_encode($medicine); //json encoding for db entry
$insert_array['prescribtions'] = $myJSON; $insert_array['prescribtions'] = $this->encrypt->encode($myJSON);
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array); $update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update) if($update)
...@@ -977,7 +976,7 @@ public function save_medicalrecord_data() ...@@ -977,7 +976,7 @@ public function save_medicalrecord_data()
$new[] = $exam; $new[] = $exam;
//print_r(json_encode($new));exit(); //print_r(json_encode($new));exit();
$myJSON = json_encode($new); //json encoding for db entry $myJSON = json_encode($new); //json encoding for db entry
$insert_array['exams'] = $myJSON; $insert_array['exams'] = $this->encrypt->encode($myJSON);
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array); $update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update) if($update)
...@@ -1001,7 +1000,7 @@ public function save_medicalrecord_data() ...@@ -1001,7 +1000,7 @@ public function save_medicalrecord_data()
$myJSON = json_encode($budget); //json encoding for db entry $myJSON = json_encode($budget); //json encoding for db entry
$insert_array['budget'] = $myJSON; $insert_array['budget'] = $this->encrypt->encode($myJSON);
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array); $update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update) if($update)
...@@ -1031,7 +1030,7 @@ public function save_medicalrecord_data() ...@@ -1031,7 +1030,7 @@ public function save_medicalrecord_data()
$letter_json = json_encode($postdata); $letter_json = json_encode($postdata);
//print_r($letter_json);die(); //print_r($letter_json);die();
$insert_array['letters'] = $letter_json; $insert_array['letters'] = $this->encrypt->encode($letter_json);
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array); $update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update) if($update)
...@@ -1070,7 +1069,7 @@ public function save_medicalrecord_data() ...@@ -1070,7 +1069,7 @@ public function save_medicalrecord_data()
$booking_details = $this->Search_doctor_model->get_booking_details($_POST['booking_id']); $booking_details = $this->Search_doctor_model->get_booking_details($_POST['booking_id']);
$patient_data = $this->Patient_model->get_single_patient($booking_details['patient_id']); $patient_data = $this->Patient_model->get_single_patient($booking_details['patient_id']);
$text = 'The patient '.$patient_data['pt_name'].' evaluated his consultation on '.date('d.m.Y',$booking_details['time_start']); $text = 'The patient '.$this->encrypt->encode($patient_data['pt_name']).' evaluated his consultation on '.date('d.m.Y',$booking_details['time_start']);
$notification = array('doctor_id' => $booking_details['doctor_id'],'type'=>1,'message'=>$text,'read_status'=>0,'time'=>strtotime($nowin_server) ); $notification = array('doctor_id' => $booking_details['doctor_id'],'type'=>1,'message'=>$text,'read_status'=>0,'time'=>strtotime($nowin_server) );
$doctor_insert_id = $this->Home_model->insert_notification_doctor($notification); $doctor_insert_id = $this->Home_model->insert_notification_doctor($notification);
...@@ -1204,6 +1203,7 @@ public function get_exam_details() ...@@ -1204,6 +1203,7 @@ public function get_exam_details()
{ {
$name = $_POST['exam_name']; $name = $_POST['exam_name'];
$exam = $this->Doctor_model->get_exam_for_name($name); $exam = $this->Doctor_model->get_exam_for_name($name);
//echo $this->db->last_query();
print json_encode($exam); print json_encode($exam);
} }
...@@ -1224,7 +1224,7 @@ public function editProfile() ...@@ -1224,7 +1224,7 @@ public function editProfile()
$template['page'] = "doctor_editprofile"; $template['page'] = "doctor_editprofile";
$template['page_title'] = "Edit Profile"; $template['page_title'] = "Edit Profile";
$template['data'] = "Doctor page"; $template['data'] = "Doctor page";
$doctor_data = $this->Doctor_model->get_single_doctor($userdata['id']); $doctor_data = $this->Doctor_model->get_single_doctor($userdata['id']);
$speciality_list = $this->Home_model->get_speciality(); $speciality_list = $this->Home_model->get_speciality();
$template['speciality_list'] = $speciality_list; $template['speciality_list'] = $speciality_list;
$template['doctor_data'] = $doctor_data; $template['doctor_data'] = $doctor_data;
...@@ -1258,7 +1258,9 @@ public function check_username_edit() ...@@ -1258,7 +1258,9 @@ public function check_username_edit()
public function saveProfile() public function saveProfile()
{ {
$userdata = $this->session->userdata('UserData'); $userdata = $this->session->userdata('UserData');
$_POST['dob'] = strtotime($_POST['dob']); $_POST['dob'] = strtotime($_POST['dob']);
if(isset($_POST) and !empty($_POST)) if(isset($_POST) and !empty($_POST))
{ {
$update_data = $_POST; $update_data = $_POST;
...@@ -1290,11 +1292,30 @@ public function saveProfile() ...@@ -1290,11 +1292,30 @@ public function saveProfile()
unset($update_data['profile_pic']); unset($update_data['profile_pic']);
} }
//print_r($update_data);die(); //print_r($update_data);die();
/*encryption*/
$update_data['name'] = $this->encrypt->encode($update_data['name']);
$update_data['rg'] = $this->encrypt->encode($update_data['rg']);
$update_data['cpf'] = $this->encrypt->encode($update_data['cpf']);
$update_data['telephone'] = $this->encrypt->encode($update_data['telephone']);
$update_data['gender'] = $this->encrypt->encode($update_data['gender']);
$update_data['cep'] = $this->encrypt->encode($update_data['cep']);
$update_data['street_address'] = $this->encrypt->encode($update_data['street_address']);
$update_data['locality'] = $this->encrypt->encode($update_data['locality']);
$update_data['number'] = $this->encrypt->encode($update_data['number']);
$update_data['complement'] = $this->encrypt->encode($update_data['complement']);
$update_data['about'] = $this->encrypt->encode($update_data['about']);
$update_data['crm'] = $this->encrypt->encode($update_data['crm']);
/*encryption*/
$update = $this->Doctor_model->update_profile($userdata['id'],$update_data); $update = $this->Doctor_model->update_profile($userdata['id'],$update_data);
if($update['status']=='success') if($update['status']=='success')
{ {
$doctor_data = $this->Doctor_model->get_single_doctor_row($userdata['id']); $doctor_data = $this->Doctor_model->get_single_doctor_row($userdata['id']);
//print_r($patient_data); //print_r($doctor_data);
$new_userdata = array( $new_userdata = array(
"type"=>"DOCTOR", "type"=>"DOCTOR",
......
...@@ -960,16 +960,43 @@ class Home extends CI_Controller { ...@@ -960,16 +960,43 @@ class Home extends CI_Controller {
$data = $_POST; $data = $_POST;
//print_r($data);exit();
/*encryption*/
//$data['name'] = $this->encrypt->encode($data['name']);
$data['rg'] = $this->encrypt->encode($data['rg']);
//$data['cpf'] = $this->encrypt->encode($data['cpf']);
$data['telephone'] = $this->encrypt->encode($data['telephone']);
$data['gender'] = $this->encrypt->encode($data['gender']);
$data['cep'] = $this->encrypt->encode($data['cep']);
$data['street_address'] = $this->encrypt->encode($data['street_address']);
$data['locality'] = $this->encrypt->encode($data['locality']);
$data['number'] = $this->encrypt->encode($data['number']);
$data['complement'] = $this->encrypt->encode($data['complement']);
$data['about'] = $this->encrypt->encode($data['about']);
$data['crm'] = $this->encrypt->encode($data['crm']);
$newdob = $data['year'].'-'.$data['month'].'-'.$data['day']; $newdob = $data['year'].'-'.$data['month'].'-'.$data['day'];
$data['dob'] = strtotime($newdob);
/*encryption*/
$data['password'] = md5($data['password']);
$data['dob'] = strtotime($newdob); //print_r($data);
<<<<<<< HEAD
$data['password'] = md5($data['password']);
unset($data['day']);
unset($data['month']);
unset($data['year']);
=======
>>>>>>> jansa
//$this->Doctor_model->assignDoctors_default($this->session->userdata('UserData')['id'],''); //$this->Doctor_model->assignDoctors_default($this->session->userdata('UserData')['id'],'');
$result = $this->Home_model->register_doctor($data); $result = $this->Home_model->register_doctor($data);
//print_r($result); //print_r($result);
...@@ -1376,6 +1403,23 @@ class Home extends CI_Controller { ...@@ -1376,6 +1403,23 @@ class Home extends CI_Controller {
$userdata = $this->session->userdata('UserData'); $userdata = $this->session->userdata('UserData');
$recent = $this->Home_model->get_recent_chat($userdata['id'],$userdata['type']); $recent = $this->Home_model->get_recent_chat($userdata['id'],$userdata['type']);
if($userdata['type'] == 'DOCTOR' || $userdata['type'] =="COLLABORATOR")
{
for($i=0;$i<count($recent);$i++){
$recent[$i]['pat_name'] = $this->encrypt->decode($recent[$i]['pat_name']);
$recent[$i]['msg'] = $this->encrypt->decode($recent[$i]['msg']);
}
}
elseif($userdata['type'] == 'PATIENT')
{
for($i=0;$i<count($recent);$i++){
$recent[$i]['doc_name'] = $this->encrypt->decode($recent[$i]['doc_name']);
$recent[$i]['msg'] = $this->encrypt->decode($recent[$i]['msg']);
}
}
//print_r($recent);die(); //print_r($recent);die();
...@@ -1411,7 +1455,21 @@ class Home extends CI_Controller { ...@@ -1411,7 +1455,21 @@ class Home extends CI_Controller {
$userdata = $this->session->userdata('UserData'); $userdata = $this->session->userdata('UserData');
$allusers = $this->Home_model->get_all_chat_users($userdata['id'],$userdata['type']); $allusers = $this->Home_model->get_all_chat_users($userdata['id'],$userdata['type']);
if($userdata['type'] == 'DOCTOR' || $userdata['type'] =="COLLABORATOR")
{
for($i=0;$i<count($allusers);$i++){
$allusers[$i]['pat_name'] = $this->encrypt->decode($allusers[$i]['pat_name']);
}
}
elseif($userdata['type'] == 'PATIENT')
{
for($i=0;$i<count($allusers);$i++){
$allusers[$i]['doc_name'] = $this->encrypt->decode($allusers[$i]['doc_name']);
}
}
//print_r($userdata);die(); //print_r($userdata);die();
...@@ -1456,10 +1514,27 @@ class Home extends CI_Controller { ...@@ -1456,10 +1514,27 @@ class Home extends CI_Controller {
$userdata = $this->session->userdata('UserData'); $userdata = $this->session->userdata('UserData');
$_POST['msg'] = $this->encrypt->encode($_POST['msg']);
$this->Home_model->update_recent_chat($_POST); $this->Home_model->update_recent_chat($_POST);
$recent = $this->Home_model->get_recent_chat($userdata['id'],$userdata['type']); $recent = $this->Home_model->get_recent_chat($userdata['id'],$userdata['type']);
if($userdata['type'] == 'DOCTOR' || $userdata['type'] =="COLLABORATOR")
{
for($i=0;$i<count($recent);$i++){
$recent[$i]['pat_name'] = $this->encrypt->decode($recent[$i]['pat_name']);
$recent[$i]['msg'] = $this->encrypt->decode($recent[$i]['msg']);
}
}
elseif($userdata['type'] == 'PATIENT')
{
for($i=0;$i<count($recent);$i++){
$recent[$i]['doc_name'] = $this->encrypt->decode($recent[$i]['doc_name']);
$recent[$i]['msg'] = $this->encrypt->decode($recent[$i]['msg']);
}
}
//print_r($recent);die(); //print_r($recent);die();
//header('Content-type: application/json'); //header('Content-type: application/json');
......
...@@ -7,12 +7,13 @@ function __construct() { ...@@ -7,12 +7,13 @@ function __construct() {
public function get_single_doctor($id) public function get_single_doctor($id)
{ {
$key = $this->config->item('encryption_key');
$this->db->select("tbl_doctors.id as doctorid, $this->db->select("tbl_doctors.id as doctorid,
tbl_doctors.name as dr_name, CAST(AES_DECRYPT(tbl_doctors.name,'".$key."') as CHAR) as dr_name,
tbl_doctors.profile_pic as dr_pic, tbl_doctors.profile_pic as dr_pic,
tbl_doctors.email as dr_email, tbl_doctors.email as dr_email,
tbl_doctors.username as dr_username, tbl_doctors.username as dr_username,
tbl_doctors.dob as dr_dob, CAST(AES_DECRYPT(tbl_doctors.dob,'".$key."') as CHAR) as dr_dob,
tbl_doctors.about as dr_bio, tbl_doctors.about as dr_bio,
tbl_doctors.specialization as dr_specialization_id, tbl_doctors.specialization as dr_specialization_id,
tbl_doctors.price as dr_price, tbl_doctors.price as dr_price,
...@@ -449,6 +450,8 @@ function update_profile($id,$data) ...@@ -449,6 +450,8 @@ function update_profile($id,$data)
$this->db->where('tbl_doctors.id',$id); $this->db->where('tbl_doctors.id',$id);
if($this->db->update('tbl_doctors',$data)) if($this->db->update('tbl_doctors',$data))
{ {
$key = $this->config->item('encryption_key');
$this->db->query("Update tbl_doctors SET dob = AES_ENCRYPT(".$data['dob'].",'".$key."') where id=".$id);
$result = array('status' => 'success'); $result = array('status' => 'success');
} }
else else
...@@ -460,7 +463,8 @@ function update_profile($id,$data) ...@@ -460,7 +463,8 @@ function update_profile($id,$data)
function get_single_doctor_row($id) function get_single_doctor_row($id)
{ {
$this->db->select("*"); $key = $this->config->item('encryption_key');
$this->db->select("*,CAST(AES_DECRYPT(dob,'".$key."') as CHAR) as dr_dob");
$this->db->from("tbl_doctors"); $this->db->from("tbl_doctors");
$this->db->where("tbl_doctors.id",$id); $this->db->where("tbl_doctors.id",$id);
$query = $this->db->get(); $query = $this->db->get();
...@@ -527,7 +531,9 @@ function get_distinct_medicines() ...@@ -527,7 +531,9 @@ function get_distinct_medicines()
function get_distinct_exams() function get_distinct_exams()
{ {
$this->db->select("CAST(AES_DECRYPT(`exam_procedure`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) as exam_name,
$key = $this->config->item('encryption_key');
$this->db->select("CAST(AES_DECRYPT(exam_procedure,'".$key."') as CHAR) as exam_name,
id as exam_id"); id as exam_id");
$this->db->from('tbl_exams'); $this->db->from('tbl_exams');
$this->db->group_by('exam_procedure'); $this->db->group_by('exam_procedure');
...@@ -602,9 +608,10 @@ function get_medicine_for_name($name) ...@@ -602,9 +608,10 @@ function get_medicine_for_name($name)
function get_exam_for_name($name) function get_exam_for_name($name)
{ {
$this->db->select('observation'); $key = $this->config->item('encryption_key');
$this->db->select("CAST(AES_DECRYPT(observation,'".$key."') as CHAR) as observation");
$this->db->from('tbl_exams'); $this->db->from('tbl_exams');
$this->db->where('exam_procedure',$name); $this->db->where("exam_procedure = AES_ENCRYPT('".$name."','".$key."') ");
$query = $this->db->get(); $query = $this->db->get();
return $query->result_array(); return $query->result_array();
} }
......
...@@ -566,13 +566,15 @@ ...@@ -566,13 +566,15 @@
if($this->db->insert('tbl_doctors', $data)) if($this->db->insert('tbl_doctors', $data))
{ {
$insertid = $this->db->insert_id(); $insertid = $this->db->insert_id();
$this->db->insert('tbl_clinic_doctors',array('doctor_id'=>$insertid,'clinic_id'=> 0)); $key = $this->config->item('encryption_key');
//$this->db->query("update tbl_registration set dob = AES_ENCRYPT(".$data['dob'].",'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA')where id = ".$insertid);
$this->db->query("Update tbl_doctors SET dob = AES_ENCRYPT(".$data['dob'].",".$key."), name = AES_ENCRYPT(".$data['name'].",".$key.") 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->insert('tbl_consultation',array('doctor_id'=>$insertid,'clinic_id'=> 0,'date'=>'""','date_secondary'=>'""','active_schedule'=> 0));
$query = $this->db->get_where("tbl_doctors",array("id"=>$insertid)); $query = $this->db->get_where("tbl_doctors",array("id"=>$insertid));
...@@ -843,6 +845,7 @@ ...@@ -843,6 +845,7 @@
{ {
$sql = $this->db->insert_string('tbl_recent_chats', $post) . ' ON DUPLICATE KEY UPDATE sender_type = ' .$post['sender_type'].',msg ='.'"' .$post['msg'].'"'.',photo_url='.'"' .$post['photo_url'].'"'.',video_url='.'"' .$post['video_url'].'"'.',type='.'"' .$post['type'].'"'.',time='.$post['time']; $sql = $this->db->insert_string('tbl_recent_chats', $post) . ' ON DUPLICATE KEY UPDATE sender_type = ' .$post['sender_type'].',msg ='.'"' .$post['msg'].'"'.',photo_url='.'"' .$post['photo_url'].'"'.',video_url='.'"' .$post['video_url'].'"'.',type='.'"' .$post['type'].'"'.',time='.$post['time'];
//print_r($this->db->last_sqlquery());die(); //print_r($this->db->last_sqlquery());die();
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<img src="<?php echo base_url();echo $doctor_data['dr_pic'];?>"> <img src="<?php echo base_url();echo $doctor_data['dr_pic'];?>">
</div> </div>
<div class="ip_profile_tab_name"> <div class="ip_profile_tab_name">
<h3>Dr. <?php echo $doctor_data['dr_name'] ?></h3> <h3>Dr. <?php echo $doctor_data['dr_name']; ?></h3>
</div> </div>
<div class="ip_profile_tab_button"> <div class="ip_profile_tab_button">
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</li> </li>
<li> <li>
<div class="child1"><?php load_language('phone');?> :</div> <div class="child1"><?php load_language('phone');?> :</div>
<div class="child2"><?php echo $doctor_data['dr_telephone'] ?></div> <div class="child2"><?php echo $this->encrypt->decode($doctor_data['dr_telephone']); ?></div>
<div class="clear"></div> <div class="clear"></div>
</li> </li>
<!-- <li> <!-- <li>
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
?> ?>
<li> <li>
<div class="child1"><?php load_language('current_city');?> :</div> <div class="child1"><?php load_language('current_city');?> :</div>
<div class="child2"><?php echo $doctor_data["dr_neighbourhood"];?></div> <div class="child2"><?php echo $this->encrypt->decode($doctor_data["dr_neighbourhood"]);?></div>
<div class="clear"></div> <div class="clear"></div>
</li> </li>
<!-- <li> <!-- <li>
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
<img src="<?php echo base_url();echo $doctor_data['dr_pic'];?>"> <img src="<?php echo base_url();echo $doctor_data['dr_pic'];?>">
</div> </div>
<div class="ip_profile_tab_name"> <div class="ip_profile_tab_name">
<h3>Dr. <?php echo $doctor_data['dr_name'] ?></h3> <h3>Dr. <?php echo $this->encrypt->decode($doctor_data['dr_name']); ?></h3>
</div> </div>
<div class="ip_profile_tab_button"> <div class="ip_profile_tab_button">
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="ip_profile_tab_detail"> <div class="ip_profile_tab_detail">
<p class="ip_row_p"><?php echo $doctor_data["dr_bio"];?></p> <p class="ip_row_p"><?php echo $this->encrypt->decode($doctor_data["dr_bio"]);?></p>
</div> </div>
</div> </div>
<div id="special" class="tab-pane fade"> <div id="special" class="tab-pane fade">
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
<img src="<?php echo base_url();echo $doctor_data['dr_pic'];?>"> <img src="<?php echo base_url();echo $doctor_data['dr_pic'];?>">
</div> </div>
<div class="ip_profile_tab_name"> <div class="ip_profile_tab_name">
<h3>Dr. <?php echo $doctor_data['dr_name'] ?></h3> <h3>Dr. <?php echo $this->encrypt->decode($doctor_data['dr_name']); ?></h3>
</div> </div>
<div class="ip_profile_tab_button"> <div class="ip_profile_tab_button">
...@@ -319,9 +319,9 @@ ...@@ -319,9 +319,9 @@
<img src="<?php echo base_url(); echo $elm['pat_pic']?>"> <img src="<?php echo base_url(); echo $elm['pat_pic']?>">
</div> </div>
<div class="ip_bio_messages"> <div class="ip_bio_messages">
<h5><?php echo $elm['pat_name'];?></h5><div class="ip_message_time"><?php echo change_time_to_local($elm['time'])?></div> <h5><?php echo $this->encrypt->decode($elm['pat_name']);?></h5><div class="ip_message_time"><?php echo change_time_to_local($elm['time'])?></div>
<div class="clear"></div> <div class="clear"></div>
<p><?php echo $elm['msg'];?></p> <p><?php echo $this->encrypt->decode($elm['msg']);?></p>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</a> </a>
......
...@@ -24,7 +24,9 @@ ...@@ -24,7 +24,9 @@
<div class="col-md-5 p0 height100"> <div class="col-md-5 p0 height100">
<div class="ip_day_time_schedule_details_data height100"> <div class="ip_day_time_schedule_details_data height100">
<span><img src="<?php echo base_url();echo $value['pat_pic'];?>"></span> <span><img src="<?php echo base_url();echo $value['pat_pic'];?>"></span>
<span><?php echo decrypt_data($value['pat_name']);?></span>
<span><?php echo $this->encrypt->decode($value['pat_name']);?></span>
</div> </div>
</div> </div>
...@@ -75,7 +77,9 @@ ...@@ -75,7 +77,9 @@
<div class="col-md-5 p0 height100"> <div class="col-md-5 p0 height100">
<div class="ip_day_time_schedule_details_data height100"> <div class="ip_day_time_schedule_details_data height100">
<span><img src="<?php echo base_url();echo $value['pat_pic'];?>"></span> <span><img src="<?php echo base_url();echo $value['pat_pic'];?>"></span>
<span><?php echo decrypt_data($value['pat_name']);?></span>
<span><?php echo $this->encrypt->decode($value['pat_name']);?></span>
</div> </div>
</div> </div>
<div class="col-md-4 p0 height100"> <div class="col-md-4 p0 height100">
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div class="row"> <div class="row">
<div class="col-md-8 content" id="content" > <div class="col-md-8 content" id="content" >
<div class="ip_edit_record_name" style="padding-top: 40px;"> <div class="ip_edit_record_name" style="padding-top: 40px;">
<h5 id="patdetail" patid="<?php echo $booking_details['pat_id'];?>"><?php echo $booking_details['pat_name'];?></h5> <h5 id="patdetail" patid="<?php echo $booking_details['pat_id'];?>"><?php echo $this->encrypt->decode($booking_details['pat_name']);?></h5>
<p><?php echo date('d M',$booking_details['book_date']);?>, <?php echo $booking_details['book_time'];?><img src="<?php echo base_url();?>assets/images/ip_menu5.png"></p> <p><?php echo date('d M',$booking_details['book_date']);?>, <?php echo $booking_details['book_time'];?><img src="<?php echo base_url();?>assets/images/ip_menu5.png"></p>
</div> </div>
<br><br> <br><br>
...@@ -387,7 +387,7 @@ ...@@ -387,7 +387,7 @@
foreach ($exams as $key => $elem) foreach ($exams as $key => $elem)
{ {
?> ?>
<option value="<?php echo $elem['exam_name']?>"><?php echo $elem['exam_name']?></option> <option value="<?php echo $elem['exam_name'];?>"><?php echo $elem['exam_name'];?></option>
<?php <?php
} }
} }
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
</div> </div>
<div class="ip_record_search_box backgroundnone"> <div class="ip_record_search_box backgroundnone">
<h4><?php echo $patient_data['pt_name']?></h4> <h4><?php echo $this->encrypt->decode($patient_data['pt_name']);?></h4>
</div> </div>
<div class="ip_record_settings"> <div class="ip_record_settings">
<span class="settings"><img src="<?php echo base_url();?>assets/images/ip_settings.png"></span> <span class="settings"><img src="<?php echo base_url();?>assets/images/ip_settings.png"></span>
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<div class="tab-content"> <div class="tab-content">
<div class="ip_profile_tab_top p0"> <div class="ip_profile_tab_top p0">
<div class="ip_profile_tab_name"> <div class="ip_profile_tab_name">
<h3><?php if(!empty($record_data['main_complaint'])) echo $record_data['main_complaint'];?></h3> <h3><?php if(!empty($record_data['main_complaint'])) echo $this->encrypt->decode($record_data['main_complaint']);?></h3>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<div id="record" class="tab-pane fade in active"> <div id="record" class="tab-pane fade in active">
<div class="ip_profile_tab_detail"> <div class="ip_profile_tab_detail">
<?php if(!empty($record_data['description']))echo $record_data['description'];?> <?php if(!empty($record_data['description']))echo $this->encrypt->decode($record_data['description']);?>
<br> <br>
<div class="ip_prescription_div"> <div class="ip_prescription_div">
<ul> <ul>
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
<img src="<?php echo base_url();echo $doctor_data['dr_pic']?>"> <img src="<?php echo base_url();echo $doctor_data['dr_pic']?>">
</div> </div>
<div class="ip_profile_tab_name"> <div class="ip_profile_tab_name">
<h3>Dr. <?php echo $doctor_data['dr_name']?></h3> <h3>Dr. <?php echo $this->encrypt->decode($doctor_data['dr_name']);?></h3>
<!-- <form id="ip_user_rating_form"> <!-- <form id="ip_user_rating_form">
<div id="ip_selected_rating" class="ip_selected_rating floatLeft">5.0</div> <div id="ip_selected_rating" class="ip_selected_rating floatLeft">5.0</div>
<span class="ip_user_rating floatLeft"> <span class="ip_user_rating floatLeft">
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<div class="col-md-7"> <div class="col-md-7">
<div class="ip_edit_row"> <div class="ip_edit_row">
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="name" data-parsley-required="true" onKeyPress="if(this.value.length > 40) return false;" data-parsley-minlength="5" data-parsley-pattern="^[a-zA-Z ]+$" placeholder="<?php load_language('name');?>" value="<?php echo $doctor_data['dr_name']?>"> <input class="ip_bank_input" name="name" data-parsley-required="true" onKeyPress="if(this.value.length > 40) return false;" data-parsley-minlength="5" data-parsley-pattern="^[a-zA-Z ]+$" placeholder="<?php load_language('name');?>" value="<?php echo $this->encrypt->decode($doctor_data['dr_name']);?>">
</div> </div>
</div> </div>
<div class="ip_edit_row"> <div class="ip_edit_row">
...@@ -44,13 +44,13 @@ ...@@ -44,13 +44,13 @@
<div class="col-md-6"> <div class="col-md-6">
<p class="ip_row_p">RG</p> <p class="ip_row_p">RG</p>
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="rg" maxlength="25" onKeyPress="if(this.value.length > 25) return false;" placeholder="" value="<?php echo $doctor_data['dr_rg']?>"> <input class="ip_bank_input" name="rg" maxlength="25" onKeyPress="if(this.value.length > 25) return false;" placeholder="" value="<?php echo $this->encrypt->decode($doctor_data['dr_rg']);?>">
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<p class="ip_row_p">CPF</p> <p class="ip_row_p">CPF</p>
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="cpf" placeholder="" data-parsley-required="true" data-parsley-minlength="11" data-parsley-cpf="" onKeyPress="if(this.value.length > 10) return false;" type="number" value="<?php echo $doctor_data['dr_cpf']?>"> <input class="ip_bank_input" name="cpf" placeholder="" data-parsley-required="true" data-parsley-minlength="11" data-parsley-cpf="" onKeyPress="if(this.value.length > 10) return false;" type="number" value="<?php echo $doctor_data['dr_cpf'];?>">
</div> </div>
</div> </div>
</div> </div>
...@@ -60,13 +60,13 @@ ...@@ -60,13 +60,13 @@
<div class="col-md-6"> <div class="col-md-6">
<p class="ip_row_p">CRM</p> <p class="ip_row_p">CRM</p>
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="crm" placeholder="" onKeyPress="if(this.value.length > 25) return false;" value="<?php echo $doctor_data['dr_crm']?>"> <input class="ip_bank_input" name="crm" placeholder="" onKeyPress="if(this.value.length > 25) return false;" value="<?php echo $this->encrypt->decode($doctor_data['dr_crm']);?>">
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<p class="ip_row_p"><?php load_language('telephone');?></p> <p class="ip_row_p"><?php load_language('telephone');?></p>
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="telephone" placeholder="" data-parsley-pattern="^[0-9]+$" type="number" data-parsley-minlength="5" onKeyPress="if(this.value.length > 30) return false;" value="<?php echo $doctor_data['dr_telephone']?>"> <input class="ip_bank_input" name="telephone" placeholder="" data-parsley-pattern="^[0-9]+$" type="number" data-parsley-minlength="5" onKeyPress="if(this.value.length > 30) return false;" value="<?php echo $this->encrypt->decode($doctor_data['dr_telephone']);?>">
</div> </div>
</div> </div>
</div> </div>
...@@ -129,37 +129,37 @@ ...@@ -129,37 +129,37 @@
<div class="col-md-5"> <div class="col-md-5">
<div class="ip_edit_row"> <div class="ip_edit_row">
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="cep" data-parsley-required placeholder="CEP" onKeyPress="if(this.value.length > 7) return false;" type="number" data-parsley-minlength="8" data-parsley-cep="" data-parsley-pattern="^[0-9]+$" value="<?php echo $doctor_data['dr_cep']?>"> <input class="ip_bank_input" name="cep" data-parsley-required placeholder="CEP" onKeyPress="if(this.value.length > 7) return false;" type="number" data-parsley-minlength="8" data-parsley-cep="" data-parsley-pattern="^[0-9]+$" value="<?php echo $this->encrypt->decode($doctor_data['dr_cep']);?>">
</div> </div>
</div> </div>
<div class="ip_edit_row"> <div class="ip_edit_row">
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="street_address" data-parsley-required placeholder="<?php load_language('rua');?>" data-parsley-maxlength="50" onKeyPress="if(this.value.length > 50) return false;" data-parsley-pattern="^[a-zA-Z ]+$" data-parsley-minlength="5" value="<?php echo $doctor_data['dr_rua']?>"> <input class="ip_bank_input" name="street_address" data-parsley-required placeholder="<?php load_language('rua');?>" data-parsley-maxlength="50" onKeyPress="if(this.value.length > 50) return false;" data-parsley-pattern="^[a-zA-Z ]+$" data-parsley-minlength="5" value="<?php echo $this->encrypt->decode($doctor_data['dr_rua']);?>">
</div> </div>
</div> </div>
<div class="ip_edit_row"> <div class="ip_edit_row">
<div class="row"> <div class="row">
<div class="col-md-7"> <div class="col-md-7">
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="locality" data-parsley-required placeholder="<?php load_language('neighbourhood');?>" onKeyPress="if(this.value.length > 50) return false;" data-parsley-pattern="^[a-zA-Z ]+$" data-parsley-minlength="5" data-parsley-maxlength="50" value="<?php echo $doctor_data['dr_neighbourhood']?>"> <input class="ip_bank_input" name="locality" data-parsley-required placeholder="<?php load_language('neighbourhood');?>" onKeyPress="if(this.value.length > 50) return false;" data-parsley-pattern="^[a-zA-Z ]+$" data-parsley-minlength="5" data-parsley-maxlength="50" value="<?php echo $this->encrypt->decode($doctor_data['dr_neighbourhood']);?>">
</div> </div>
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="number" data-parsley-required placeholder="<?php load_language('number');?>" data-parsley-pattern="^[0-9]+$" type="number" data-parsley-minlength="5" data-parsley-maxlength="30" onKeyPress="if(this.value.length > 30) return false;" value="<?php echo $doctor_data['dr_number']?>"> <input class="ip_bank_input" name="number" data-parsley-required placeholder="<?php load_language('number');?>" data-parsley-pattern="^[0-9]+$" type="number" data-parsley-minlength="5" data-parsley-maxlength="30" onKeyPress="if(this.value.length > 30) return false;" value="<?php echo $this->encrypt->decode($doctor_data['dr_number']);?>">
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="ip_edit_row"> <div class="ip_edit_row">
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="complement" placeholder="<?php load_language('complement');?>" onKeyPress="if(this.value.length > 50) return false;" data-parsley-maxlength="50" value="<?php echo $doctor_data['dr_complement']?>"> <input class="ip_bank_input" name="complement" placeholder="<?php load_language('complement');?>" onKeyPress="if(this.value.length > 50) return false;" data-parsley-maxlength="50" value="<?php echo $this->encrypt->decode($doctor_data['dr_complement']);?>">
</div> </div>
</div> </div>
<div class="ip_edit_row"> <div class="ip_edit_row">
<p class="ip_row_p"><?php load_language('biography');?></p> <p class="ip_row_p"><?php load_language('biography');?></p>
<div class="ip_bank_detail_frame" style="height:auto;"> <div class="ip_bank_detail_frame" style="height:auto;">
<textarea class="ip_bank_input" name="about" placeholder="BIOGRAPHY" data-parsley-required rows="8" data-parsley-maxlength="1000" data-parsley-minlength="15" onKeyPress="if(this.value.length > 1000) return false;"><?php echo $doctor_data['dr_bio']?></textarea> <textarea class="ip_bank_input" name="about" placeholder="BIOGRAPHY" data-parsley-required rows="8" data-parsley-maxlength="1000" data-parsley-minlength="15" onKeyPress="if(this.value.length > 1000) return false;"><?php echo $this->encrypt->decode($doctor_data['dr_bio']);?></textarea>
</div> </div>
</div> </div>
<div class="ip_edit_row"> <div class="ip_edit_row">
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
setTimeout(function() setTimeout(function()
{ {
$("#edit-doctor input").datepicker("update", '<?php echo date('m/d/Y',$doctor_data['dr_dob']);?>'); $("#edit-doctor input").datepicker("update", '<?php echo date('m/d/Y',$doctor_data['dr_dob']);?>');
$('#doc-edt-gender').val('<?php echo $doctor_data['dr_gender'];?>').trigger('change'); $('#doc-edt-gender').val('<?php echo $this->encrypt->decode($doctor_data['dr_gender']);?>').trigger('change');
$('#doc-edt-gender').val('<?php echo $doctor_data['dr_gender'];?>').trigger('change'); $('#doc-edt-gender').val('<?php echo $this->encrypt->decode($doctor_data['dr_gender']);?>').trigger('change');
$('#doc-edt-specialization').val('<?php echo $doctor_data['dr_specialization_id'];?>').trigger('change'); $('#doc-edt-specialization').val('<?php echo $doctor_data['dr_specialization_id'];?>').trigger('change');
},500) },500)
......
...@@ -80,8 +80,8 @@ ...@@ -80,8 +80,8 @@
</div> </div>
<div class="ip_record_name"> <div class="ip_record_name">
<?php echo decrypt_data($value['pat_name']);?> <?php echo $this->encrypt->decode($value['pat_name']);?>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</a> </a>
......
...@@ -83,7 +83,9 @@ ...@@ -83,7 +83,9 @@
<img src="<?php echo base_url();echo $value['pat_pic'];?>"> <img src="<?php echo base_url();echo $value['pat_pic'];?>">
</div> </div>
<div class="ip_record_name"> <div class="ip_record_name">
<?php echo decrypt_data($value['pat_name']);?>
<?php echo $this->encrypt->decode($value['pat_name']);?>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</a> </a>
......
...@@ -33,6 +33,8 @@ if($this->session->userdata('language') == 'en'){ ...@@ -33,6 +33,8 @@ if($this->session->userdata('language') == 'en'){
<div id="loading" style="display: none;"> <div id="loading" style="display: none;">
<img id="loading-image" src="<?php echo base_url();?>assets/images/ipok-loading.gif" alt="Loading..." /> <img id="loading-image" src="<?php echo base_url();?>assets/images/ipok-loading.gif" alt="Loading..." />
</div> </div>
<input type="hidden" name="language" value="<?php echo $this->session->userdata('language');?>" id="language">
<form role="form" data-parsley-validate="" id="reg-form-doctor" method="POST" action="<?php echo base_url();?>Home/doRegister" enctype="multipart/form-data"> <form role="form" data-parsley-validate="" id="reg-form-doctor" method="POST" action="<?php echo base_url();?>Home/doRegister" enctype="multipart/form-data">
<div class="ip_edit_record_head backgroundnone"> <div class="ip_edit_record_head backgroundnone">
<?php load_language('create_a_medical_account');?> <?php load_language('create_a_medical_account');?>
...@@ -73,7 +75,6 @@ if($this->session->userdata('language') == 'en'){ ...@@ -73,7 +75,6 @@ if($this->session->userdata('language') == 'en'){
</div> </div>
</div> </div>
<input type="hidden" name="language" value="<>php echo $this->session->userdata('language');?>" id="language">
<div class="col-md-5"> <div class="col-md-5">
<div class="ip_edit_row"> <div class="ip_edit_row">
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="ip_bio_detail textCenter"> <div class="ip_bio_detail textCenter">
<div class="ip_bal_circle"> <div class="ip_bal_circle">
<div class="c100 p25"> <div class="c100 p25">
<span><strong class="ip_counter" data-count="<?php echo $wallet['reedem_earn'];?>"><?php echo $wallet['reedem_earn'];?></strong></span> <span><strong class="ip_counter" data-count="<?php echo $this->encrypt->decode($wallet['reedem_earn']);?>"><?php echo $this->encrypt->decode($wallet['reedem_earn']);?></strong></span>
<div class="slice"> <div class="slice">
<div class="bar"></div> <div class="bar"></div>
<div class="fill"></div> <div class="fill"></div>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<div class="ip_bio_detail textCenter"> <div class="ip_bio_detail textCenter">
<div class="ip_future_circle"> <div class="ip_future_circle">
<div class="c100 p25"> <div class="c100 p25">
<span><strong class="ip_counter" data-count="<?php echo $wallet['future_earn'];?>"><?php echo $wallet['future_earn'];?></strong></span> <span><strong class="ip_counter" data-count="<?php echo $this->encrypt->decode($wallet['future_earn']);?>"><?php echo $this->encrypt->decode($wallet['future_earn']);?></strong></span>
<div class="slice"> <div class="slice">
<div class="bar"></div> <div class="bar"></div>
<div class="fill"></div> <div class="fill"></div>
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<div class="ip_bio_detail textCenter"> <div class="ip_bio_detail textCenter">
<div class="ip_total_circle"> <div class="ip_total_circle">
<div class="c100 p25"> <div class="c100 p25">
<span><strong class="ip_counter" data-count="<?php echo $wallet['total_earn'];?>"><?php echo $wallet['total_earn'];?></strong></span> <span><strong class="ip_counter" data-count="<?php echo $this->encrypt->decode($wallet['total_earn']);?>"><?php echo $this->encrypt->decode($wallet['total_earn']);?></strong></span>
<div class="slice"> <div class="slice">
<div class="bar"></div> <div class="bar"></div>
<div class="fill"></div> <div class="fill"></div>
......
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