private function _artistIndex($code = 0, $by = 0, $way = "ASC", $page = 0) { if ($this->input->post('search')) { $object = $this->input->post(); $code = $this->search_model->record_term(json_encode($object)); // echo $code;die; redirect(site_url(array('admin', 'transaction', "index", $code, $by, $way, $page))); } $term = array(); if ($code) { $term = json_decode($this->search_model->get_term($code)); } $data['term'] = (array) $term; $this->load->model('trans_m'); $userid = $this->current_user->id; $trans = $this->trans_m->get_artis_trans($userid, $data, $by, $way, $page, ITEM_PER_PAGE); $pagination = panagition("admin/transaction/index/{$code}/{$by}/{$way}/", 7, $trans['total'], $page, ITEM_PER_PAGE); $this->template->set("term", (array) $term); $this->template->set('trans', $trans['objects'])->set('pagination', $pagination)->title($this->module_details['name'])->build('admin/index'); }
/** * The main index page in the administration. *aa * Shows a list of the groups. */ public function arts($code = 0, $by = 0, $way = "ASC", $page = 0) { //print_r($_POST);die; if ($this->input->post('search')) { $object = $this->input->post(); $code = $this->search_model->record_term(json_encode($object)); // echo $code;die; redirect(site_url(array('admin', 'tdesign', "manage", 'arts', $code, $by, $way, $page))); } $term = array(); if ($code) { $term = (array) json_decode($this->search_model->get_term($code)); } $object = $this->product_m->get_arts($term, $page, 10); $arts = ""; if (!empty($object)) { $arts = $object['objects']; } $this->load->helper(array("currency", 'tdesign')); $pagination = panagition("admin/tdesign/manage/arts/{$code}/{$by}/{$way}/", 8, $object['total'], $page, 10); $this->template->set('arts', $arts)->set('term', $term)->set('pagination', $pagination)->append_css("module::designer.css")->title(lang("design:arts"))->build('admin/arts'); }
public function index($code = 0, $by = 0, $way = "ASC", $page = 0) { if ($this->input->post('search')) { $object = $this->input->post(); $code = $this->search_model->record_term(json_encode($object)); // echo $code;die; redirect(site_url(array('admin', 'order', "index", $code, $by, $way, $page))); } $term = array(); if ($code) { $term = json_decode($this->search_model->get_term($code)); } $data['term'] = (array) $term; $this->load->model('order_m'); $data['term']['group_status'] = array_keys($this->_statusByGroup($this->current_user->group)); $status = $this->_statusByGroup($this->current_user->group); $designs = $this->order_m->get_orders($data, $by, $way, $page, 6); $pagination = panagition("admin/order/index/{$code}/{$by}/{$way}/", 4, $designs['total'], $page, 6); $this->template->set("term", (array) $term); $this->template->set('orders', $designs['objects'])->set('status', $status)->set('pagination', $pagination)->title($this->module_details['name'])->build('admin/index'); }
public function index($code = 0, $by = 0, $way = "ASC", $page = 0) { $this->load->library('tplate'); $categories = $this->category_model->get_option_categories(1); $this->load->model('template_m'); if ($this->input->post('search')) { $object = $this->input->post(); $code = $this->search_model->record_term(json_encode($object)); // echo $code;die; redirect(site_url(array('admin', 'template', "index", $code, $by, $way, $page))); } $term = array(); if ($code) { $term = json_decode($this->search_model->get_term($code)); } $data['term'] = $term; $templates = $this->template_m->get_templates($data, $by, $way, $page, 6); $this->template->set("term", (array) $term); $pagination = panagition("admin/template/index/{$code}/{$by}/{$way}/", 4, $templates['total'], $page, 6); $this->template->set('categories', $categories); $this->template->set('templates', $templates['objects']); $this->template->set('pagination', $pagination); $this->template->title($this->module_details['name']); $this->template->build('admin/index'); }
public function index($page = 0, $limit = 6, $code = "", $by = "id", $way = "DESC") { $this->load->library('product'); $this->load->helper("tdesign"); $designs = $this->product->get_products(array(), $page, $limit); $pagination = panagition("admin/order/index/{$code}?by={$by}&way={$way}/", 4, $designs['total'], $page, 6); $categories = array(); $this->template->set('categories', $categories); $this->template->set('designs', $designs['objects'])->set('pagination', $pagination)->title($this->module_details['name'])->build('admin/index'); }