maillist.php 932 B

12345678910111213141516171819202122232425262728
  1. <table id="mail-list" class="table table-striped">
  2. <thead>
  3. <tr>
  4. <th><i class="fa fa-check"></i></th>
  5. <th>Absender</th>
  6. <th>Empfänger</th>
  7. <th>Betreff</th>
  8. <th><a id="refresh-mails" href="#"><i class="fa fa-refresh"></i></a></th>
  9. </tr>
  10. </thead>
  11. <?php
  12. foreach($this->_['mails'] as $mail) {
  13. $checked = "";
  14. if($mail->getProcessed() == 1) {
  15. $checked = "checked";
  16. }
  17. echo '<tr>';
  18. echo '<td><input type="checkbox" value="1" ' . $checked . ' id="mail-processed-' . $mail->getID() . '" class="mail-processed"></td>';
  19. echo '<td>' . $mail->getMailSender() . '</td>';
  20. echo '<td>' . $mail->getMailRecipient() . '</td>';
  21. echo '<td>' . $mail->getSubject() . '</td>';
  22. echo '<td><a href="#" data-mail-id="' . $mail->getID() . '" class="reply-mail"><i class="fa fa-reply"></i></a></td>';
  23. echo '</tr>';
  24. }
  25. ?>
  26. </table>