mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +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:
42
plugins/vendor/webklex/php-imap/examples/folder_structure.blade.php
vendored
Normal file
42
plugins/vendor/webklex/php-imap/examples/folder_structure.blade.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/*
|
||||
* File: folder_structure.blade.php
|
||||
* Category: View
|
||||
* Author: M.Goldenbaum
|
||||
* Created: 15.09.18 19:53
|
||||
* Updated: -
|
||||
*
|
||||
* Description:
|
||||
* -
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var \Webklex\PHPIMAP\Support\FolderCollection $paginator
|
||||
* @var \Webklex\PHPIMAP\Folder $folder
|
||||
*/
|
||||
|
||||
?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Folder</th>
|
||||
<th>Unread messages</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if($paginator->count() > 0): ?>
|
||||
<?php foreach($paginator as $folder): ?>
|
||||
<tr>
|
||||
<td><?php echo $folder->name; ?></td>
|
||||
<td><?php echo $folder->search()->unseen()->setFetchBody(false)->count(); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="4">No folders found</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php echo $paginator->links(); ?>
|
||||
Reference in New Issue
Block a user