Вход Регистрация
Файл: htdocs/index.php
Строк: 49
<?php
  
include ("includes/header.php");

  
//first inbox view and boxview

  
$messages $SmartMail->messagelist();
  

  echo 
"<div class='header'>" $SmartMail->basefolder " (" $messages["count"] . ")</div>
      <div id='messages'>"
;
  
  
//throug the messages
  
$mcount count($messages["headers"]);
  for (
$i=0;$i<$mcount;$i++) {
    
$thismess $messages["headers"][$i][0];
    
    if (!
$thismess->seen$icon "icons/unseen.gif";
    elseif (
$thismess->flagged$icon "icons/flagged.gif";
    else 
$icon "spacer.gif";
    
    
//datecheck
    
if (date("dmY",strtotime($thismess->date " +1 day")) == date("dmY")) $date lang("yesterday");
    elseif (
date("dmY",strtotime($thismess->date)) == date("dmY")) $date date(lang("timeformat"),strtotime($thismess->date));
    else 
$date date(lang("dateformat"), strtotime($thismess->date));

    echo 
"<div class='mess" . ($thismess->deleted " deleted" "") . "'>
      <img src='images/
$icon' alt='' width='13' height='13' class='dot'>
      <span class='fromsub'><span class='from'><a href='showmess.php?f=" 
$SmartMail->basefolder "&amp;m=" $thismess->msgno "' >" cutstr($thismess->from,27) . "</a>n";
    if (
$thismess->answered) echo "<img src='images/icons/flag_re.png' alt=''>";
    echo 
"</span><br>
        <span class='sub'><a href='showmess.php?f=" 
$SmartMail->basefolder "&amp;m=" $thismess->msgno "' >" cutstr($thismess->subject,35) . "</a></span></span>
      <span class='date'>
$date</span></a>
    </div>"
;
  }
  echo 
"</div>
    </div>"
;
  echo 
"<p class='clear'></p>";
  
//pagination
  
$pager $SmartMail->drawPagination();
  echo 
"<div id='footer'>
    <div class='folders'><a href='folders.php'><img src='images/icons/folders.png' alt=''></a>
      <a href='newmess.php'><img src='images/icons/new.png' alt='new'></a></div>
    <div class='logout'><a href='?action=logout'><img src='images/icons/logout.png' alt=''></a></div>
    
$pager
    </div>"
;
  
?>

  </body>
</html>
Онлайн: 1
Реклама