Example #1
0
 protected function getPageList()
 {
     $this->searchActions();
     $this->actions();
     // strony
     $this->controller_name = 'odznaczenia';
     $this->using_pages = true;
     $this->count_items = ClassBadge::sqlGetCountItems($this->search_controller);
     $this->current_page = ClassTools::getValue('number_page') ? ClassTools::getValue('number_page') : '1';
     // tytul strony
     $this->tpl_title = 'Odznaczenia: Lista';
     // tylul na pasku
     $this->top_title = 'Lista odznaczeń';
     // ladowanie funkcji
     $this->load_select2 = true;
     $this->load_js_functions = true;
     // pobieranie wszystkich rekordow
     $this->tpl_values = ClassBadge::sqlGetAllItems($this->using_pages, $this->current_page, $this->items_on_page, $this->search_controller);
     // ladowanie strony z lista
     return $this->loadTemplate('/badges/list');
 }