Files
le-matelot/client/plugins/messagecmd/messagecmd_admin_commandedetails.php
2020-01-27 08:56:08 +01:00

50 lines
1.3 KiB
PHP

<?php
include_once(realpath(dirname(__FILE__)) . "/../../../fonctions/authplugins.php");
autorisation("messagecmd");
include_once("../client/plugins/messagecmd/Messagecmd.class.php");
$tmp_cmd = new Commande();
$tmp_cmd->charger_ref($_GET['ref']);
$msg = new Messagecmd();
if($msg->charger($tmp_cmd->id)){
// XXX debut affichage table (classe titre_cellule) pour ligne 1 du tableau
// XXX htmlspecialchars() pour les données du message
// ~ yoann, 20111012_1536
?>
<table width="712" border="0" cellpadding="5" cellespacing="0">
<tr>
<td width="710" height="30" class="titre_cellule" colspan="2">MESSAGE PERSONNALISE</td>
</tr>
<tr>
<td width="100" height="30" align="left" valign="middle" class="titre_cellule">Destinataire</td>
<td class="cellule_claire">
<?php echo htmlspecialchars($msg->destinataire); ?>
</td>
</tr>
<tr>
<td width="100" height="30" align="left" valign="middle" class="titre_cellule">Expéditeur</td>
<td class="cellule_claire">
<?php echo htmlspecialchars($msg->expediteur); ?>
</td>
</tr>
<tr>
<td width="100" height="30" align="left" valign="middle" class="titre_cellule">Message</td>
<td class="cellule_claire">
<?php echo htmlspecialchars($msg->message); ?>
</td>
</tr>
</table>
<br />
<?php
}
?>