<?php
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); include("fotoweb77.php"); include("script_outils.php");  if (isset($_GET['$minMessage'])) $minMessage=$_GET['$minMessage']; else $minMessage=0;   $queryMessage = "SELECT nom, date, message,lieu FROM livredor ORDER BY livredor.idMessage DESC "; $resultMessage = mysql_query ($queryMessage) or die ("La requête de sélection des messages a échoué: $queryMessage"); $nbMessage = mysql_num_rows($resultMessage); ?> <html> <head> <link rel='stylesheet' href='ergonomie/style.css'> <script language='javascript' src='script/script.js'></script> </head> <body onLoad=updateMenu('D','')> <table align='center' border='0' cellspacing='0' cellpadding='0' width='80%'> <tr> <td align="right" width="100%" height="35px"> <img src="ergonomie/_images/message.gif" id="message" name="message" alt="Ajouter un commentaire" title="Ajouter un commentaire" style="cursor:pointer;cursor:hand" onMouseOver="rolloverIn('message')" onMouseOut="rolloverOut('message')" onClick="window.location='fotoweb62.php'"> <td> </tr> <?php
$i = 1; $tabMessage = array(); while ($lineMessage = mysql_fetch_row($resultMessage)) { $nom = $lineMessage[0]; $date = $lineMessage[1]; $message = nl2br(strip_tags($lineMessage[2])); $lieu=$lineMessage[3];  $str = "<table align='center' border='1' width='100%' rules='none' cellpadding='4' cellspacing='0'>" . "<tr>" .	"<td  class='pseudoCommentaire' width='35%'>" .		$nom; if ($lieu!='') $str.= " de ".$lieu;  $str.= 	"</td>" .	"<td class='dateCommentaire' width='65%' align='left' bgcolor='#000000'>" .			"le ".formatterDateTimeFromBase($date)." " . 	"</td>" .	"</tr>" .	"<tr>" .		"<td class='textCommentaire' colspan='2'>" .			$message .		"</td>" .	"</tr>" ."</table>" ."<br>"; print "<tr>"; print "<td>".$str."</td>"; print "</tr>";  } mysql_free_result($resultMessage); $minMessageSuivant = $minMessage + 30; $minMessagePrecedent = $minMessage - 30; $minMessagePrecedent = ($minMessagePrecedent <= 0 ? 0 : $minMessagePrecedent); ?> </table>  <table border="0" width="80%" align="center"> <tr height="30px"> <td align="left" width="30%"> <?php
if ($minMessage == 0) print " "; else print "<img src='ergonomie/_images/precedent.gif' id='precedent' style='cursor:pointer;cursor:hand' onMouseOver=rolloverIn('precedent') onMouseOut=rolloverOut('precedent') onClick=redirect('fotoweb61.php?minMessage=$minMessagePrecedent')>"; ?> </td> <td align="center" width="40%">  <td> <td align="right" width="30%"> <?php
if ($nbMessage < 30) print "&nbsp;"; else print "<img src='ergonomie/_images/suivant.gif' id='suivant' style='cursor:pointer;cursor:hand' onMouseOver=rolloverIn('suivant') onMouseOut=rolloverOut('suivant') onClick=window.location='fotoweb61.php?minMessage=$minMessageSuivant'>"; ?> </td> </tr> </table> </body> </html> 