mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-01-25 19:58:40 +00:00
70 lines
2.6 KiB
PHP
70 lines
2.6 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
/**
|
|
* @var \phpOMS\Views\View $this
|
|
*/
|
|
$audits = $this->getData('audits') ?? [];
|
|
echo $this->getData('nav')->render(); ?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="box wf-100">
|
|
<table class="table fixed darkred">
|
|
<caption><?= $this->getHtml('Audits') ?></caption>
|
|
<colgroup>
|
|
<col style="width: 100px">
|
|
<col style="width: 150px">
|
|
<col style="width: 75px">
|
|
<col style="width: 75px">
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col style="width: 125px">
|
|
<col style="width: 150px">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<td><?= $this->getHtml('ID', 0, 0); ?>
|
|
<td ><?= $this->getHtml('Module') ?>
|
|
<td ><?= $this->getHtml('Type') ?>
|
|
<td ><?= $this->getHtml('Subtype') ?>
|
|
<td ><?= $this->getHtml('Old') ?>
|
|
<td ><?= $this->getHtml('New') ?>
|
|
<td ><?= $this->getHtml('Content') ?>
|
|
<td ><?= $this->getHtml('By') ?>
|
|
<td ><?= $this->getHtml('Date') ?>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="9">
|
|
<tbody>
|
|
<?php $count = 0; foreach ($audits as $key => $audit) : $count++;
|
|
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/audit/single?{?}&id=' . $audit->getId()); ?>
|
|
<tr data-href="<?= $url; ?>">
|
|
<td><?= $audit->getId(); ?>
|
|
<td><?= $audit->getModule(); ?>
|
|
<td><?= $audit->getType(); ?>
|
|
<td><?= $audit->getSubtype(); ?>
|
|
<td><?= $audit->getOld(); ?>
|
|
<td><?= $audit->getNew(); ?>
|
|
<td><?= $audit->getContent(); ?>
|
|
<td><?= $audit->getCreatedBy()->getName(); ?>
|
|
<td><?= $audit->getCreatedAt()->format('Y-m-d H:i'); ?>
|
|
<?php endforeach; ?>
|
|
<?php if ($count === 0) : ?>
|
|
<tr><td colspan="9" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|