public function index() { $this->load->library("pagination"); $total = $this->ad_model->getAllCount(); $data['keywords'] = ""; $config = buildpage("admin/ad/index/", $total, 20, 4); $this->pagination->initialize($config); $data['results'] = $this->ad_model->getAll($config['per_page'], $this->uri->segment(4)); $this->load->view("admin/ad/index", $data); }
public function index() { $data["keywords"] = ""; $data["start"] = ""; $data["end"] = ""; $this->load->library("pagination"); $total = $this->topic_model->getAllCount(); $config = buildpage("admin/category/index/", $total, 20, 4); $this->pagination->initialize($config); $data['results'] = $this->topic_model->getAll($config['per_page'], $this->uri->segment(4)); $this->load->view("admin/topic/index", $data); }
public function search() { $uri = $this->uri->segment_array(); $keywords = isset($uri[4]) ? strip_tags($uri[4]) : strip_tags($this->input->get("keywords")); $keywords = urldecode($keywords); //var_dump($keywords); $this->load->library("pagination"); $total = $this->supp_model->search_count($keywords); $config = buildpage("admin/supp/search/" . $keywords . '/', $total, 20, 5); $this->pagination->initialize($config); $data["keywords"] = $keywords; $data["results"] = $this->supp_model->search_all($keywords, $config['per_page'], $this->uri->segment(5)); $this->load->view("admin/supp/index", $data); }
public function search() { $uri = $this->uri->segment_array(); if (isset($uri[4])) { $keywords = strip_tags($uri[4]); } else { $keywords = strip_tags($this->input->get("keywords")); } $keywords = urldecode($keywords); //var_dump($keywords); $this->load->library("pagination"); $total = $this->admin_group_model->search_by_name_count($keywords); $config = buildpage("admin/admin_group/search/", $total, 20, 5); $this->pagination->initialize($config); $data["keywords"] = $keywords; $data["results"] = $this->admin_group_model->search_by_name($keywords, $config['per_page'], $this->uri->segment(5)); $this->load->view("admin/admin_group/index", $data); }
{ $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload"); header("Location: " . $Redirect); exit; } //End Go to destination page //Initialize HTML Template @1-A0111C9D $CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView"); $Tpl = new clsTemplate(); include './Lang/lang_class.php'; $Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main"); $CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow"); //End Initialize HTML Template buildpage($_GET["id"]); global $accounting; $db = new clsDBNetConnect; $query = "select * from subscription_plans where `id`='" . $_GET["id"] . "'"; $db->query($query); if ($db->next_record()){ if ($accounting["authorize_on"] == 0 || !$db->f("authnet")){ $charges1->Visible = false; } } //Show Page @1-A025E414 $Header->Show("Header"); $charges1->Show(); $Footer->Show("Footer");
/** * 商品搜索功能 * @Author Shanghai ZhiYan Technology Co., Ltd. */ public function search() { $uri = $this->uri->segment_array(); $keywords = isset($uri[4]) ? strip_tags($uri[4]) : strip_tags($this->input->get("keywords")); $keywords = urldecode($keywords); $data['keywords'] = $keywords; $total = 0; $total = $config = buildpage("admin/product/search", $total, 20, 4); $this->pagination->initialize($config); $this->load->view("admin/product/index", $data); }