%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 class General extends MY_Controller { function __construct() { parent::__construct(); ini_set('memory_limit', '2048M'); $this->load->model("leads_model", "leads"); $this->load->model("admform_model", "adm"); } function profilephoto($system_id=''){ $app_id=(int)$this->db->select("id")->get_where("applications", ['application_no'=>$system_id])->row("id"); $isPhd=$this->common->isPhd(0, $app_id); if($isPhd){ $profile_pic=$this->db->select("profile_photo")->get_where("phd_app_form", ['app_id'=>$app_id])->row("profile_photo"); }else{ $profile_pic=$this->db->select("profile_photo")->get_where("adm_form", ['app_id'=>$app_id])->row("profile_photo"); } $path=UP_PATHF.'admissions/profiles/'; if($profile_pic){ $blob=@file_get_contents($path.$profile_pic); }else{ $blob=@file_get_contents(PATHF."theme/img/no-pic.png"); } header("Content-Type: image/jpeg"); echo $blob; } function result_undertaking($id=0, $download=''){ $qs=$this->input->get(); $data=$this->adm->detail($id, false); switch($qs['exam']){ case 'status_12th': $data['exam']='12th'; break; case 'status_dip': $data['exam']='Diploma'; break; case 'status_ug': $data['exam']='Graduation'; break; case 'status_othr': $data['exam']='Graduation/Other'; break; case 'status_pg': $data['exam']='Post Graduation'; break; default: $data['exam']='12th'; } $html=$this->load->view("pages/result_undertaking", $data, TRUE); if($download==='T'){ create_pdf($html, "result-undertaking-".$data['application_no'].".pdf"); die; } echo $html; } function letter_email(){ $data['body']=$this->db->select("body")->get_where("sent_emails", ['id'=>5585])->row("body"); $html=$this->load->view("pages/letter_email", $data, TRUE); echo $html; } } //EOF