%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 Subscribed extends ADMIN_Controller { private $num_rows = 10; public function __construct() { parent::__construct(); $this->load->model(array('Subscribed_model', 'Languages_model', 'Categories_model')); } public function index($page = 0) { $this->login_check(); $data = array(); $head = array(); $head['title'] = 'Administration - View products'; $head['description'] = '!'; $head['keywords'] = ''; unset($_SESSION['filter']); $search_title = null; if ($this->input->get('search_title') !== NULL) { $search_title = $this->input->get('search_title'); $_SESSION['filter']['search_title'] = $search_title; $this->saveHistory('Search for product title - ' . $search_title); } $orderby = null; if ($this->input->get('order_by') !== NULL) { $orderby = $this->input->get('order_by'); $_SESSION['filter']['order_by '] = $orderby; } $data['products_lang'] = $products_lang = $this->session->userdata('admin_lang_products'); $rowscount = $this->Subscribed_model->productsCount($search_title, $category); $data['products'] = $this->Subscribed_model->getProducts($this->num_rows, $page, $search_title, $orderby); $data['links_pagination'] = pagination('admin/subscribed', $rowscount, $this->num_rows, 3); $data['num_shop_art'] = $this->Subscribed_model->numShopproducts(); $data['languages'] = $this->Languages_model->getLanguages(); $data['shop_categories'] = $this->Categories_model->getShopCategories(null, null, 2); $this->saveHistory('Go to products'); $this->load->view('_parts/header', $head); $this->load->view('admin/subscribed/subscribed', $data); $this->load->view('_parts/footer'); } public function getProductInfo($id) { $this->login_check(); return $this->Subscribed_model->getOneProduct($id); } /* * called from ajax */ public function productStatusChange() { $this->login_check(); $result = $this->Subscribed_model->productStatusChange($_POST['id'], $_POST['to_status']); if ($result == true) { echo 1; } else { echo 0; } $this->saveHistory('Change product id ' . $_POST['id'] . ' to status ' . $_POST['to_status']); } }