Файл: htdocs/showmess.php
Строк: 56
<?php
include ("includes/header.php");
if ($action == "delete") {
$SmartMail->delmess();
}
if ($action == "undelete") {
$SmartMail->undelmess();
}
//message view
$message = $SmartMail->showmess();
echo "<div class='header'>" . cutstr($message["header"]["subject"],30) . "</div>
<div id='messagetools'>
<div class='prev'>";
if ($message["prev"]) echo "<a href='?m=" . $message["prev"] . "&f=" . $SmartMail->basefolder . "'><img src='images/icons/prwd.png' alt='<-'></a>";
else echo "<img src='images/icons/prwd_dis.png' alt='<-'>";
echo "</div>
<div class='next'>";
if ($message["next"]) echo "<a href='?m=" . $message["next"] . "&f=" . $SmartMail->basefolder . "'><img src='images/icons/pfwd.png' alt='>-'></a>";
else echo "<img src='images/icons/pfwd_dis.png' alt='>-'>";
echo "</div>
<a href='newmess.php?mode=reply&m=" . $SmartMail->m . "&f=" . $SmartMail->basefolder . "'><img src='images/icons/reply.png' alt='RE'></a>
<a href='newmess.php?mode=forward&m=" . $SmartMail->m . "&f=" . $SmartMail->basefolder . "'><img src='images/icons/forward.png' alt='FWD'></a>n";
if ($message["header"]["deleted"]) echo "<a href='showmess.php?m=" . $SmartMail->m . "&f=" . $SmartMail->basefolder . "&action=undelete'><img src='images/icons/undelete.png' alt='UNDEL'></a>";
else echo "<a href='showmess.php?m=" . $SmartMail->m . "&f=" . $SmartMail->basefolder . "&action=delete'><img src='images/icons/delete.png' alt='DEL'></a>";
echo "</div>";
if ($SmartMail->success) echo display_success($SmartMail->success);
if ($SmartMail->error) echo display_error($SmartMail->error);
echo "<div id='message'>
<div class='messheader'>
<span class='messsub'>" . $message["header"]["subject"] . "</span><br />
<span class='messdata'>" . date(lang("datetimeformatlong"),strtotime($message["header"]["date"])) . "<br />
" . lang("descr_from") . ": <a href='newmess.php?to=" . $message["header"]["frommail"] . "'>" . $message["header"]["fromname"] . "</a></span>
</div>
<div class='messbody'>
" . $message["body"] . "
</div>
</div>";
echo "<p class='clear'></p>";
echo "<div id='footer'>
<div class='home'><a href='index.php'><img src='images/icons/home.png' alt=''></a></div>
<div class='logout'><a href='?action=logout'><img src='images/icons/logout.png' alt=''></a></div>
<a href='index.php?f=" . $SmartMail->basefolder . "'><img src='images/icons/back.png' alt='back'></a>
<a href='newmess.php'><img src='images/icons/new.png' alt='new'></a>
</div>";
?>
</body>
</html>