$y = $tot;
$prev = -1;
$next = 999999;
+ #$next = $tot + 1;
+ #debug('zaza');
+ #$this->debug("x=$x limit=$y prev=$prev next=$next tot=$tot",0);
}
- if ($prev>=0) $html .= '<span class="prev"><a href="'.$this->url_list('limit',preg_replace('/^0,/','',"$prev,$y")).'"><</a></span> ';
+ if ($prev>=0) {
+ $html .= '<span class="prev"><a href="'.$this->url_list('limit',preg_replace('/^0,/','',"$prev,$y")).'"><</a></span> ';
+ }
$html .= '<span class="count">'.($tot ? ($x+1) : 0).' - '.( $tot<($x+$y) ? $tot : ($x+$y) ).' / '.$tot.'</span>';
- if ($next<$tot) $html .= ' <span class="next"><a href="'.$this->url_list('limit',"$next,$y").'">></a></span>';
+ if ($next<$tot) {
+ $html .= ' <span class="next"><a href="'.$this->url_list('limit',"$next,$y").'">></a></span>';
+ }
return $html;