<perl>
$v=$v||0;
get "Id==* _fullsearch~=$suche fullsearch_match=500 range=$v,6 @_sel", "datenbankname";
</perl>
<loop _fullsearch~=$suche fullsearch_match=500 sort^=-Id code=perl db=datenbankname range^=$v,6>
html blabla...<perl>
my $range=$_range_length;
my $blaettern=$_range_length;
my $blaetter_lang=$range*6;
my $newrange=$_range+$_range_length;
my $oldrange=$_range-$_range_length;
my $color='#F5F5F5';
my $color_vonbis='#FFFFFF';
my $color_zahl='#F5F5F5';
my $color_vorzu='#F5F5F5';
my $color_balken='#F5F5F5';
my $font='Arial, Verdana, Arial';
my $size='2';
my $table='';
my $table_align='left';
#$_amount = $amount_sav;
#$_amount_query = $amount_query_sav;
out $oldrange>=0?"<a href=\"$_link&v=0&suche=$suche&@_sel&sort=$sort&kid=$kid\">|<</a>":"|<";
out "</font></td><td bgcolor=$color align='center'><font face=$font font size=$size>";
out $oldrange>=0?"<a href=\"$_link&v=$oldrange&suche=$suche&@_sel&sort=$sort&kid=$kid\"><</a>":"<<";
out "</font></td><td bgcolor=$color align='center'><font face=$font font size=$size>";
out $newrange<$_amount_query?"<a href=\"$_link&v=$newrange&suche=$suche&@_sel&sort=$sort&kid=$kid\">></a>":">>";
out "</font></td><td font face=$font font size=$size bgcolor=$color align='center'><font face=$font font size=1>";
out $newrange<$_amount_query?"<a href=\"$_link&suche=$suche&v=".($ende."0")."&@_sel&sort=$sort&kid=$kid\">>|
</a>":">|";
out "</font></td><td bgcolor=$color_vonbis width='185' align='center'><font face=$font font size=$size>Objekte ".($v+1)." bis
".(($v+$blaettern)>$_amount_query?"$_amount_query":($v+$blaettern))." von
$_amount_query</td>";
if ($_amount)
{
$vr=int($v/$blaetter_lang) unless $_range==0;
$vr=$vr*$blaetter_lang;
out "<td bgcolor=$color_vorzu align='center'><font face=$font font size=$size><a href=\"$_link&suche=$suche&v=".($vr-$blaetter_lang)."&@_sel&sort=$sort&kid=$kid>\"<<</a></font></td>" if
($vr-$blaetter_lang)>=0;
for ($i=$vr;$i<($vr+$blaetter_lang<=$_amount_query?($vr+$blaetter_lang):$_amount_query); $i+=$blaettern)
{
out "<td bgcolor=$color_zahl align='center'><font face=$font font size=$size>".($v==$i?"<b>".($i+1)."</b>":"
<a href='$_link&suche=$suche&v=$i&@_sel&sort=$sort&kid=$kid'>
".($i+1)."</a>")."</font></td>";
}
out "<td bgcolor=$color_vorzu align='center'><font face=$font font size=$size><a href=\"$_link&suche=$suche&v=$i&@_sel&sort=$sort&kid=$kid\">></a></font></td>" if $i<$_amount_query;
}
out "</font></tr></table></div>";