Commit 78e5247a by Jansa Jose

print

parent 460c4f30
......@@ -1069,7 +1069,7 @@ public function save_medicalrecord_data()
$booking_details = $this->Search_doctor_model->get_booking_details($_POST['booking_id']);
$patient_data = $this->Patient_model->get_single_patient($booking_details['patient_id']);
$text = 'The patient '.$this->encrypt->encode($patient_data['pt_name']).' evaluated his consultation on '.date('d.m.Y',$booking_details['time_start']);
$text = 'The patient '.decrypt_data($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) );
$doctor_insert_id = $this->Home_model->insert_notification_doctor($notification);
......
......@@ -174,7 +174,7 @@ public function cancelBooking()
/*CODE FOR SENTING WAITING LIST NOTIFICATION - DOCTOR NOTIFICATION*/
/*------------------------------------------------*/
$text = 'A new appointment was scheduled in the system, on '.date('d.m.Y',$booking_details_waiting['time_start']).' at '.date('H:i a',$booking_details_waiting['time_start']).', patient '.$patient_data_waiting['pt_name'];
$text = 'A new appointment was scheduled in the system, on '.date('d.m.Y',$booking_details_waiting['time_start']).' at '.date('H:i a',$booking_details_waiting['time_start']).', patient '.decrypt_data($patient_data_waiting['pt_name']);
$notification = array('doctor_id' => $booking_details_waiting['doc_id'],'type'=>2,'message'=>$text,'read_status'=>0,'time'=>strtotime($nowin_server) );
......
......@@ -707,6 +707,7 @@ class Printer extends CI_Controller {
public function print_page($html,$record_id)
{
print_r($html);exit();
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
......
......@@ -923,7 +923,7 @@ class Searchdoctor extends CI_Controller {
/*------------------------------------------------*/
$text = 'A new appointment was scheduled in the system, on '.date('d.m.Y',$book_start_time).' at '.date('H:i a',$book_start_time).', patient '.$userdata['name'];
$text = 'A new appointment was scheduled in the system, on '.date('d.m.Y',$book_start_time).' at '.date('H:i a',$book_start_time).', patient '.decrypt_data($userdata['name']);
......@@ -1274,7 +1274,7 @@ else
/*------------------------------------------------*/
$text = 'A new appointment was scheduled in the system, on '.date('d.m.Y',$booking_details['time_start']).' at '.date('H:i a',$booking_details['time_start']).', patient '.$patient_data['pt_name'];
$text = 'A new appointment was scheduled in the system, on '.date('d.m.Y',$booking_details['time_start']).' at '.date('H:i a',$booking_details['time_start']).', patient '.decrypt_data($patient_data['pt_name']);
......
......@@ -172,7 +172,7 @@ if($this->session->userdata('language') == 'en'){
</div>
</div> -->
<div class="ip_login_input_row">
<input name="login-form-username" data-parsley-required class="ip_login_input ip_login_user clear-login-data" onKeyPress="if(this.value.length > 25) return false;" placeholder="<?php load_language('login');?>">
<input name="login-form-username" data-parsley-required class="ip_login_input ip_login_user clear-login-data" onKeyPress="if(this.value.length > 25) return false;" placeholder="<?php load_language('username');?>">
</div>
<div class="ip_login_input_row">
......@@ -226,7 +226,7 @@ if($this->session->userdata('language') == 'en'){
</div>
<div class="ip_login_input_form">
<div class="ip_login_input_row">
<input name="login-form-username" data-parsley-required class="ip_login_input ip_login_user clear-login-data" onKeyPress="if(this.value.length > 25) return false;" placeholder="<?php load_language('login');?>">
<input name="login-form-username" data-parsley-required class="ip_login_input ip_login_user clear-login-data" onKeyPress="if(this.value.length > 25) return false;" placeholder="<?php load_language('username');?>">
</div>
<div class="ip_login_input_row">
......
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