%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 PatientStory extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see https://codeigniter.com/user_guide/general/urls.html */ function __construct() { parent::__construct(); $this->load->model('patient_story_model', 'patient_story'); } public function index($id=0) { if(!$id){ $this->view_patient_stories(); } else{ $this->view_patient_story($id); } } public function view_patient_stories(){ $data['patient_stories'] = $this->patient_story->get_active_patient_stories(); $seoArray = getdynamicseo($this->uri->segment(1)); $data['page_title'] = $seoArray->SEOTitle!='' ? $seoArray->SEOTitle : 'Patient Stories | Sharda Hospital'; $data['page_description'] = $seoArray->SEODescription!='' ? $seoArray->SEODescription : 'Patient Stories | Sharda Hospital'; $data['page_keyword'] = $seoArray->SEOKeywords!='' ? $seoArray->SEOKeywords : 'Patient Stories | Sharda Hospital'; // $data['page_title']='Patient Stories|Sharda Hospital'; //To be used in header forms $data['departments_list']=$this->department->get_department_list( 'DepartmentType ASC', 'A'); $this->load->view('patient_story',$data); } public function view_patient_story($id){ $this->load->model('doctor_model', 'doctor'); $data = array(); $story_id = $id; if(is_numeric($id)){ $data['patient_story'] = $this->patient_story->get_patient_story_details($id); } else{ $story_id = $this->patient_story->get_patient_story_id($id)['PatientStoryID']; $data['patient_story'] = $this->patient_story->get_patient_story($story_id); /*echo '<script>console.log("Story ID: '.$story_id.'")</script>';*/ } // If story blank then we redirect to story listing page if(empty($data['patient_story'])) { redirect('/patient-story', 'refresh'); } $department_id = $data['patient_story']['PatientStoryDepartment']; $data['related_doctors'] = $this->doctor->get_doctors('DoctorName,DoctorProfilePic,DoctorPageURL',array(),'',$department_id,'','','A'); $data['page_title'] = $data['patient_story']['PatientStoryTitle'].'|Sharda Hospital'; //To be used in header forms $data['departments_list']=$this->department->get_department_list( 'DepartmentType ASC', 'A'); $this->load->view('patient_story_detail',$data); } }