Exemplo n.º 1
0
 public function handle_request_internel()
 {
     $params = $this->getParam();
     $itemcode = 0;
     if (!empty($params['itemparent'])) {
         $itemcode = $params['itemparent'];
     }
     if (!empty($params['itemchild'])) {
         $itemcode = $params['itemchild'];
     }
     if (!empty($params['itemchildc'])) {
         $itemcode = $params['itemchildc'];
     }
     $datacount = Bll_Menus::get_menus_info_with_item_parent_count($itemcode, null, $params['searchText']);
     if ($datacount > 0) {
         $page = isset($params['p']) ? (int) $params['p'] : 1;
         if ($this->request->is_post_method()) {
             $page = 1;
         }
         $page_size = 10;
         $show_num = 10;
         $datainfo = Bll_Menus::get_menus_info_with_item_parent_info($itemcode, null, $params['searchText'], $page, $page_size);
         $this->setAttribute('datainfo', $datainfo);
         $m_url = $this->build_url(__CLASS__);
         $this->set_multipage($page, $page_size, $datacount, $m_url, $show_num, $params);
     }
     $this->setAttribute('params', $params);
     $this->setAttribute('datacount', $datacount);
     return 'Menus_List';
 }