mirror of
https://github.com/Karaka-Management/oms-Messages.git
synced 2026-01-11 16:48:40 +00:00
started with template fixes
This commit is contained in:
parent
f3f3af788c
commit
16d738f9a4
|
|
@ -18,7 +18,7 @@
|
|||
"pid": "/",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Inbox",
|
||||
"name": "Dashboard",
|
||||
"uri": "{/base}/messages/dashboard?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
|
|
@ -33,6 +33,22 @@
|
|||
"pid": "/",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Inbox",
|
||||
"uri": "{/base}/messages/inbox?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 4,
|
||||
"from": "Messages",
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1001201001,
|
||||
"children": [],
|
||||
"status": 3
|
||||
},
|
||||
{
|
||||
"id": 1001204001,
|
||||
"pid": "/",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Outbox",
|
||||
"uri": "{/base}/messages/outbox?{?}",
|
||||
"target": "self",
|
||||
|
|
@ -41,10 +57,11 @@
|
|||
"from": "Messages",
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1001201001,
|
||||
"children": []
|
||||
"children": [],
|
||||
"status": 3
|
||||
},
|
||||
{
|
||||
"id": 1001204001,
|
||||
"id": 1001205001,
|
||||
"pid": "/",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
|
|
@ -56,10 +73,11 @@
|
|||
"from": "Messages",
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1001201001,
|
||||
"children": []
|
||||
"children": [],
|
||||
"status": 3
|
||||
},
|
||||
{
|
||||
"id": 1001205001,
|
||||
"id": 1001206001,
|
||||
"pid": "/",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
|
|
@ -71,10 +89,11 @@
|
|||
"from": "Messages",
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1001201001,
|
||||
"children": []
|
||||
"children": [],
|
||||
"status": 3
|
||||
},
|
||||
{
|
||||
"id": 1001206001,
|
||||
"id": 1001207001,
|
||||
"pid": "/",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
|
|
@ -86,10 +105,11 @@
|
|||
"from": "Messages",
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1001201001,
|
||||
"children": []
|
||||
"children": [],
|
||||
"status": 3
|
||||
},
|
||||
{
|
||||
"id": 1001207001,
|
||||
"id": 1001208001,
|
||||
"pid": "/",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
|
|
@ -104,7 +124,7 @@
|
|||
"children": []
|
||||
},
|
||||
{
|
||||
"id": 1001208001,
|
||||
"id": 1001209001,
|
||||
"pid": "/",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
|
|
|
|||
|
|
@ -18,12 +18,12 @@ echo $this->data['nav']->render(); ?>
|
|||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tr><td style="width: 1%"><button class="simple"><i class="g-icon">book</i></button><td><input type="text" placeholder="<?= $this->getHtml('To'); ?>" name="to">
|
||||
<tr><td style="width: 1%"><button class="simple"><i class="g-icon">book</i></button><td><input type="text" placeholder="<?= $this->getHtml('CC'); ?>" name="cc">
|
||||
<tr><td style="width: 1%"><button class="simple"><i class="g-icon">book</i></button><td><input type="text" placeholder="<?= $this->getHtml('BCC'); ?>" name="bcc">
|
||||
<tr><td><td><input type="text" placeholder="<?= $this->getHtml('Subject'); ?>" name="subject">
|
||||
<tr><td style="width: 1%"><button class="simple"><i class="g-icon">book</i></button><td><input type="text" name="to">
|
||||
<tr><td style="width: 1%"><button class="simple"><i class="g-icon">book</i></button><td><input type="text" name="cc">
|
||||
<tr><td style="width: 1%"><button class="simple"><i class="g-icon">book</i></button><td><input type="text" name="bcc">
|
||||
<tr><td><td><input type="text" 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><div class="textarea" contenteditable="true" style="height: 400px;"></div><textarea style="display: none" name="mail"></textarea>
|
||||
<tr><td><td><input type="submit" value="<?= $this->getHtml('Send', '0', '0'); ?>" name="send-mail"> <input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>" name="save-mail">
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -72,21 +72,12 @@ echo $this->data['nav']->render(); ?>
|
|||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Channels'); ?></div>
|
||||
<div class="portlet-body">
|
||||
asdf
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Email'); ?></div>
|
||||
<div class="portlet-body">
|
||||
asdf
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Chat'); ?></div>
|
||||
<div class="portlet-body">
|
||||
asdf
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
93
Theme/Backend/mail-inbox.tpl.php
Normal file
93
Theme/Backend/mail-inbox.tpl.php
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
<?php
|
||||
/**
|
||||
* Jingga
|
||||
*
|
||||
* PHP Version 8.2
|
||||
*
|
||||
* @package Modules\Messages
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
use phpOMS\Uri\UriFactory;
|
||||
|
||||
/*
|
||||
$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();
|
||||
*/
|
||||
|
||||
$messages = $this->data['messages'] ?? [];
|
||||
|
||||
$previous = empty($messages) ? 'messages/dashboard' : 'messages/dashboard?{?}&id=' . \reset($messages)->id . '&ptype=p';
|
||||
$next = empty($messages) ? 'messages/dashboard' : 'messages/dashboard?{?}&id=' . \end($messages)->id . '&ptype=n';
|
||||
|
||||
echo $this->data['nav']->render(); ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-9">
|
||||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Messages'); ?><i class="g-icon download btn end-xs">download</i></div>
|
||||
<table id="profileList" class="default sticky">
|
||||
<thead>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox" name="profile-list"></span>
|
||||
<td><?= $this->getHtml('Tag'); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Subject'); ?>
|
||||
<td><?= $this->getHtml('From'); ?>
|
||||
<td><?= $this->getHtml('Date'); ?>
|
||||
<tbody>
|
||||
<?php $count = 0;
|
||||
foreach ($messages as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('{/base}/messages/mail/view?{?}&id=' . $value->uid); ?>
|
||||
<tr>
|
||||
<td><span class="check"><input type="checkbox" name=""></span>
|
||||
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>></a>
|
||||
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml(\str_replace('_',' ', \mb_decode_mimeheader($value->subject))); ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml($value->from); ?></a>
|
||||
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml((new \DateTime($value->date))->format('Y-m-d H:i:s')); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($count === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<div class="portlet-foot">
|
||||
<a tabindex="0" class="button" href="<?= UriFactory::build($previous); ?>"><?= $this->getHtml('Previous', '0', '0'); ?></a>
|
||||
<a tabindex="0" class="button" href="<?= UriFactory::build($next); ?>"><?= $this->getHtml('Next', '0', '0'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-3">
|
||||
<div class="box">
|
||||
<a tabindex="0" class="button" href="<?= UriFactory::build('{/base}/messages/mail/create'); ?>"><?= $this->getHtml('Create', '0', '0'); ?></a>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Channels'); ?></div>
|
||||
<div class="portlet-body">
|
||||
asdf
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Email'); ?></div>
|
||||
<div class="portlet-body">
|
||||
asdf
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Chat'); ?></div>
|
||||
<div class="portlet-body">
|
||||
asdf
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -22,7 +22,7 @@ $next = empty($messages) ? 'messages/dashboard' : 'messages/dashboard?{?}&id
|
|||
echo $this->data['nav']->render(); ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-9">
|
||||
<div class="col-xs-12">
|
||||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Templates'); ?><i class="g-icon download btn end-xs">download</i></div>
|
||||
<table id="profileList" class="default sticky">
|
||||
|
|
@ -51,31 +51,4 @@ echo $this->data['nav']->render(); ?>
|
|||
<a tabindex="0" class="button" href="<?= UriFactory::build($next); ?>"><?= $this->getHtml('Next', '0', '0'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-3">
|
||||
<div class="box">
|
||||
<a tabindex="0" class="button" href="<?= UriFactory::build('{/base}/messages/template/create'); ?>"><?= $this->getHtml('Create', '0', '0'); ?></a>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Channels'); ?></div>
|
||||
<div class="portlet-body">
|
||||
asdf
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Email'); ?></div>
|
||||
<div class="portlet-body">
|
||||
asdf
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Chat'); ?></div>
|
||||
<div class="portlet-body">
|
||||
asdf
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -12,9 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
$mail = new \phpOMS\Message\Mail\Imap();
|
||||
$mail->connect('{imap.gmail.com:993/imap/ssl}', 'dev.orange.management@gmail.com', 'DEV_PASSWORD');
|
||||
$boxes = $mail->getBoxes();
|
||||
$boxes = [];
|
||||
|
||||
echo $this->data['nav']->render(); ?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user