コード例 #1
0
ファイル: ControllerMilitaries.php プロジェクト: s9271/SEW3
 protected function getPageList()
 {
     $this->searchActions();
     $this->actions();
     // strony
     $this->controller_name = 'jednostki';
     $this->using_pages = true;
     $this->count_items = ClassMilitary::sqlGetCountItems($this->search_controller);
     $this->current_page = ClassTools::getValue('number_page') ? ClassTools::getValue('number_page') : '1';
     // tytul strony
     $this->tpl_title = 'Jednostki: Lista';
     // tylul na pasku
     $this->top_title = 'Lista jednostek wojskowych';
     // ladowanie funkcji
     $this->load_select2 = true;
     $this->load_js_functions = true;
     // pobieranie wszystkich rekordow
     $this->tpl_values = ClassMilitary::sqlGetAllItems($this->using_pages, $this->current_page, $this->items_on_page, $this->search_controller);
     // ladowanie strony z lista
     return $this->loadTemplate('/military/list');
 }