Hallo Sander!
ja, ich komme aus Polen, Danzig;-)) kennst Du Polen??
Ach so, noh etwas: ich habe im maintemplate schließlich 2 includes eingebaut: eins zum blättern und eines je nachdem - zum anzeigen, was sein soll
quellcode maintemplate:
(sehr leicht gekürzt)
<html>
<body bgcolor="#509666">
<div align="center">
<center>
<table border="0" width="700" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<table border="0" width="100%" background="http://www.peryskop.de/images/p.gif">
<tr>
<td width="200" background="http://www.peryskop.de/images/textura.gif" rowspan="6"> </td>
<td rowspan="2"><a href="http://baseportal.de/cgi-bin/baseportal.pl?htx=/peryskop/peryskop_pl/maintemplate&db=startseite&include=inhalt&range=0,999"><img src="http://www.peryskop.de/images/pertytm.jpg" alt="Strona glówna" width="433" height="106" border="0"></a></td>
<td align="center">
<a href="mailto:%20info@peryskop.de"><img src="http://www.peryskop.de/images/koperta.jpg"
alt="Napisz do nas email" border="0" width="35" height="30"></a></td>
</tr>
<tr>
<td>
<include src=blaettern>
</td>
</tr>
<tr>
<td colspan="2">
<table border="0" width="100%" cellspacing="0">
<tr>
<td><a href="http://baseportal.de/cgi-bin/baseportal.pl?htx=/peryskop/peryskop_pl/maintemplate&db=o_nas&include=inhalt&range=0,999"><img src="http://www.peryskop.de/images/o_nas.gif" width="40"
height="20" alt="Historia pisma" border="0"></a></td>
<td><a href="http://baseportal.de/cgi-bin/baseportal.pl?htx=/peryskop/peryskop_pl/maintemplate&db=archiwum&include=liste&range=0,10"><img src="http://www.peryskop.de/images/archiwum.gif"
alt="Archiwum PERYSKOPU" border="0" width="60" height="20"></a></td>
<td><a href="http://baseportal.de/cgi-bin/baseportal.pl?htx=/peryskop/peryskop_pl/maintemplate&db=linki&include=inhalt&range=0,10"><img src="http://www.peryskop.de/images/linki.gif" alt="Linki"
border="0" width="40" height="20"></a></td>
<td><a href="http://baseportal.de/cgi-bin/baseportal.pl?htx=/peryskop/peryskop_pl/maintemplate&db=archiwum&include=numer_template&range=0,1&sort=-&nn=nn"><img src="http://www.peryskop.de/images/nowynumer.gif" width="90" height="20"
alt="Najnowszy numer" border="0"></a></td>
<td><a href="http://baseportal.de/cgi-bin/baseportal.pl?htx=/peryskop/peryskop_pl/maintemplate&db=stopka&include=inhalt&range=0,999"><img src="http://www.peryskop.de/images/stopka.gif" width="50" height="20"
alt="Stopka redakcyjna" border="0"></a></td>
<td><a href="http://baseportal.de/cgi-bin/baseportal.pl?htx=/peryskop/peryskop_pl/maintemplate&db=prenumerata&include=inhalt&range=0,999"><img src="http://www.peryskop.de/images/prenumerata.gif"
alt="Warunki prenumeraty" border="0" width="80" height="20"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<perl>
<include src=$include>
</td>
</tr>
<tr>
<td colspan="2">
<!--Iframe SRC="http://userpage.fu-berlin.de/~mmirski/money/ads.cgi" WIDTH="468" HEIGHT="60" frameborder="no" border="0" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" align="center">
</iframe-->
</td>
</tr>
<tr>
<td colspan="2">Copyright 1997-<perl>
out datum("jetzt","Jahr");
</perl> by <a href="mailto:%20info@peryskop.de">Michał Mirski</a>, all right reserved.
<!--a target="_new" href="http://v1.nedstatbasic.net/stats?AAG63gHYrBVCxesCSRoZLAcea//w"><img
src="http://m1.nedstatbasic.net/n?id=AAG63gHYrBVCxesCSRoZLAcea//w" border="0" width="15" height="15"></a-->
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
</body>
Code include blättern:
if ($nn ne "nn")
{
$newrange=$_range+$_range_length;
$oldrange=$_range-$_range_length;
$oldrange=0 if $oldrange<0 && $oldrange>-$_range_length;
out "<a href=\"$_link&include=$include&db=$db&range=$oldrange,$_range_length\"><img src=\"http://peryskop.de/images/strzala_lewo.gif\" border=0></a>"
if $oldrange>=0;
out "<a href=\"$_link&include=$include&db=$db&range=$newrange,$_range_length\"><img src=\"http://peryskop.de/images/strzala_prawo.gif\" border=0></a>"
if $newrange<$_amount_query
}
</loop>
Code include, als Beispiel Archiv:
ukazaly sie:
<loop code=perl>
out $_range+$_loop+1," Numer (",$ausgabe_monat,"/",$ausgabe_jahr,") dnia: <a href=\"$_link&include=numer_template&db=$db&range=$_id,1\">$ausgabe_tag/$ausgabe_monat/$ausgabe_jahr</a>
<br>";
</loop>
So, wenn Du zB. das Range bei der Übergabe im Archiv von 0,10 auf 0,1 änderst, wirst Dusehehn, dass es ghet:-)))
Michal.