Added log view

This commit is contained in:
Dennis Eichhorn 2016-12-30 20:40:17 +01:00
parent 2e18354fb3
commit 29e9a92486
3 changed files with 67 additions and 0 deletions

View File

@ -29,6 +29,7 @@ echo $this->getData('nav')->render(); ?>
<li><label for="c-tab-6"><?= $this->getText('Prices') ?></label></li>
<li><label for="c-tab-7"><?= $this->getText('AreaManager') ?></label></li>
<li><label for="c-tab-8"><?= $this->getText('Files') ?></label></li>
<li><label for="c-tab-9"><?= $this->getText('Logs') ?></label>
</ul>
</div>
<div class="tab-content">
@ -225,5 +226,36 @@ echo $this->getData('nav')->render(); ?>
<input type="radio" id="c-tab-8" name="tabular-2">
<div class="tab">
</div>
<input type="radio" id="c-tab-9" name="tabular-2">
<div class="tab">
<?php
$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response);
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
$footerView->setPages(20);
$footerView->setPage(1);
?>
<div class="box w-100">
<table class="table">
<caption><?= $this->getText('Logs') ?></caption>
<thead>
<tr>
<td>IP
<td><?= $this->getText('ID', 0, 0); ?>
<td><?= $this->getText('Name'); ?>
<td class="wf-100"><?= $this->getText('Log'); ?>
<td><?= $this->getText('Date'); ?>
<tfoot>
<tr>
<td colspan="6"><?= $footerView->render(); ?>
<tbody>
<tr>
<td><?= $this->request->getOrigin(); ?>
<td><?= $this->request->getAccount(); ?>
<td><?= $this->request->getAccount(); ?>
<td>Creating customer
<td><?= (new \DateTime('now'))->format('Y-m-d H:i:s') ?>
</table>
</div>
</div>
</div>
</div>

View File

@ -27,6 +27,7 @@ return ['ClientManagement' => [
'Contact' => 'Contact',
'Country' => 'Country',
'Creditcard' => 'Creditcard',
'Date' => 'Date',
'Default' => 'Default',
'Delivery' => 'Delivery',
'Discount' => 'Discount',
@ -40,6 +41,8 @@ return ['ClientManagement' => [
'Info' => 'Info',
'Invoice' => 'Invoice',
'IsDefault' => 'Is default?',
'Log' => 'Log',
'Logs' => 'Logs',
'Master' => 'Master',
'Name' => 'Name',
'Name1' => 'Name1',

View File

@ -29,6 +29,7 @@ echo $this->getData('nav')->render(); ?>
<li><label for="c-tab-6"><?= $this->getText('Prices') ?></label></li>
<li><label for="c-tab-7"><?= $this->getText('AreaManager') ?></label></li>
<li><label for="c-tab-8"><?= $this->getText('Files') ?></label></li>
<li><label for="c-tab-9"><?= $this->getText('Logs') ?></label>
</ul>
</div>
<div class="tab-content">
@ -225,5 +226,36 @@ echo $this->getData('nav')->render(); ?>
<input type="radio" id="c-tab-8" name="tabular-2">
<div class="tab">
</div>
<input type="radio" id="c-tab-9" name="tabular-2">
<div class="tab">
<?php
$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response);
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
$footerView->setPages(20);
$footerView->setPage(1);
?>
<div class="box w-100">
<table class="table">
<caption><?= $this->getText('Logs') ?></caption>
<thead>
<tr>
<td>IP
<td><?= $this->getText('ID', 0, 0); ?>
<td><?= $this->getText('Name'); ?>
<td class="wf-100"><?= $this->getText('Log'); ?>
<td><?= $this->getText('Date'); ?>
<tfoot>
<tr>
<td colspan="6"><?= $footerView->render(); ?>
<tbody>
<tr>
<td><?= $this->request->getOrigin(); ?>
<td><?= $this->request->getAccount(); ?>
<td><?= $this->request->getAccount(); ?>
<td>Creating customer
<td><?= (new \DateTime('now'))->format('Y-m-d H:i:s') ?>
</table>
</div>
</div>
</div>
</div>