While avec li pbm à l'affichage
Posté : 25 oct. 2015, 21:46
Salut à tous je viens vers vous car je bloque franchement la.
Tout marche bien dans mon code sauf mon li numéro 2.
Mon code:
http://lasortie.fr/annonce_zoom.php?id=410469
Tout marche bien dans mon code sauf mon li numéro 2.
Mon code:
<?php
$pub = "SELECT * FROM loisirs WHERE `id_type_loisirs` = $type AND id_departements = $departement";
$pub .= " ORDER BY id_loisirs DESC LIMIT 0, 5";
$req = $bdd->query($pub);
if($req->rowCount() > 0) {
while($ligne = $req->fetch(PDO::FETCH_ASSOC)){
$image = !empty($ligne['photo']) && file_exists($path.'img/annonce/600/'.$ligne['photo']) ? 'img/annonce/600/'.$ligne['photo'] : 'img/remplacement/'.simplification($aLoisirs[$ligne['id_type_loisirs']]).'.jpg';
// Suivant le type
if (!empty ($ligne['url_fnac'])) {
$mavariable = '<li>
<a href="annonce_zoom.php?id='.$ligne['id_loisirs'].'"><img class="attachment-shop_thumbnail wp-post-image" src="'.$ligne['photo'].'" alt="'.$ligne['titre'].'" title="'.$aLoisirs[$ligne['id_type_loisirs']].' '.$ligne['titre'].'"></a>
<a href="annonce_zoom.php?id='.$ligne['id_loisirs'].'"><span class="product-title">'.cutTexte(ucfirst(strtolower($ligne['titre'])), 30, '...').'</span></a>
<span class="amount">'.strip_tags($ligne['city']).' ('.str_pad($ligne['id_departements'], 2, "0", STR_PAD_LEFT).')</span>
</li>';
}else{ echo'<li>
<a href="annonce_zoom.php?id='.$ligne['id_loisirs'].'"><img class="attachment-shop_thumbnail wp-post-image" src="'.$image.'" alt="'.$ligne['titre'].'" title="'.$aLoisirs[$ligne['id_type_loisirs']].' '.$ligne['titre'].'"></a>
<a href="annonce_zoom.php?id='.$ligne['id_loisirs'].'"><span class="product-title">'.cutTexte(ucfirst(strtolower($ligne['titre'])), 30, '...').'</span></a>
<span class="amount">'.strip_tags ($ligne['city']).' ('.str_pad($ligne['id_departements'], 2, "0", STR_PAD_LEFT).')</span>
</li>';
}
// fin
echo $mavariable ."\n";
}
} else {
echo 'Aucune annonce enregistrées ';
}
?>
</ul>
<?php
}
?>
Voici la page ou j'ai un problème par exemple, c'est plus parlant ( on voit très bien que ds la colone à droite l'image est bien trop grande par rapport aux autres.http://lasortie.fr/annonce_zoom.php?id=410469