Files
FHC-Core/application/views/system/messageHTML.php
T
Paolo 559b1b4cdf - ViewMessage: checks if the receiver is an employee or not. If an
employee then hides the reply link
- Added isEmployee method to MessageToken_model
2017-03-30 17:44:43 +02:00

58 lines
1.1 KiB
PHP
Executable File

<?php $this->load->view("templates/header", array("title" => "Message viewer")); ?>
<body>
<center>
<br><br>
<table width="70%;" style="border: solid 1px gray; background-color:white; padding:5px;">
<tr style=''>
<td style="width: 80px;">
<b>From:</b>
</td>
<td>
&nbsp;
</td>
<td>
<?php echo $sender->vorname.' '.$sender->nachname; ?>
</td>
</tr>
<tr>
<td style="width: 80px;">
<b>Subject:</b>
</td>
<td>
&nbsp;
</td>
<td>
<?php echo $message->subject; ?>
</td>
</tr>
<tr>
<td>
<b>Message:</b>
</td>
<td>
&nbsp;
</td>
<td>
<?php echo $message->body; ?>
</td>
</tr>
<?php
if ($isEmployee === false)
{
?>
<tr>
<td colspan="3" align="center" style="background-color:#dddddd; padding:5px;">
<a href="<?php echo $href; ?>">Reply</a>
</td>
</tr>
<?php
}
?>
</table>
</center>
</body>
<?php $this->load->view("templates/footer"); ?>