%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: Sharda Tech Pvt. Ltd. */ if (!defined('BASEPATH')) { exit('No direct script access allowed'); } class Managequotes extends ADMIN_Controller { public function __construct() { parent::__construct(); $this->load->model('Common_model'); } public function index() { $this->login_check(); if (isset($_GET['delete'])) { $this->Common_model->deleteRecords($_GET['delete'],'id','tbl_quotes'); $this->session->set_flashdata('success', 'Data is deleted!'); redirect('admin/managequotes'); } $data = array(); $head = array(); $head['title'] = 'Administration - Manage Quotes'; $head['description'] = '!'; $head['keywords'] = ''; // Validate the form $this->form_validation->set_rules('title', 'Title', 'trim|required'); //$this->form_validation->set_rules('slug', 'Slug', 'trim|required'); $this->form_validation->set_rules('status', 'Status', 'trim|required'); if ($this->form_validation->run($this)) { $_POST['description'] = seo_friendly_url($_POST['description']); $this->Common_model->setRecords($_POST, 'tbl_quotes'); $this->saveHistory('upload new file - ' . $_POST['title']); redirect('admin/managequotes'); } if(isset($_GET['edit'])) { $_POST = $this->Common_model->getRecords($_GET['edit'], 'tbl_quotes'); } // Get All Quotes $data['quotesRecords'] = $this->Common_model->getRecords(NULL, 'tbl_quotes'); $this->load->view('_parts/header', $head); $this->load->view('managequotes/managequotes', $data); $this->load->view('_parts/footer'); $this->saveHistory('Go to Quotes'); } }