| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
?> |
| 19 |
<table> |
| 20 |
<thead> |
| 21 |
<tr> |
| 22 |
<th>UID</th> |
| 23 |
<th>Subject</th> |
| 24 |
<th>From</th> |
| 25 |
<th>Attachments</th> |
| 26 |
</tr> |
| 27 |
</thead> |
| 28 |
<tbody> |
| 29 |
<?php if($paginator->count() > 0): ?> |
| 30 |
<?php foreach($paginator as $message): ?> |
| 31 |
<tr> |
| 32 |
<td><?php echo $message->getUid(); ?></td> |
| 33 |
<td><?php echo $message->getSubject(); ?></td> |
| 34 |
<td><?php echo $message->getFrom()[0]->mail; ?></td> |
| 35 |
<td><?php echo $message->getAttachments()->count() > 0 ? 'yes' : 'no'; ?></td> |
| 36 |
</tr> |
| 37 |
<?php endforeach; ?> |
| 38 |
<?php else: ?> |
| 39 |
<tr> |
| 40 |
<td colspan="4">No messages found</td> |
| 41 |
</tr> |
| 42 |
<?php endif; ?> |
| 43 |
</tbody> |
| 44 |
</table> |
| 45 |
|
| 46 |
<?php echo $paginator->links(); ?> |