Old stuff/old_sites/www/include/accueil.php
(Deskargatu)
<div class="gauche">
<div class="news">
<h3>Que se passe-t-il chez les colombophiles ?</h3>
<div>
<img src="images/pigeon1.png" alt="Image du jour" />
<?
$query = "SELECT * FROM mp_news ORDER BY id DESC LIMIT 4 ";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_assoc($result))
{
echo "<h5>[".$row{'section'}." par ".$row{'pseudo'}."] ".$row{'titre'}."</h5>";
affichage($row{'contenu'},100,"popup.php?page=news&id=".$row{'id'});
}
?>
</div>
</div>
<div class="article">
<img src="images/pigeon1.png" alt="Dernier article" />
<div>
<h3>Dernier article</h3>
</div>
<?
$query = "SELECT * FROM mp_articles ORDER BY id DESC LIMIT 4 ";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_assoc($result))
{
echo "<h5>[".$row{'section'}." par ".$row{'pseudo'}."] ".$row{'titre'}."</h5>";
affichage($row{'contenu'},100,"popup.php?page=articles&id=".$row{'id'});
}
?>
</div>
</div>
<div class="droite">
<div class="meteo">
<h3>Alerte meteo</h3>
<div>
</div>
</div>
<div class="race">
<h3>Nouvelle des concours</h3>
<div>
<?
$query = "SELECT * FROM mp_concours ORDER BY id DESC LIMIT 4 ";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_assoc($result))
{
echo "<h5>[".$row{'section'}." par ".$row{'pseudo'}."] ".$row{'titre'}."</h5>";
affichage($row{'contenu'},100,"popup.php?page=concours&id=".$row{'id'});
}
?>
</div>
</div>
</div>