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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
<?php
include ("globale-camille-xxx.inc.php");
include ("fonction-camille-xxxx.inc.php");
include ("redim_image.inc.php");
$conn = connecte();
foreach( $_REQUEST as $a => $b)
{
$$a = $b;
}
$ligne = 1;
$nombre = 40;
// si limite n'existe pas on l'initialise à Zéro
if (!isset($limite)) $limite = 0;
// on cherche le nom de la page.
// $path_parts = pathinfo($PHP_SELF);
// $page = $path_parts["basename"];
$page="index.php";
$total=0;
//je vais chercher le nombre total de reponses
$resultx = mysql_query("SELECT * FROM `$var` where nom like '%.jpg' or nom like '%.JPG' order by date ASC",$conn);
//$row = mysql_fetch_row($resultx);
$total = mysql_num_rows($resultx);
//echo $total;
while ($row = mysql_fetch_object($resultx))
{
$id_foto = $row->id_foto;
$foto = $row->nom;
$nom = $foto;
$fotos="photos/".$foto;
// echo $row;
$Ratio = image_ratio($fotos);
IF ($Ratio<1)
{
$width="75";
}else{
$width="100";
}
$height="";
flush(); // Envoie le buffer
$new_width=$width;
$new_height=$height;
image_redim("photos/".$foto,"photos/tphotos/".$foto,$width,$height,100);
echo "<td align=center>";
$imge = image_taille("photos/".$foto);
// echo $imge[0],"/",$imge[1];
$vrai_width=$imge[0];
$vrai_height=$imge[1];
// echo "<a title='$foto' href=\"vu_foto.php?foto=$foto&id=$id_foto&nom=$nom&new_height=$new_height&vrai_width=$vrai_width&vrai_height=$vrai_height&ratio=$Ratio&nombre=$nombre&page=$page&total=$total&limite=$limite\">";
// echo "<img border=\"0\" src=\"photos/tphotos/".$foto." \"></a></td></tr> ";
?>
<!-- <a href="photos/<? echo $foto; ?>" class="highslide" onmouseover="return hs.expand(this)"; onmouseout="return hs.discardElement(this)"> -->
<a href="photos/<? echo $foto; ?>" class="highslide" onclick="return hs.expand(this)">
<img border="0" src="photos/tphotos/<? echo $foto; ?>" alt="Highslide JS" title="Click pour agrandir" ></a>
<?php
$ligne = -$ligne;
}
mysql_free_result($resultx);
if($total> $nombre)
{
// affichage des liens vers les pages
$font="Verdana";
$size=1;
affichePagesAchat($nombre,$page,$total,$font,$size,$limite);
}
?>
<p><center>
<font face="Verdana" color="#0000FF" size="1"><a href="index.php" title="Retour au début">Retour début</a></font></b></i></p>
<p><center>
<font face="Verdana" color="#0000FF" size="1"><a href="<? echo $url_video ; ?>" title="Voir les vidéos">Voir les vidéos</a></font></b></i></p> |
Partager