<?PHP  // Edit Message
  $sSQL="Select author, email, subject, attachment, body from $ForumTableName as t, $ForumTableName"."_bodies as b where t.id=b.id and t.id=$id";
  $q->query($DB, $sSQL);
  $mtext = $q->getrow();
  if (isset($srcpage)) {
    $page = $srcpage;
  } else {
    $page = "managemenu";
  }
?>
<table border="1" bgcolor="<?PHP echo $color1; ?>"><tr><td>
<form action="<?PHP echo $myname; ?>?connexion=<?PHP echo $connexion; ?>" method="POST">
<input type="Hidden" name="action" value="edit">
<input type="Hidden" name="num" value="<?PHP echo $num; ?>">
<input type="Hidden" name="id" value="<?PHP echo $id; ?>">
<input type="Hidden" name="page" value="<?PHP echo $page; ?>">
<?php
if (isset($mythread)) { ?>
<input type="Hidden" name="mythread" value="<?PHP echo $mythread; ?>">
<?php
}
?>

<table cellspacing="0" cellpadding="3" border="0">
<tr>
    <td colspan="2" align="center" bgcolor="<?PHP echo $color2; ?>"><font face="Arial,Helvetica" color="#<?PHP echo $color1; ?>">Edition du message : <?PHP echo $ForumName; ?></font></td>
</tr>
<tr>
    <td>Auteur :</td>
    <td><input type="Text" name="author" value="<?PHP echo $mtext["author"]; ?>" size="10" style="width: 300px;" ></td>
</tr>
<tr>
    <td>Email :</td>
    <td><input type="Text" name="email" value="<?PHP echo $mtext["email"]; ?>" size="10" style="width: 300px;" ></td>
</tr>
<tr>
    <td>Sujet :</td>
    <td><input type="Text" name="subject" value="<?PHP echo $mtext["subject"]; ?>" size="10" style="width: 300px;" ></td>
</tr>
<?PHP
if (!empty($attachment)) {
?>
<INPUT TYPE="hidden" NAME="attachment" VALUE="<?PHP echo $mtext["attachment"]; ?>">
<tr>
	<td >Attachment:</td>
	<td ><?PHP echo $mtext["attachment"]; ?>&nbsp; &nbsp;<INPUT TYPE="checkbox" NAME="del_attachment" VALUE="true"> delete attachment </td>
</tr>
<?PHP
}
?>
<tr>
	<td >Message :</td>
    <td>&nbsp;</td>
</tr>
<tr>
	<td >&nbsp;</td>
    <td><textarea name="body" cols="60" rows="20" wrap="VIRTUAL"><?PHP echo $mtext["body"]; ?></textarea></td>
</tr>
</td>
</tr>
</table>
<p>
<center><input type="Submit" name="submit" value="Valider" ></center>
</form>
</td></tr></table>
