mirror of
https://github.com/Karaka-Management/oms-Messages.git
synced 2026-01-27 15:58:42 +00:00
Case fix!
This commit is contained in:
parent
f523515a04
commit
7ff9bf14a3
24
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
24
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG['Navigation'] = [
|
||||
'Draft' => 'Draft',
|
||||
'Inbox' => 'Inbox',
|
||||
'Messages' => 'Messages',
|
||||
'Outbox' => 'Outbox',
|
||||
'Settings' => 'Settings',
|
||||
'Spam' => 'Spam',
|
||||
'Trash' => 'Trash',
|
||||
];
|
||||
17
Theme/Backend/Lang/api.en.lang.php
Normal file
17
Theme/Backend/Lang/api.en.lang.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG[1] = [
|
||||
];
|
||||
43
Theme/Backend/Lang/en.lang.php
Normal file
43
Theme/Backend/Lang/en.lang.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG['Messages'] = [
|
||||
'All' => 'All',
|
||||
'AverageAmount' => 'Avg. Amount',
|
||||
'BCC' => 'BCC',
|
||||
'CC' => 'CC',
|
||||
'Date' => 'Date',
|
||||
'Draft' => 'Draft',
|
||||
'From' => 'From',
|
||||
'Inbox' => 'Inbox',
|
||||
'Interval' => 'Interval',
|
||||
'Mailboxes' => 'Mailboxes',
|
||||
'Messages' => 'Messages',
|
||||
'Month' => 'Month',
|
||||
'New' => 'New',
|
||||
'Outbox' => 'Outbox',
|
||||
'Received' => 'Received',
|
||||
'Sent' => 'Sent',
|
||||
'Spam' => 'Spam',
|
||||
'Statistics' => 'Statistics',
|
||||
'Status' => 'Status',
|
||||
'Subject' => 'Subject',
|
||||
'Tag' => 'Tag',
|
||||
'To' => 'To',
|
||||
'Today' => 'Today',
|
||||
'Trash' => 'Trash',
|
||||
'Week' => 'Week',
|
||||
'Year' => 'Year',
|
||||
];
|
||||
68
Theme/Backend/dashboard.tpl.php
Normal file
68
Theme/Backend/dashboard.tpl.php
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$mail = new \phpOMS\Message\Mail\Imap();
|
||||
$mail->connect('{imap.gmail.com:993/imap/ssl}INBOX', 'dev.orange.management@gmail.com', DEV_PASSWORD);
|
||||
$unseen = $mail->getInboxUnseen();
|
||||
$seen = $mail->getInboxSeen();
|
||||
$quota = $mail->getQuota();
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100">
|
||||
<ul class="btns floatLeft">
|
||||
<li><a href="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/backend/messages/mail/create'); ?>"><i class="fa fa-pencil"></i> <?= $this->l11n->lang[0]['Create']; ?></a>
|
||||
<li><a href=""><i class="fa fa-trash"></i> <?= $this->l11n->lang[0]['Delete']; ?></a>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Messages']['Messages']; ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox"></span>
|
||||
<td><?= $this->l11n->lang['Messages']['Tag']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Messages']['Subject']; ?>
|
||||
<td><?= $this->l11n->lang['Messages']['From']; ?>
|
||||
<td><?= $this->l11n->lang['Messages']['Date']; ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="5"><?= \phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['usage']); ?> / <?= \phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['limit']); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach($unseen as $key => $value) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/messages/mail/single?id=' . $value->uid); ?>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox"></span>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= str_replace('_',' ', mb_decode_mimeheader($value->subject)); ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= $value->from; ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= (new \DateTime($value->date))->format('Y-m-d H:i:s'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php foreach($seen as $key => $value) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/messages/mail/single?id=' . $value->uid); ?>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox"></span>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= str_replace('_',' ', mb_decode_mimeheader($value->subject)); ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= $value->from; ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= (new \DateTime($value->date))->format('Y-m-d H:i:s'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count < 1) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</section>
|
||||
32
Theme/Backend/mail-create.tpl.php
Normal file
32
Theme/Backend/mail-create.tpl.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100">
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tr><td style="width: 1%"><button class="simple"><i class="fa fa-book"></i></button><td><input type="text" placeholder=" <?= $this->l11n->lang['Messages']['To']; ?>" name="to">
|
||||
<tr><td style="width: 1%"><button class="simple"><i class="fa fa-book"></i></button><td><input type="text" placeholder=" <?= $this->l11n->lang['Messages']['CC']; ?>" name="cc">
|
||||
<tr><td style="width: 1%"><button class="simple"><i class="fa fa-book"></i></button><td><input type="text" placeholder=" <?= $this->l11n->lang['Messages']['BCC']; ?>" name="bcc">
|
||||
<tr><td><td><input type="text" placeholder=" <?= $this->l11n->lang['Messages']['Subject']; ?>" name="subject">
|
||||
<tr><td><td><input type="file" name="files" multiple>
|
||||
<tr><td><td><div class="textarea" contenteditable="true" style="height: 400px;"></div><textarea placeholder="" style="display: none" name="mail"></textarea>
|
||||
<tr><td><td><input type="submit" value="<?= $this->l11n->lang[0]['Send']; ?>"> <input type="submit" value="<?= $this->l11n->lang[0]['Save']; ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
57
Theme/Backend/mail-out-view.tpl.php
Normal file
57
Theme/Backend/mail-out-view.tpl.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$mail = new \phpOMS\Message\Mail\Imap();
|
||||
$mail->connect('{imap.gmail.com:993/imap/ssl}[Gmail]/Gesendet', 'dev.orange.management@gmail.com', DEV_PASSWORD);
|
||||
$sent = $mail->getInboxAll();
|
||||
$quota = $mail->getQuota();
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100">
|
||||
<ul class="btns floatLeft">
|
||||
<li><a href="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/backend/messages/mail/create'); ?>"><i class="fa fa-pencil"></i> <?= $this->l11n->lang[0]['Create']; ?></a>
|
||||
<li><a href=""><i class="fa fa-trash"></i> <?= $this->l11n->lang[0]['Delete']; ?></a>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Messages']['Messages']; ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox"></span>
|
||||
<td><?= $this->l11n->lang['Messages']['Tag']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Messages']['Subject']; ?>
|
||||
<td><?= $this->l11n->lang['Messages']['From']; ?>
|
||||
<td><?= $this->l11n->lang['Messages']['Date']; ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="5"><?= \phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['usage']); ?> / <?= \phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['limit']); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach($sent as $key => $value) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/messages/mail/single?id=' . $value->uid); ?>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox"></span>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= str_replace('_',' ', mb_decode_mimeheader($value->subject)); ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= $value->from; ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= (new \DateTime($value->date))->format('Y-m-d H:i:s'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count < 1) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</section>
|
||||
57
Theme/Backend/mail-spam-view.tpl.php
Normal file
57
Theme/Backend/mail-spam-view.tpl.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$mail = new \phpOMS\Message\Mail\Imap();
|
||||
$mail->connect('{imap.gmail.com:993/imap/ssl}[Gmail]/Gesendet', 'dev.orange.management@gmail.com', DEV_PASSWORD);
|
||||
$sent = $mail->getInboxAll();
|
||||
$quota = $mail->getQuota();
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100">
|
||||
<ul class="btns floatLeft">
|
||||
<li><a href="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/backend/messages/mail/create'); ?>"><i class="fa fa-pencil"></i> <?= $this->l11n->lang[0]['Create']; ?></a>
|
||||
<li><a href=""><i class="fa fa-trash"></i> <?= $this->l11n->lang[0]['Delete']; ?></a>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Messages']['Messages']; ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox"></span>
|
||||
<td><?= $this->l11n->lang['Messages']['Tag']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Messages']['Subject']; ?>
|
||||
<td><?= $this->l11n->lang['Messages']['From']; ?>
|
||||
<td><?= $this->l11n->lang['Messages']['Date']; ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="5"><?= \phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['usage']); ?> / <?= \phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['limit']); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach($sent as $key => $value) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/messages/mail/single?id=' . $value->uid); ?>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox"></span>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= str_replace('_',' ', mb_decode_mimeheader($value->subject)); ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= $value->from; ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= (new \DateTime($value->date))->format('Y-m-d H:i:s'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count < 1) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</section>
|
||||
57
Theme/Backend/mail-trash-view.tpl.php
Normal file
57
Theme/Backend/mail-trash-view.tpl.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$mail = new \phpOMS\Message\Mail\Imap();
|
||||
$mail->connect('{imap.gmail.com:993/imap/ssl}[Gmail]/Gesendet', 'dev.orange.management@gmail.com', DEV_PASSWORD);
|
||||
$sent = $mail->getInboxAll();
|
||||
$quota = $mail->getQuota();
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100">
|
||||
<ul class="btns floatLeft">
|
||||
<li><a href="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/backend/messages/mail/create'); ?>"><i class="fa fa-pencil"></i> <?= $this->l11n->lang[0]['Create']; ?></a>
|
||||
<li><a href=""><i class="fa fa-trash"></i> <?= $this->l11n->lang[0]['Delete']; ?></a>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Messages']['Messages']; ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox"></span>
|
||||
<td><?= $this->l11n->lang['Messages']['Tag']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Messages']['Subject']; ?>
|
||||
<td><?= $this->l11n->lang['Messages']['From']; ?>
|
||||
<td><?= $this->l11n->lang['Messages']['Date']; ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="5"><?= \phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['usage']); ?> / <?= \phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['limit']); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach($sent as $key => $value) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/messages/mail/single?id=' . $value->uid); ?>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox"></span>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= str_replace('_',' ', mb_decode_mimeheader($value->subject)); ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= $value->from; ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $value->seen == 0 ? ' class="unseen"' : ''; ?>><?= (new \DateTime($value->date))->format('Y-m-d H:i:s'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count < 1) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</section>
|
||||
27
Theme/Backend/mail-view.tpl.php
Normal file
27
Theme/Backend/mail-view.tpl.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$mail = new \phpOMS\Message\Mail\Imap();
|
||||
$mail->connect('{imap.gmail.com:993/imap/ssl}INBOX', 'dev.orange.management@gmail.com', DEV_PASSWORD);
|
||||
$mails = $mail->getEmail($this->getData('id'));
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100">
|
||||
<h1><?= str_replace('_',' ', mb_decode_mimeheader($mails['overview'][0]->subject)); ?></h1>
|
||||
<div class="inner">
|
||||
<?= $mail::decode($mails['body'], $mails['encoding']->encoding); ?>
|
||||
</div>
|
||||
</section>
|
||||
66
Theme/Backend/message-settings.tpl.php
Normal file
66
Theme/Backend/message-settings.tpl.php
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$mail = new \phpOMS\Message\Mail\Imap();
|
||||
$mail->connect('{imap.gmail.com:993/imap/ssl}', 'dev.orange.management@gmail.com', DEV_PASSWORD);
|
||||
$boxes = $mail->getBoxes();
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-33">
|
||||
<h1><?= $this->l11n->lang['Messages']['Mailboxes']; ?></h1>
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout">
|
||||
<tr><td><label for="iInbox"><?= $this->l11n->lang['Messages']['Inbox']; ?></label>
|
||||
<tr><td><select id="iInbox" name="inbox">
|
||||
<option value=""><?= $this->l11n->lang[0]['Select']; ?>
|
||||
<?php foreach($boxes as $box) : ?>
|
||||
<option value="<?= $box; ?>"><?= $box; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr><td><label for="iOutbox"><?= $this->l11n->lang['Messages']['Outbox']; ?></label>
|
||||
<tr><td><select id="iOutbox" name="outbox">
|
||||
<option value=""><?= $this->l11n->lang[0]['Select']; ?>
|
||||
<?php foreach($boxes as $box) : ?>
|
||||
<option value="<?= $box; ?>"><?= $box; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr><td><label for="iDraft"><?= $this->l11n->lang['Messages']['Draft']; ?></label>
|
||||
<tr><td><select id="iDraft" name="draft">
|
||||
<option value=""><?= $this->l11n->lang[0]['Select']; ?>
|
||||
<?php foreach($boxes as $box) : ?>
|
||||
<option value="<?= $box; ?>"><?= $box; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr><td><label for="iTrash"><?= $this->l11n->lang['Messages']['Trash']; ?></label>
|
||||
<tr><td><select id="iTrash" name="trash">
|
||||
<option value=""><?= $this->l11n->lang[0]['Select']; ?>
|
||||
<?php foreach($boxes as $box) : ?>
|
||||
<option value="<?= $box; ?>"><?= $box; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr><td><label for="iSpam"><?= $this->l11n->lang['Messages']['Spam']; ?></label>
|
||||
<tr><td><select id="iSpam" name="spam">
|
||||
<option value=""><?= $this->l11n->lang[0]['Select']; ?>
|
||||
<?php foreach($boxes as $box) : ?>
|
||||
<option value="<?= $box; ?>"><?= $box; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Save']; ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
Loading…
Reference in New Issue
Block a user