ich hab folgenden code:
PHP
<html>
<head>
<link rel="stylesheet" type="text/css" href="design.css">
<title>www.andreas-sass.de</title>
<meta http-equiv="Content-Type" content="text/html;">
</head>
<body bgcolor="#111111" style="margin:0">
<table border="0" cellpadding="0" cellspacing="0" width="900" align="center" style="border-collapse:separate;border: solid 2px #333333;" >
<td>[img]bilder/spacer.gif[/img]</td>
<td>[img]bilder/spacer.gif[/img]</td>
<td>[img]bilder/spacer.gif[/img]</td>
<td>[img]bilder/spacer.gif[/img]</td>
<td>[img]bilder/spacer.gif[/img]</td>
<td>[img]bilder/spacer.gif[/img]</td>
<td>[img]bilder/spacer.gif[/img]</td>
<td>[img]bilder/spacer.gif[/img]</td>
</tr>
<tr>
<td colspan="7" background="bilder/bg9g_r1_c1.jpg" width="900" height="108" border="0" alt=""></td>
<td>[img]bilder/spacer.gif[/img]</td>
</tr>
<tr>
<td rowspan="2" colspan="2"background="bilder/bg9g_r2_c1.jpg" width="592" height="114" border="0" alt="">
</td>
<td background="bilder/bg9g_r2_c3.jpg" width="76" height="34" border="0" alt="">[url='index.htm'][/url]</td>
<td background="bilder/bg9g_r2_c4.jpg" width="63" height="34" border="0" alt="">[url='index.htm'][/url]</td>
<td background="bilder/bg9g_r2_c5.jpg" width="57" height="34" border="0" alt="">[url='index.htm'][/url]</td>
<td background="bilder/bg9g_r2_c6.jpg" width="99" height="34" border="0" alt="">[url='übermich.htm'][/url]</td>
<td rowspan="2" background="bilder/bg9g_r2_c7.jpg" width="13" height="114" border="0" alt=""></td>
<td>[img]bilder/spacer.gif[/img]</td>
</tr>
<tr>
<td colspan="4" background="bilder/bg9g_r3_c3.jpg" width="295" height="80" border="0" alt=""></td>
<td>[img]bilder/spacer.gif[/img]</td>
</tr>
<tr>
<td>
<iframe src="links.php" width="192" height="778" name="Links" frameborder="0" allowtransparency="true" scrolling="no" noresize align="justify" marginwidth="0" marginheight="0">
Ihr Browser kann leider keine eingebetteten Frames anzeigen:
Sie können die eingebettete Seite über den folgenden Verweis
aufrufen: [url='links.htm']Index[/url]</p>
</iframe>
</td>
</td>
<td colspan="6" bgcolor="#000000">
<?php
function bilder()
{
//<<<<<<<<<<<<<<<<<<<<<<<< KONFIGURATION >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
$subdir = "bilder/ich"; //Bilderverzeichnis
$heading = "Annas + Kathas Party"; //Überschrift
$imagewidth = 120; //Thumbnailbreite (Min 50; Max 200)
$bigimagewidth = 500; //Originalbild-Breite (Min 250; Max 600)
$colums = 4; //Spalten (Min 2; Max 10)
$shadow = false; //Schatten? Ja = true; Nein = False
//<<<<<<<<<<<<<<<<<<<<<< KONFIGURATION ENDE >>>>>>>>>>>>>>>>>>>>>>>>>>
function shadowtable($imagehtml)
{
$output .= "<table style='border-style: none;' cellspacing='0' cellpadding='0' height='100%'>
<tr><td rowspan='2' colspan='2' style='border-style: none;'>
$imagehtml</td><td valign='top' style='border-style: none;' background='shadow/r.gif'>
[img]shadow/or.gif[/img]</td></tr><tr>
<td style='border-style: none;' background='shadow/r.gif'></td></tr>
<tr><td style='border-style: none;' background='shadow/u.gif' align='left'>
[img]shadow/ul.gif[/img]</td>
<td style='border-style: none;' background='shadow/u.gif'></td>
<td style='border-style: none;' valign='top'>[img]shadow/ur.gif[/img]</td>
</tr></table>";
return $output;
}
function showpicture($image, $widthget, $subdir, $shadow)
{
if ($shadow == true)
{
$output = "<td align='center' valign='middle'>";
$imagehtml = "<a href='$PHP_SELF?image=$image&view=big'>
[img]calculate.php?image=$subdir/$image&width=$widthget[/img]</a>";
$output .= shadowtable($imagehtml);
$output .= "<span class='text'>" .$image. "</span></td>";
}
else
{
$output = "<td align='center' valign='middle'>";
$output .= "<table style='border-style: none;' cellspacing='0' cellpadding='0' height='100%'>
<tr><td style='border-style: none;'>";
$output .= "<a href='$PHP_SELF?image=$image&view=big'>
[img]calculate.php?image=$subdir/$image&width=$widthget[/img]</a></td></tr></table>
<span class='text'>" .$image. "</span></td>";
}
return $output;
}
function showbigpicture($subdir, $imagewidth, $image, $shadow, $von)
{
$i = 0;
$dir = opendir($subdir);
while ($file = readdir($dir))
{
$imagechecker = @getimagesize($subdir. "/" .$file);
if ($imagechecker[2] == 1 OR $imagechecker[2] == 2)
{
$images[$i] = $file;
if ($file == $image)
{
$imagehtml = "[img]calculate.php?image=$subdir/$file&width=$imagewidth[/img]";
$aktuell = count($images);
if ($shadow == true)
{
echo shadowtable($imagehtml);
echo "<table width='100%' border='0'>
<tr><td class='text' align='left' width='50%'>Bild " .$aktuell. " von " .$von. "</td>
<td class='text' align='right' width='50%'>Bildname: $file</td>
</tr></table>";
}
else
{
echo $imagehtml. "
";
echo "<span class='text'>Bild " .$aktuell. " von " .$von. "</span>";
}
$count = $i;
}
$i++;
}
}
echo "<table border='0' width='100%' align='center'><tr><td align='center' width='33%'>";
if ($count > 0)
{
$output .= "[url='' .$PHP_SELF. '?image=' .$images[0]. '&view=big'] << Erstes[/url]";
$output .= "[url='' .$PHP_SELF. '?image=' .$images[$count-1]. '&view=big'] < Zurück [/url]";
}
else {$output .= "";}
$output .= "</td><td align='center'>";
$output .= "[url='AnnasParty.php']Back[/url]";
$output .= "</td><td align='center' width='33%'>";
if ($count < count($images)-1)
{
$output .= "[url='' .$PHP_SELF. '?image=' .$images[$count+1]. '&view=big'] Vorwärts > [/url]";
$output .= "[url='' .$PHP_SELF. '?image=' .$images[$von-1]. '&view=big'] Letztes >> [/url]";
}
else {$output .= "";}
$output .= "</td></tr></table>";
return $output;
}
//<<<<<<<<<<<<< HAUPTPROGRAMM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
echo "<center><span class='bigtext'>$heading</span></center>
";
$count = 1;
$zaehler = 0;
$dir = opendir($subdir);
while ($file = readdir($dir))
{
$imagechecker = @getimagesize($subdir. "/" .$file);
if ($imagechecker[2] == 1 OR $imagechecker[2] == 2)
{
$zaehler ++;
}
}
closedir($dir);
if (!$view)
{
$dir = opendir($subdir);
echo "<table align='center' cellpadding='5' cellspacing='0' style=\"border:1px solid black; empty-cells:show\">";
while ($file = readdir($dir))
{
$imagechecker = @getimagesize($subdir. "/" .$file);
if ($imagechecker[2] == 1 OR $imagechecker[2] == 2)
{
$zaehler ++;
if ($count == 1){echo "<tr>";}
echo showpicture($file, $imagewidth, $subdir, $shadow);
if ($count < $colums) {$count++;}
else {$count = 1; echo "</tr>";}
}
}
closedir($dir);
echo "</table>";
}
else
{
echo "
";
echo "<table align='center' cellpadding='5' cellspacing='0' style=\"border:1px solid black; empty-cells:show\">";
echo "<tr><td>";
echo showbigpicture($subdir, $bigimagewidth, $image, $shadow, $zaehler);
echo "</td></tr></table>";
}
if ($shadow == true){$shaus = "Ja";} else {$shaus = "Nein";}
echo "
<center><span class='text'>Thumbnailgröße: $imagewidth Pixel
Normale Bildgröße: $bigimagewidth Pixel
Spalten: $colums
Schatten: $shaus</span></center>";
}
if(isset($_GET['id']) && $_GET['id'] == '2') { include('uebermich.htm'); }
if(isset($_GET['id']) && $_GET['id'] == '3') { include('chat/chat.htm'); }
if(isset($_GET['id']) && $_GET['id'] == '4') { include('upload/upload_form.htm'); }
if(isset($_GET['id']) && $_GET['id'] == '11') { include('Gallery/janasparty.htm'); }
if(isset($_GET['id']) && $_GET['id'] == '12') { bilder(); }
if(isset($_GET['id']) && $_GET['id'] == '13') { include('Gallery/sylvester05.htm'); }
if(isset($_GET['id']) && $_GET['id'] == '21') { include('xyz.html'); }
if(isset($_GET['id']) && $_GET['id'] == '22') { include('xyz.html'); }
if(isset($_GET['id']) && $_GET['id'] == '23') { include('xyz.html'); }
if(isset($_GET['id']) && $_GET['id'] == '24') { include('xyz.html'); }
if(isset($_GET['id']) && $_GET['id'] == '51') { include('xyz.html'); }
if(isset($_GET['id']) && $_GET['id'] == '52') { include('xyz.html'); }
?>
</td>
<td>[img]bilder/spacer.gif[/img]</td>
</tr>
</table>
</body>
</html>
Alles anzeigen
doch meine bilder im angezeigten verzeichnis werden nicht angezeigt, was mach ich falsch (wenn ich ....index.php?id=12 eingebe)
mfg supersass1
p.s. link zur hp: http://www.andreas-sass.de