include "include/newssearch.php";
echo"
galerie |
|
";
if($pic>0)
{
echo "";
$query="SELECT * FROM $galerietable WHERE $pic=picid";
$result=mysql_db_query($dbname,$query,$conn) or die (mysql_error());
while($data=mysql_fetch_row($result))
{
echo" | $data[2] | ";
}
echo"
| ";
}
else
{
$query2="SELECT * FROM $galerietable";
$result2=mysql_db_query($dbname,$query2,$conn);
$total=mysql_numrows($result2);
echo"";
$query="SELECT * FROM $galerietable LIMIT $offset,$maxrows";
$result=mysql_db_query($dbname,$query,$conn);
$count=0;
while($data=mysql_fetch_row($result))
{
if($count=='3')
{
echo" ";
$count=0;
}
$filegroesse = substr ("$data[3]",0,2);
$filegroesse = $filegroesse.k;
$size = GetImageSize ("galerie/$data[1].jpg");
$size_t = GetImageSize ("galerie/$data[1]_t.jpg");
echo"\n $data[1].jpg $filegroesse ($size[0]x$size[1]) | ";
$count ++;
}
echo" ";
$weiterzurueck ="Seite: [ ";
if ($total == 0 ) $weiterzurueck .="keine ]";
elseif ($total > 0){
$zaehlblock = $maxrows;
$offset = 0 - $zaehlblock;
$maxrows = $zaehlblock;
$bloecke = $total / $zaehlblock;
$bloecke = $bloecke + 1;
$count =1;
while ( $count < $bloecke){
$offset = $offset + $zaehlblock;
if ($offset == $current) {
$weiterzurueck .="$count ";
}
else {
$weiterzurueck .= "$count ";
}
$count++;
}
$weiterzurueck .= " ]";
}
echo "$weiterzurueck |
";
}
include "include/footer.inc";
?>
|
|
include "include/rechts.php"; ?> |