<?php
#########################################
# - McKay-Gallery 0.2 - #
# #
# Script (C) by Manuel Krischer #
# Published under the GNU GPL License #
# http://www.edv-krischer.de #
# published 18.05.2005 #
#########################################
?>
<?php include('language.php'); // Sprachdatei laden ?>
<h1><?php echo ($h1); ?></h1>
<h6><?php echo ($overview.': '.$topic); ?></h6>
<div id="thumbox">
<?php
// Variablenzuweisung
if ($page == '') { $page = ('1'); } //Vorgabe der Seite, wenn ohne Parameteraufruf
if ($pps == '') { $pps = ('30'); } //Vorgabe der Bilder pro Seite, wenn ohne Parameteraufruf
$max1 = $max+1;
$pages1 = $pages+1;
//PROGRAMMCODE
// Schleifenkonstrukt zum generieren der Seitenzuordnungzuordnung
if ($max<=$pps) { $pages=('1'); }
if ($max>$pps) { $pages=('2'); }
for ($z=2;$z<($max/$pps);$z++) {
if ($max>$z*$pps) { $pages=($z+1); }
else exit;
}
?>
<?php
//Generierung und Darstellung der Seitenlinks
echo ('<div id="links">');
echo ($site.': ');
for ($y=1;$y<=($max/$pps)+1;$y++) {
if ($y == $page) {
echo ('<span id="aktiv">['.$y.']</span> '); }
else {
echo ('<a href="?page='.$y.'">['.$y.']</a> ');
}
}
echo ('</div>');
if ($page==1) {$xs = 1; $max1 = $pps+1; }
elseif ($page==2) {$xs = $pps+1; $max1 = $pps*2+1; }
elseif ($page>2) {$xs = ($pps*($page-1))+1; $max1 = $pps*$page+1; }
if ($max1>$max) {
$max1 = $max+1;
}
// Thumbnaildarstellung und Verlinkung
for ($x=$xs; $x<$max1; $x++) {
echo ('<a href="'.$host.'bilder.php?id='.$x.'&x='.$max.'&data='.$folder.'&to='.$topic.'&datum='.$date.'&window='.$target.'&pre='.$prefix.'&copy='.$copyright.'&url='.$host.'&pps='.$pps.'" target="'.$target.'"><img src="'.$host.''.$folder.''.$thumbfolder.'/'.$prefix.''.$x.''.$suffix.'.jpg" id="thumb" width="'.$thumb.'"></a>');
echo ('');
}
?>
<?php
// Copyrightdarstellung (Bug?)
// Bei leerer Varible sollte die Zeile ausgeblendet werden, sonst wird es angezeigt
// Wenn das eMail-Feld leer ist, wird der Name ohne Link angezeigt, ansonsten mit
if ($copyright == '') { }
else {
echo('<br><br><div align="right"><i><small>'.$copy1.' © '.$date.' '.$copy2.' ');
if ($mail == '')
{
echo ($copyright.'. ');
}
else {
echo ('<a href="mailto:'.$mail.'">'.$copyright.'</a>. ');
}
echo ($copy3.'.</small></i></div>');
}
?>
<!-- Copyrighthinweis bitte nicht entfernen! -->
<div align="right"><small>Galeriescript © 2005 by <a href="http://www.edv-krischer.de" target="_blank">EDV-Krischer</a>.</small></div>
<br>
</div>
<!---Footer/-->