rs->isEmpty()) { echo '
'.__('There is no link').'
'; } else { $pager = new pager($page, $this->rs_count, $nb_per_page,10); $pager->base_url = $url; $html_block = ''.__('Title').' | '. ''.__('Author').' | '. ''.__('Description').' | '. ''.__('Links').' | '. ''.__('Category').' | '. ''.__('My rating').' | '. ''.__('Date').' | '. '
---|
'.__('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->linkLine($url,$iter); if ($this->rs->isEnd()) break; else $this->rs->moveNext(); $iter++; } echo $blocks[1]; echo ''.__('Page(s)').' : '.$pager->getLinks().'
'; } } private function linkLine($url, $loop) { return '