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
|
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link href="../Css/ImagePhoto.css" rel="stylesheet" type="text/css" />
<link href="../Css/colorbox.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="../Script/clearbox/clearbox.js" type="text/javascript"></script>
</head>
<body>
<?php
include('../Classe/ClassPDO.class.php');
include('../Classe/Singleton.class.php');
include('../Classe/RequestSql.class.php');
$IdRep = $_GET['titre'];
$objPDO = Singleton::getInstance();
$sql = new RequestSql($objPDO);
$tabRepertoire = $sql->getFolder($IdRep);
//print_r($tabRepertoire);
$nbre = 0;
echo"<div class='titreImagePhoto'>";
echo"<p> Images du groupe ".$tabRepertoire[0]['Titre']."<p>";
echo"</div>";
echo"<div class='ImgPhoto'>";
echo"<table>";
echo"<tr>";
$tabImage = $sql->getImages($IdRep);
foreach ($tabImage as $row) {
echo"<td>";
echo"<a href='../".$row['Chemin']."' rel='clearbox[gallery=My Gallery]' title='".$row['Nom']."'>"."<img width= '120px' src='../".$row['Chemin']."' /></a>";
echo"<td>";
$nbre++;
if($nbre % 8 == 0){
echo"</tr>";
echo"<tr>";
}
}
echo"</tr>";
echo"<table>";
echo"</div>";
?>
</body>
</html> |
Partager