Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.chauffagiste-essonne.com
/
htdocs
/
pages
/
db
/
/srv/data/web/vhosts/www.chauffagiste-essonne.com/htdocs/pages/db/album.php
<?php $temp = explode("-",$slug); $idAlbum = $temp[1]; $stmt=$db_client->prepare("SELECT * FROM album WHERE id=? AND id_company=?"); // on prépare notre requête $stmt->execute(array($idAlbum,$conf_id_company)); $album = $stmt->fetch(); if(empty($album)) header('Location: albums'); //start_block('title','keywords','description') start_block('tato','',$album->description); ?> <div id="gallery"> <h1><?=$album->name?></h1> <?=$album->description?> <div class="row"> <?php $stmt=$db_client->prepare("SELECT * FROM album_image WHERE album=? ORDER BY rank"); $stmt->execute(array($idAlbum)); $pictures = $stmt->fetchAll(); $i = 0; foreach ($pictures as $picture):?> <div class="col-sm-3"> <div class="thumbnail"> <a href="<?=$picture->src?>" data-lightbox="roadtrip" title="<?=$picture->name?> - <?=$picture->legend?>"> <span> <?php if (strlen($picture->name)>30) { $texte=substr($picture->name,0,20); $position_espace = strrpos($texte, " "); echo substr($texte, 0, $position_espace).'...'; }else echo $picture->name; ?> </span> <img src="<?=$picture->src?>" alt="<?=$picture->name?>"> </a> </div> </div> <?php $i++;if($i%4==0)echo"</div><div class='row'>" ?> <?php endforeach; ?> </div> </div> <?php end_block(); ?>