mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-11 17:18:40 +00:00
89 lines
4.5 KiB
PHP
89 lines
4.5 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package Modules\Support
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @var \phpOMS\Views\View $this
|
|
* @var \Modules\Tasks\Models\Task[] $tickets
|
|
*/
|
|
$tickets = $this->getData('tickets');
|
|
echo $this->getData('nav')->render(); ?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-9">
|
|
<div class="box wf-100">
|
|
<table class="default">
|
|
<caption><?= $this->getHtml('Tickets') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
|
<thead>
|
|
<td><?= $this->getHtml('Status') ?>
|
|
<td><?= $this->getHtml('Due') ?>
|
|
<td class="full"><?= $this->getHtml('Title') ?>
|
|
<td><?= $this->getHtml('Creator') ?>
|
|
<td><?= $this->getHtml('Created') ?>
|
|
<tfoot>
|
|
<tbody>
|
|
<?php $c = 0; foreach ($tickets as $key => $ticket) : ++$c;
|
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}support/single?{?}&id=' . $ticket->getId());
|
|
$color = 'darkred';
|
|
if ($ticket->getTask()->getStatus() === \Modules\Tasks\Models\TaskStatus::DONE) { $color = 'green'; }
|
|
elseif ($ticket->getTask()->getStatus() === \Modules\Tasks\Models\TaskStatus::OPEN) { $color = 'darkblue'; }
|
|
elseif ($ticket->getTask()->getStatus() === \Modules\Tasks\Models\TaskStatus::WORKING) { $color = 'purple'; }
|
|
elseif ($ticket->getTask()->getStatus() === \Modules\Tasks\Models\TaskStatus::CANCELED) { $color = 'red'; }
|
|
elseif ($ticket->getTask()->getStatus() === \Modules\Tasks\Models\TaskStatus::SUSPENDED) { $color = 'yellow'; } ?>
|
|
<tr data-href="<?= $url; ?>">
|
|
<td><a href="<?= $url; ?>"><span class="tag <?= $this->printHtml($color); ?>"><?= $this->getHtml('S' . $ticket->getTask()->getStatus(), 'Tasks') ?></span></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->getTask()->getDue()->format('Y-m-d H:i')); ?></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->getTask()->getTitle()); ?></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->getTask()->getCreatedBy()->getName1()); ?></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->getTask()->getCreatedAt()->format('Y-m-d H:i')); ?></a>
|
|
<?php endforeach; if ($c == 0) : ?>
|
|
<tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-3">
|
|
<section class="box wf-100">
|
|
<header><h1><?= $this->getHtml('Settings') ?></h1></header>
|
|
<div class="inner">
|
|
<form>
|
|
<table class="layout wf-100">
|
|
<tr><td><label for="iIntervarl"><?= $this->getHtml('Interval') ?></label>
|
|
<tr><td><select id="iIntervarl" name="interval">
|
|
<option><?= $this->getHtml('All') ?>
|
|
<option><?= $this->getHtml('Day') ?>
|
|
<option><?= $this->getHtml('Week') ?>
|
|
<option selected><?= $this->getHtml('Month') ?>
|
|
<option><?= $this->getHtml('Year') ?>
|
|
</select>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="box wf-100">
|
|
<header><h1><?= $this->getHtml('Settings') ?></h1></header>
|
|
<div class="inner">
|
|
<table class="list">
|
|
<tr><th><?= $this->getHtml('Received') ?><td>0
|
|
<tr><th><?= $this->getHtml('Created') ?><td>0
|
|
<tr><th><?= $this->getHtml('Forwarded') ?><td>0
|
|
<tr><th><?= $this->getHtml('AverageAmount') ?><td>0
|
|
<tr><th><?= $this->getHtml('AverageProcessTime') ?><td>0
|
|
<tr><th><?= $this->getHtml('InTime') ?><td>0
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|