Old stuff/old_sites/appo/galerie_content.php
(Deskargatu)
<html>
<head>
<title>galerie.png</title>
<meta http-equiv="Content-Type" content="text/html;">
<meta name="description" content="FW MX 2004 DW MX 2004 HTML">
<style type="text/css">
#menu {
margin:0px;
padding:0px 0px 0px 30px;
width:205px;
height:248px;
background:url("images/galerie_t.jpg") 0px 0px no-repeat;
position:relative;
}
#menu li {margin: 0px; padding: 0px; list-style: none; display: block; position: absolute;}
#menu a {display: block; }
#archi {left:0px; top:0px; width:32px; height:248px;}
#archi a { height:248px; }
#archi a:hover { background:url("images/galerie2_t.jpg") 0px 0px no-repeat; }
#mer {left:40px; top:0px; width:32px; height:248px;}
#mer a { height:248px; }
#mer a:hover { background:url("images/galerie2_t.jpg") -40px 0px no-repeat; }
#bois {left:82px; top:0px; width:32px; height:248px;}
#bois a { height:248px; }
#bois a:hover { background:url("images/galerie2_t.jpg") -82px 0px no-repeat; }
#bizarre {left:129px; top:0px; width:32px; height:248px;}
#bizarre a { height:248px; }
#bizarre a:hover { background:url("images/galerie2_t.jpg") -129px 0px no-repeat; }
#night {left:174px; top:0px; width:32px; height:248px;}
#night a { height:248px; }
#night a:hover { background:url("images/galerie2_t.jpg") -174px 0px no-repeat; }
table { border:none; }
tr { border:none; }
td { border:1px groove black; padding:2px; background-color:#eee;}
img { border:none; }
</style>
</head>
<body bgcolor="#ffffff">
<div width="223">
<?
if (empty($_GET['cat']))
{
?>
<ul id="menu">
<li id="archi"><a href="galerie_content.php?cat=architecture"></a></li>
<li id="mer"><a href="galerie_content.php?cat=mer"></a></li>
<li id="bois"><a href="galerie_content.php?cat=bois"></a></li>
<li id="bizarre"><a href="galerie_content.php?cat=bizare"></a></li>
<li id="night"><a href="galerie_content.php?cat=night"></a></li>
</ul>
<?
}
else {
echo "<h4>Galerie $cat</h4>";
$cat = preg_replace("[^a-zA-Z]","",$_GET['cat']);
if (! file_exists("galerie/mini/$cat")) { echo "ERREUR : dossier miniatures introuvable"; }
else
{
$handle = opendir("galerie/mini/$cat");
print "<table border=\"1\" align=\"center\"><tr>";
$i = 0;
while($fichier = readdir($handle))
{
if (! ereg("^\.",$fichier))
{
$i++;
if ($i>3) { echo "</tr>\n<tr>"; $i=1; }
print "\n\t<td align=\"center\">";
$nom = preg_replace("/\..{3}/",".jpg",$fichier);
if (file_exists("galerie/maxi/$cat/$nom"))
{
echo "<a target=\"_blank\" href=\"galerie_view.php?cat=$cat&file=$nom\"><img alt=\"$fichier\" src=\"galerie/mini/$cat/$fichier\"></a>";
}
else {
echo "<img alt=\"$fichier\" src=\"galerie/mini/$cat/$fichier\">";
}
echo "</td>";
}
}
print "</table>";
}
}
?>
</div>
</body>
</html>