rs->isEmpty()) { $pager = new pager($page,$this->rs_count,$nb_per_page,10); $pager->var_page = 'page'; echo '

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

'; $blocks = explode('%s',$html_block); echo $blocks[0]; echo ''. ''. ''. ''. ''. ''. ''. ''. ''. ''. ''. ''; $this->rs->index(((integer)$page - 1) * $nb_per_page); $iter = 0; while ($iter < $nb_per_page) { $this->logLine(); if ($this->rs->isEnd()) { break; } else { $this->rs->moveNext(); $iter++; } } echo ''. '
'.__('Date').''.__('Message').''.__('Blog').''.__('Component').''.__('User').''.__('IP').'
'; echo $blocks[1]; echo '

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

'; } else { echo '

'.__('No log').'

'; } } private function logLine() { $format = $this->core->blog->settings->system->date_format.' - '.$this->core->blog->settings->system->time_format; $tz = dt::getTimeOffset($this->core->blog->settings->system->blog_timezone); $date = dt::str($format,strtotime($this->rs->log_dt) + $tz); echo ''."\n". ''. form::checkbox(array('ids[]'),$this->rs->log_id). ' '.html::escapeHTML($date). "\n". ''. html::escapeHTML($this->rs->log_msg). "\n". ''. html::escapeHTML($this->rs->blog_id). "\n". ''. html::escapeHTML($this->rs->log_table). "\n". ''. html::escapeHTML($this->rs->getUserCN()). "\n". ''. html::escapeHTML($this->rs->log_ip). "\n". "\n"; } } ?>