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 = ''. ''. ''. ''. ''. ''. ''. ''. ''. ''. ''. ''. '%s'. '
'.__('Title').''.__('Author').''.__('Description').''.__('Links').''.__('Category').''.__('My rating').''.__('Date').'
'; 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->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 ''."\n". ''. form::checkbox(array('links[]'), $this->rs->link_id, 0). ''. ''. ''. html::escapeHTML($this->rs->link_title). ''. "\n". ''. html::escapeHTML($this->rs->link_author). "\n". ''. html::escapeHTML($this->rs->link_desc). "\n". ''. ''.__('URL').' '. ''.__('image').' '. "\n". ''. html::escapeHTML($this->rs->cat_title). "\n". ''. html::escapeHTML($this->rs->link_note).'/20'. "\n". ''. dt::dt2str($GLOBALS['core']->blog->settings->system->date_format.', '.$GLOBALS['core']->blog->settings->system->time_format,$this->rs->link_upddt,$GLOBALS['core']->auth->getInfo('user_tz')). "\n". ''."\n"; } }