hm ist doch alles in der class vordefiniert:
// next / prev:
$url = $this->getLinkUrl("","begin_at");
// Reset:
$subpartArray=array();
$wrappedSubpartArray=array();
$markerArray=array();
if ($newsCount > $begin_at+$this->config["limit"]) {
$next = ($begin_at+$this->config["limit"] > $newsCount) ? $newsCount-$this->config["limit"] : $begin_at+$this->config["limit"];
$wrappedSubpartArray["###LINK_NEXT###"]=array('<A href="'.$url.'&begin_at='.$next.'">','</A>');
} else {
$subpartArray["###LINK_NEXT###"]="";
}
if ($begin_at) {
$prev = ($begin_at-$this->config["limit"] < 0) ? 0 : $begin_at-$this->config["limit"];
$wrappedSubpartArray["###LINK_PREV###"]=array('<A href="'.$url.'&begin_at='.$prev.'">','</A>');
} else {
$subpartArray["###LINK_PREV###"]="";
}
$markerArray["###BROWSE_LINKS###"]="";
if ($newsCount > $this->config["limit"] ) { // there is more than one page, so let's browse
for ($i = 0 ; $i < ($newsCount/$this->config["limit"]); $i++) {
if (($begin_at >= $i*$this->config["limit"]) && ($begin_at < $i*$this->config["limit"]+$this->config["limit"])) {
$markerArray["###BROWSE_LINKS###"].= ' <b>'.(string)($i+1).'</b> ';
// you may use this if you want to link to the current page also
// $markerArray["###BROWSE_LINKS###"].= ' <A href="'.$url.'&begin_at='.(string)($i * $this->config["limit"]).'"><b>'.(string)($i+1).'</b></A> ';
} else {
$markerArray["###BROWSE_LINKS###"].= ' <A href="'.$url.'&begin_at='.(string)($i * $this->config["limit"]).'">'.(string)($i+1).'</A> ';
}
}
}