rs->isEmpty()) { echo '
' . __('No short link') . '
'; } else { $pager = new pager($page, $this->rs_count, $nb_per_page, 10); $pager->base_url = $url; $html_block = '' . __('Hash') . ' | ' . '' . __('Link') . ' | ' . '' . __('Date') . ' | ' . '' . __('Service') . ' | ' . '
---|
' . __('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 '