rs->isEmpty()) { echo '

' . __('No short link') . '

'; } else { $pager = new pager($page, $this->rs_count, $nb_per_page, 10); $pager->base_url = $url; $html_block = '' . '' . '' . '' . '' . '' . '' . '' . '' . '%s' . '
' . __('Hash') . '' . __('Link') . '' . __('Date') . '' . __('Service') . '
'; echo '

' . __('Page(s)') . ' : ' . $pager->getLinks() . '

'; $blocks = explode('%s', $html_block); echo $blocks[0]; $this->rs->index(((integer)$page - 1) * $nb_per_page); $iter = 0; while ($iter < $nb_per_page) { echo $this->line($url,$iter); if ($this->rs->isEnd()) { break; } else { $this->rs->moveNext(); } $iter++; } echo $blocks[1]; echo '

' . __('Page(s)') . ' : ' . $pager->getLinks() . '

'; } } private function line($url, $loop) { $type = $this->rs->kut_type; $hash = $this->rs->kut_hash; if (null !== ($o = kutrl::quickService($this->rs->kut_type))) { $type = '' . $o->name . ''; $hash = '' . $hash . ''; } return '' . "\n" . '' . form::checkbox(['entries[' . $loop . ']'], $this->rs->kut_id, 0) . '' . '' . $hash . "\n" . '' . '' . $this->rs->kut_url . '' . "\n" . '' . dt::dt2str(__('%Y-%m-%d %H:%M'), $this->rs->kut_dt, $this->core->auth->getInfo('user_tz')) . "\n" . '' . $type . "\n" . '' . "\n"; } }