%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class InternationalPatients extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('medical_package_model', 'package'); $this->load->model('patient_story_model', 'patient_story'); $this->load->model('testimonial_model', 'testimonial'); $this->load->model('Medical_Procedure_Model', 'medical'); $this->load->model('appointment_model', 'appointment'); } public function index() { if($this->uri->segment(1)=='InternationalPatients' || $this->uri->segment(1)=='internationalpatients'){ redirect('international-patients');} $data = array(); $this->load->library('email'); $seoArray = getdynamicseo($this->uri->segment(1)); $head['page_title'] = $seoArray->SEOTitle!='' ? $seoArray->SEOTitle : 'International Patients |Sharda Hospital'; $head['page_description'] = $seoArray->SEODescription!='' ? $seoArray->SEODescription : 'International Patients |Sharda Hospital'; $head['page_keyword'] = $seoArray->SEOKeywords!='' ? $seoArray->SEOKeywords : 'International Patients |Sharda Hospital'; // $data['page_title'] = 'International Patients|Sharda Hospital'; //To be used in header forms $data['packages'] = $this->package->get_medical_packages(); $data['patient_stories']=$this->patient_story->get_patient_stories_summary('','','',array(),'','A',4); $data['testimonal']=$this->testimonial->view_testimonials(); $data['medical']=$this->medical->get_Medical_Procedure('sh_medical_procedure',' * '); $data['header_css'] = '<!--slider css--> <link rel="stylesheet" href="'.base_url().'assets/css/owl.carousel.css" /> <link rel="stylesheet" href="'.base_url().'assets/css/slider/owl.theme.default.min.css"> <!--slider css-->'; $post=$this->input->post(); if($post){ $this->form_validation->set_rules('full_name', 'Full Name', 'required|trim'); $this->form_validation->set_rules('age', 'Age', 'trim|required'); $this->form_validation->set_rules('gender', 'Gender', 'required'); $this->form_validation->set_rules('email_id', 'Email ID', 'trim|required|valid_email'); $this->form_validation->set_rules('country', 'Country', 'required'); $this->form_validation->set_rules('contact_number', 'Contact Number', 'trim|required|numeric|min_length[10]'); $this->form_validation->set_rules('medical', 'Medical Procedure', 'required'); if ($this->form_validation->run() == FALSE) { $error = $this->form_validation->error_array(); $error_msg = implode('\n',$error); $data['submit_status_msg'] = '<span style="color:red;font-size:12px; margin-top:0px;">Your Request could not be submitted:\n</span>'.$error_msg; } else { $documents = $_FILES['documents']['name']; if(!empty($documents)){ $filepath = 'uploads/getanestimate/'.time().'_'.$documents; $movefile_status = move_uploaded_file($_FILES["documents"]["tmp_name"],$filepath); } else { $filepath = ''; } $medical_prescription = $_FILES['last_medical_prescription']['name']; if(!empty($medical_prescription)){ $fileNewpath = 'uploads/getanestimate/'.time().'_'.$medical_prescription; $medical_prescription_status = move_uploaded_file($_FILES["last_medical_prescription"]["tmp_name"],$fileNewpath); } else { $filepath = ''; } $insert_data = array( 'full_name' => $post['full_name'], 'age' => $post['age'], 'gender' => $post['gender'], 'email_id' => $post['email_id'], 'country' => $post['country'], 'contact_number' => $post['contact_number'], 'medical_procedure' => $post['medical'], 'documents' => time().'_'.$documents, 'medical_prescription' => time().'_'.$medical_prescription, 'comments' => $post['comments'] ); $success = $this->appointment->insert_getanestimate($insert_data); if($success>0){ $data = $this->appointment->get_getanestimate(array('id'=>$success)); // print_r($data); $patientmail = $data['email_id']; // $msg = $this->load->view("email_templates/appointment_request", $data, TRUE); // print_r($msg); // die(); // $this->email->from('info@shardahospital.org', 'Appointment Request'); // if($data['RequestLocation']=='International') { $to = 'queries@shardahospital.org'; } else { $to = 'marketing@shardahospital.org'; } // $this->email->to($to); // $this->email->bcc($patientmail); // $this->email->cc('digital.marketing@shardahospital.org'); // $this->email->subject('Book Appointment with sharda hospital'." | ".$currentTime); // $this->email->set_mailtype("html"); // $this->email->message($msg); // $this->email->send(); $data['submit_status_msg'] = '<span style="color:green;font-size:12px; margin-top:0px;">Your Appointment Request has been submitted successfully. We will contact you soon!</span>'; // send_email_multiple("abdesh@futuretechin.com","marketing@shardahospital.org", "", "digital.marketing@shardahospital.org", "Appointment Request", $msg); // redirect(base_url()."success"); } else{ $data['submit_status_msg'] = '<span style="color:red;font-size:12px; margin-top:0px;">Unable to submit your request. Kindly try again later.</span>'; } } } $this->load->view('_parts/header',$head); $this->load->view('internationalpatients',$data); $this->load->view('_parts/footer'); } }