%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 Orders extends VENDOR_Controller { private $num_rows = 20; public function __construct() { parent::__construct(); $this->load->model(array('Orders_model', 'Products_model')); } public function index($page = 0) { $data = array(); $head = array(); $head['title'] = 'Vendor Profile'; $head['description'] = 'Vendor Profile'; $head['keywords'] = ''; $rowscount = $this->Orders_model->ordersCount($this->vendor_id); $data['orders'] = $this->Orders_model->orders($this->num_rows, $page, $this->vendor_id); $this->load->view('_parts/header', $head); $this->load->view('profile', $data); $this->load->view('_parts/footer'); } public function getProductInfo($product_id, $vendor_id) { return $this->Products_model->getOneProduct($product_id, $vendor_id); } public function changeOrdersOrderStatus() { $result = $this->Orders_model->changeOrderStatus($_POST['the_id'], $_POST['to_status']); if ($result == false) { echo '0'; } else { echo '1'; } } }