<?	
include ('logue.php'); 
include ('entete2.php');

$id = $_POST["id"];

echo"
<BODY TEXT=\"#ffffff\">	
<BODY LINK=\"#ffffff\">	
<BODY VLINK=\"#ffffff\">	
<BODY ALINK=\"#ffffff\">
<body bgcolor=\"#000000\">
<style>
input {
border:0px solid #7E7E7E;
background-color:#000000;
font-family:'trebuchet ms',sans-serif;
color:white;
}
textarea {
border:1px solid #7E7E7E;
background-color:#000000;
font-family:'trebuchet ms',sans-serif;
color:white;
}
select, option {
background-color:#000000;
color:white;
}
</style>
<STYLE TYPE=text/css>
.Style1 {color: #0000FF}
.Style2 {color: #FF0000}
</STYLE>";

$req = "SELECT * FROM matgraph_msgally WHERE receveur = $idlogin AND id=$id ORDER BY id DESC";
$res = mysql_query($req) or die('Erreur SQL! <br>'.$req.'<br>'.mysql_error());
$row = mysql_fetch_array($res); 
echo"<div align=\"center\"><br><table width=\"618\"  border=\"1\" cellspacing=\"0\" cellpadding=\"0\">
  <tr>
    <td width=\"587\"><div align=\"center\"> ".htmlentities($row[sujet])." Du $row[date]</div></td>
      </tr>
  <tr>
    <td><div align=\"center\">".htmlentities($row[msg])."</div></td>
  </tr>"; 
echo"<form> <tr>
  <td height=\"50\" colspan=\"2\" align=\"center\" valign=\"middle\">
  <input type=\"button\" value=\"Fermer\" onclick=\"window.close()\" Style=\"border:1px solid #7E7E7E;\"></td>
  </tr></form>
</table>";
?>
