%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 Complaint extends CI_Controller { function __construct(){ parent::__construct(); $this->load->model(array('Home_Model')); $userData = $this->session->userdata('user_data'); } /* * Function : index * * */ public function index() { $data = array(); $header = array(); //$userData = $this->session->userdata('user_data'); $data['userInfo'] = $userData; $header['title'] = 'Confirm Your Details - Assets Management Online Portal'; $record_num = end($this->uri->segment_array()); $validate = $this->Home_Model->getSingleRecord('tbl_custompage', '*', array('custom_slug'=>$record_num,'status'=>'1')); if(empty($validate)) { redirect('?msg=error'); } $resp = $this->sendUserEmail($validate); if($resp){ redirect('complaint/thanks?msg=success'); } exit(); } /* * Function : thanks * */ public function thanks() { $data = array(); $header = array(); $record_num = end($this->uri->segment_array()); $this->load->view('_parts/header'); $this->load->view('thanks',$data); $this->load->view('_parts/footer'); } /* * Function : sendUserEmail * */ public function sendUserEmail($userData) { //Get User Details $category = trim($userData['category']); $emailArray = array('IT Services'=>'hospital.it@sharda.ac.in', 'Maintenance'=>'hospital.maintenance@sharda.ac.in', 'Biomedical'=>'hospital.biomedical@sharda.ac.in'); $toEmailId = $emailArray[$category]; $ccEmail = $userData['custodian_email_id']; $subject = 'Complaint is Related to '.$userData['category'].'/ '.$userData['asset_tag'].'/'.$userData['equipment_type']; $message = $this->myTemplate($userData); if($toEmailId!='') { //send_email_pepipost_email($toEmailId.','.$ccEmail, $subject, $message); $this->Home_Model->sendSMTPCommonEmail($toEmailId, $subject, $message, $ccEmail); } return true; } /* * Function : myTemplate * */ public function myTemplate($results) { $template = ''; $template = ' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Sharda Hospital</title> </head> <body> <table style="width:600px; margin:0px auto;" cellpadding="0" border="0" cellspacing="0"> <tr> <td colspan="2" style="font-family:Tahoma, Geneva, sans-serif; padding:20px 20px 20px 20px; border-right:1px solid #ccc;border-left:1px solid #ccc;"> <p style="font-size:18px; font-family:Tahoma, Geneva, sans-serif; color:#444;">Dear '.$results["category"].',</p> <p style="font-size:14px; font-family:Tahoma, Geneva, sans-serif; color:#444;padding-top:20px;">Complaint is related to the below Asset....</p> <br/> <p style="font-size:16px; font-family:Tahoma, Geneva, sans-serif; color:#444;padding-top:5px;">Asset Detail:</p> <table border="1" bordercolor="#ddd" cellpadding="10" cellspacing="0" id="emailContainer" style="font-size:12px; width:100%;"> <tr> <th align="left" style="color:#222; background:#FAFAFA;">Equipment Type</th> <td align="left" valign="top">'.$results["equipment_type"].'</td> </tr> <tr> <th align="left" style="color:#222; background:#FAFAFA;">Department</th> <td align="left" valign="top">'.$results["department"].'</td> </tr> <tr> <th align="left" style="color:#222; background:#FAFAFA;">Floor</th> <td align="left" valign="top">'.$results["floor"].'</td> </tr> <tr> <th align="left" style="color:#222; background:#FAFAFA;">Room No. </th> <td align="left" valign="top">'.$results["room_no"].'</td> </tr> <tr> <th align="left" style="color:#222; background:#FAFAFA;">Location</th> <td align="left" valign="top">'.$results["location"].'</td> </tr> <tr> <th align="left" style="color:#222; background:#FAFAFA;">Manufacture</th> <td align="left" valign="top">'.$results["manufacture"].'</td> </tr> <tr> <th align="left" style="color:#222; background:#FAFAFA;">SNo</th> <td align="left" valign="top">'.$results["sno"].'</td> </tr> <tr> <th align="left" style="color:#222; background:#FAFAFA;">Asset Tag</th> <td align="left" valign="top">'.$results["asset_tag"].'</td> </tr> <tr> <th align="left" style="color:#222; background:#FAFAFA;">Model</th> <td align="left" valign="top">'.$results["model"].'</td> </tr> <tr> <th align="left" style="color:#222; background:#FAFAFA;">Custodian</th> <td align="left" valign="top">'.$results["custodian"].'</td> </tr> </table> <br/><br/> <p>Kindly get it resolved on priority.</p> <br/><br/> Regards,<br/> IT Team </td> </tr> <tr bgcolor="#220038"></tr> <tr bgcolor="#220038"> <td colspan="2"> <table width="100%"> <tr> <td align="center" colspan="2" valign="middle" style="padding:30px 10px 30px 10px; "> <a href="https://shardahospital.org/assets" style="color:#fff; font-size:16px; font-family:Tahoma, Geneva, sans-serif; text-decoration:none; padding:2px 0; line-height:20px;">www.shardahospital.org/assets</a> </td> </tr> </table> </td> </tr> </table> </body> </html>'; return $template; } }