1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
| <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Galerie de photos</title>
<script src="prototype.js" type="text/javascript"></script>
<script src="scriptaculous.js?load=effects,builder" type="text/javascript"></script>
<script src="lightbox.js" type="text/javascript"></script>
<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />
<link rel="stylesheet" href="style_menu.css" type="text/css" media="screen" />
<style type="text/css">
<!--
.Im{
float:left;
margin:0 10px 10px 0;
padding:2px;
background:#fff;
border:1px solid #ccc;
}
-->
</style>
</head>
<body>
<?php
$param1=mysql_real_escape_string($_GET['id_sort']);
if(file_exists("./connexion.php"))
{
include("./connection.php");
}
$rq = mysql_query("SELECT * FROM galerie WHERE galerie.id_sortir='$param1'");
while($result1 = mysql_fetch_array($rq)){
?>
<div style="margin-left:13px; margin-top:35px; margin-right:13px;" >
<?
if(!empty($result1['image'])){
?>
<div class="Im"><a href="photos/<?php echo $result1['image']; ?>" rel="lightbox[roadtrip]"><img src="photos/<? echo $result1['image']; ?>" width="150" height="60" /></a>
<?
}else{
echo"y a pas d'image désolé";
}
}
?>
</div>
</div>
<form method="post" action="gal.php">
<input type="hidden" name="id_sort" value="<? echo $result1[2]; ?>">
</form>
</div>
</div>
</body>
</html> |
Partager