%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 if (!defined('BASEPATH')) { exit('No direct script access allowed'); } class Vendor extends ADMIN_Controller { public function __construct() { parent::__construct(); $this->load->model(array('Vendor_model')); } public function index() { $this->login_check(); $data = array(); $head['title'] = 'Administration - Tests Categories'; $head = array(); $data['view_vendor'] = $this->load->Vendor_model->getVendors(); $this->load->view('_parts/header', $head); $this->load->view('vendor/vendor',$data); $this->load->view('_parts/footer'); } public function status(){ extract($_POST); $urlshow = base_url(); $config = Array( 'protocol' => 'sendmail', 'mailtype' => 'html', 'charset' => 'utf-8', 'wordwrap' => TRUE ); $this->load->library('email',$config); $post=$this->input->post(); $stid = $post['stid']; $STID = explode(',',$stid); //print_r($STID); $First = $STID[0]; $st = $STID[1]; $success = $this->load->Vendor_model->updatestatus($First,$st); /***************** EMAIL ****************/ if($success){ $datshow = $this->load->Vendor_model->getsingle($First); foreach($datshow as $recd){ $to_email = $recd['email']; $username = $recd['name']; $active1 = $recd['approved']; $pancard = $recd['pan_card']; $phone_no = $recd['phone']; //$emailtest = "praveen.kumar@shardatech.org"; } $from_email = "praveenpnf@gmail.com"; //$to_email = 'praveen.kumar@shardatech.org'; if($active1=='1'){ $approve_action="activated"; } else { $approve_action="de-activated"; } $body = "<!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=iso-8859-1' /> <title>Sharda Diagnostics 2018</title> <style type='text/css'> a{color:#000066; text-decoration:none;} .button { display: block; width: 115px; height: 25px; background:#0099CC; padding: 10px; text-align: center; border-radius: 5px; color: white; font-weight: bold; } </style> </head> <body style='font-family:Calibri'> <table width='700' border='0' align='center' cellpadding='0' cellspacing='0' style='border:1px solid #999'> <tbody><tr> <td><table width='100%' border='0' cellspacing='0' cellpadding='0'> <tbody><tr> <td width='2%'> </td> <td width='96%'><table width='100%' border='0' cellspacing='0' cellpadding='0'> <tbody><tr> <td width='72%'><img src='".base_url()."attachments/site_logo/Logo.png' class='CToWUd'></td> <td width='28%'><table width='100%' border='0' cellspacing='0' cellpadding='0' align='right'> <tbody> </tbody></table></td> </tr> </tbody></table></td> <td width='2%'> </td> </tr> </tbody></table></td> </tr> <tr> <td> </td> </tr> <tr> <td style='background:#ffd200;float:left;width:100%;height:5px'></td> </tr> <tr> <td> </td> </tr> <tr> <td><table width='100%' border='0' cellspacing='0' cellpadding='0'> <tbody><tr> <td> </td> <td style='background:#f1f2f4'> </td> <td> </td> </tr> <tr> <td> </td> <td style='background:#f1f2f4'><table width='100%' border='0' cellspacing='0' cellpadding='0'> <tbody><tr> <td width='2%'> </td> <td width='95%' style='font-family:Arial,Helvetica,sans-serif;font-size:13px'> <p style='font-family:Arial,Helvetica,sans-serif;font-size:20px;color:#333333'>Dear Vendor,</p> <p>Your Account has been ".$approve_action.". Click here for <a href='".base_url()."vendor/login'>Login</a></p> <p><strong>Your following details.</strong></p> <p> User Name - ".$username."</p> <p> Email - ".$emailto."</p> <p> Pancard - ".$pancard."</p> <p> Phoneno - ".$phone_no."</p> <p>Our team will contact you shortly for further details.</p> <p><strong>Thanks and Regards</strong></p> </td> <td width='3%'> </td> </tr> </tbody></table></td> <td> </td> </tr> <tr> <td width='2%'> </td> <td width='96%' style='background:#f1f2f4'> </td> <td width='2%'> </td> </tr> </tbody></table></td> </tr> <tr> <td> </td> </tr> <tr> <td style='background:#ffd200'> </td> </tr> </tbody></table> </body> </html>"; $this->email->from($from_email, 'Sharda-Diagnostics'); $this->email->to($to_email); $this->email->subject('Diagnostics'); $this->email->message($body); if($mailg = $this->email->send()){ echo "Mail Sent Success"; } else { echo "Mail Not Sent Success"; } } } public function showdetail(){ $post=$this->input->post(); $sid = $post['sid']; $data['result'] = $this->load->Vendor_model->getdetail($sid); $this->load->view('vendor/viewdetail',$data); } } ?>