<?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("fotoweb46.php"); include("../script_outils.php");   if (isset($_GET['suppID'])){ $queryDelete = "DELETE FROM livredor WHERE `idMessage`='".$_GET['suppID']."'"; $resultDelete = mysql_query ($queryDelete) or die ("La requête de suppression des message a échoué.".$queryDelete); }  $queryMessage = "SELECT nom, date, message,lieu,idMessage,ip,hostname,login, email 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/scriptadmin.js'></script> </head> <body > <table align='center' border='0' cellspacing='0' cellpadding='0' width='80%'>  <?php
$i = 1; $tabMessage = array(); while ($lineMessage = mysql_fetch_row($resultMessage)) { $nom = $lineMessage[0]; $date = $lineMessage[1]; $idMessage = $lineMessage[4]; $message = nl2br(eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", "<A HREF=\"\\1://\\2\\3\" CLASS=\"email\" TARGET=\"_blank\">\\1://\\2\\3</A>", strip_tags($lineMessage[2]))); $lieu=$lineMessage[3]; $ip=$lineMessage[5]; $hostname=$lineMessage[6]; $login=$lineMessage[7]; $email=$lineMessage[8];  $str = "<table align='center' border='1' width='100%' rules='none' cellpadding='1' cellspacing='1'>" . "<tr>" .	"<td class='pseudoLivreDor' width='25%' bgcolor='#000000'>" .		$nom; if ($lieu!='') $str.= " de ".$lieu; if ($email!='') $str.= "  (".$email.")";  $str.= 	"</td>" .	"<td class='valeur' width='30%' align='center' bgcolor='#000000'>" .			"le ".formatterDateTimeFromBase($date)." " . 	"</td>" .	"<td class='valeur' width='15%' align='center' bgcolor='#000000'>" .			" ".$hostname." " . 	"</td>" .	"<td class='valeur' width='10%' align='center' bgcolor='#000000'>" .			" ".$ip." " . 	"</td>" .	"<td class='valeur' width='10%' align='center' bgcolor='#000000'>" .			" ".$login." " . 	"</td>" ."<td align='right' width='15%' >" ."<img src=\"../ergonomie/_images/supprimer.gif\" id=\"".$idMessage."\" name=\"".$idMessage."\" alt=\"Supprimer le message\" title=\"Supprimer le message\" style=\"cursor:pointer;cursor:hand\"  onClick=\"supprimeMessage(".$idMessage.")\">" ."<td>" .	"</tr>" .	"<tr>" .		"<td class='' colspan='6'>" .			$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
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
print "&nbsp;"; ?> </td> </tr> </table> </body> </html> 