maillist.php 1010 B

123456789101112131415161718192021222324252627282930
  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. if($this->_['mails']) {
  13. foreach($this->_['mails'] as $mail) {
  14. $checked = "";
  15. if($mail->getProcessed() == 1) {
  16. $checked = "checked";
  17. }
  18. echo '<tr>';
  19. echo '<td><input type="checkbox" value="1" ' . $checked . ' id="mail-processed-' . $mail->getID() . '" class="mail-processed"></td>';
  20. echo '<td>' . $mail->getMailSender() . '</td>';
  21. echo '<td>' . $mail->getMailRecipient() . '</td>';
  22. echo '<td>' . $mail->getSubject() . '</td>';
  23. echo '<td><a href="#" data-mail-id="' . $mail->getID() . '" class="reply-mail"><i class="fa fa-reply"></i></a></td>';
  24. echo '</tr>';
  25. }
  26. }
  27. ?>
  28. </table>