%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 /* * @Author: Chandni Gupta */ if (!defined('BASEPATH')) { exit('No direct script access allowed'); } class Leads extends VENDOR_Controller { private $num_rows = 20; public function __construct() { parent::__construct(); $this->load->model('Products_model'); } public function index($page = 0) { if (isset($_GET['delete'])) { $this->Products_model->deleteProduct($_GET['delete']); $this->session->set_flashdata('result_delete', 'product is deleted!'); $this->saveHistory('Delete product id - ' . $_GET['delete']); redirect('admin/leads'); } $data = array(); $head = array(); $head['title'] = 'Leads'; $head['description'] = 'Leads'; $head['keywords'] = ''; $rowscount = $this->Products_model->productsCount($this->vendor_id); $data['products'] = $this->Products_model->getLeads($this->num_rows, $page, $this->vendor_id); $data['links_pagination'] = pagination('vendor/leads', $rowscount, $this->num_rows); $this->load->view('_parts/header', $head); $this->load->view('leads', $data); $this->load->view('_parts/footer'); } public function deleteProduct($id) { $this->Products_model->deleteProduct($id, $this->vendor_id); $this->session->set_flashdata('result_delete', lang('vendor_product_deleted')); redirect(LANG_URL . '/vendor/products'); } public function logout() { unset($_SESSION['logged_vendor']); delete_cookie('logged_vendor'); redirect(LANG_URL . '/vendor/login'); } }