mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Reintroduce Webklex IMAP for ticket processing as PHP-IMAP is no longer being developed. This is optional for now and considered beta can be found in cron/ticket_email_parser.php
This commit is contained in:
46
plugins/vendor/webklex/php-imap/examples/message_table.blade.php
vendored
Normal file
46
plugins/vendor/webklex/php-imap/examples/message_table.blade.php
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/*
|
||||
* File: message_table.blade.php
|
||||
* Category: View
|
||||
* Author: M.Goldenbaum
|
||||
* Created: 15.09.18 19:53
|
||||
* Updated: -
|
||||
*
|
||||
* Description:
|
||||
* -
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var \Webklex\PHPIMAP\Support\FolderCollection $paginator
|
||||
* @var \Webklex\PHPIMAP\Message $message
|
||||
*/
|
||||
|
||||
?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>UID</th>
|
||||
<th>Subject</th>
|
||||
<th>From</th>
|
||||
<th>Attachments</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if($paginator->count() > 0): ?>
|
||||
<?php foreach($paginator as $message): ?>
|
||||
<tr>
|
||||
<td><?php echo $message->getUid(); ?></td>
|
||||
<td><?php echo $message->getSubject(); ?></td>
|
||||
<td><?php echo $message->getFrom()[0]->mail; ?></td>
|
||||
<td><?php echo $message->getAttachments()->count() > 0 ? 'yes' : 'no'; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="4">No messages found</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php echo $paginator->links(); ?>
|
||||
Reference in New Issue
Block a user