Commit 5037abd0 by Jansa Jose

payment

parent 4f64a3df
...@@ -3795,7 +3795,7 @@ class Webservice_model extends CI_Model { ...@@ -3795,7 +3795,7 @@ class Webservice_model extends CI_Model {
$data['pt_name'] = decrypt_data($data['pt_name']); $data['pt_name'] = decrypt_data($data['pt_name']);
$data['pt_gender'] = decrypt_data($data['pt_gender']); $data['pt_gender'] = decrypt_data($data['pt_gender']);
$data['pt_number'] = decrypt_data($data['pt_number']); $data['pt_number'] = decrypt_data($data['pt_number']);
$data['blood_group'] = decrypt_data($data['blood_group']); $data['pt_blood_group'] = decrypt_data($data['blood_group']);
$data['pt_weight'] = decrypt_data($data['pt_weight']); $data['pt_weight'] = decrypt_data($data['pt_weight']);
$data['pt_height'] = decrypt_data($data['pt_height']); $data['pt_height'] = decrypt_data($data['pt_height']);
$data['pt_street_add'] = decrypt_data($data['pt_street_add']); $data['pt_street_add'] = decrypt_data($data['pt_street_add']);
......
...@@ -527,11 +527,12 @@ function get_distinct_medicines() ...@@ -527,11 +527,12 @@ function get_distinct_medicines()
function get_distinct_exams() function get_distinct_exams()
{ {
$this->db->select('exam_procedure as exam_name, $this->db->select("CAST(AES_DECRYPT(`exam_procedure`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') 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("CAST(AES_DECRYPT(`exam_procedure`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR)");
$query = $this->db->get(); $query = $this->db->get();
//print_r($query->result_array());exit();
return $query->result_array(); return $query->result_array();
} }
......
...@@ -432,7 +432,7 @@ ...@@ -432,7 +432,7 @@
$this->db->where('id',$patient_email['id']); $this->db->where('id',$patient_email['id']);
$query_date = $this->db->get('tbl_registration')->row(); $query_date = $this->db->get('tbl_registration')->row();
unset($patient_email['dob']); unset($patient_email['dob']);
$patient_email['dob'] = $query_date->email; $patient_email['dob'] = $query_date->dob;
$return_array = array('status'=>'success','type'=>$type,'userdata'=>$patient_email); $return_array = array('status'=>'success','type'=>$type,'userdata'=>$patient_email);
......
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