Admin tpl flexbox implementation

This commit is contained in:
Dennis Eichhorn 2017-01-28 19:56:13 +01:00
parent b4e1fcdb27
commit fb371e61a6
2 changed files with 76 additions and 66 deletions

View File

@ -18,7 +18,9 @@ $penetrators = $this->app->logger->getHighestPerpetrator();
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('System') ?></h1></header> <header><h1><?= $this->getText('System') ?></h1></header>
<div class="inner"> <div class="inner">
<table class="list wf-100"> <table class="list wf-100">
@ -32,9 +34,11 @@ echo $this->getData('nav')->render(); ?>
<tr><td><?= $this->getText('CPUUsage') ?><td><?= \phpOMS\System\SystemUtils::getCpuUsage(); ?>% <tr><td><?= $this->getText('CPUUsage') ?><td><?= \phpOMS\System\SystemUtils::getCpuUsage(); ?>%
</table> </table>
</div> </div>
</section> </section>
</div>
<section class="box w-33 floatLeft"> <div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Logs') ?></h1></header> <header><h1><?= $this->getText('Logs') ?></h1></header>
<div class="inner"> <div class="inner">
<table class="list wf-100"> <table class="list wf-100">
@ -50,9 +54,11 @@ echo $this->getData('nav')->render(); ?>
<tr><td><?= $this->getText('Total') ?><td><?= array_sum($logs); ?> <tr><td><?= $this->getText('Total') ?><td><?= array_sum($logs); ?>
</table> </table>
</div> </div>
</section> </section>
</div>
<section class="box w-33 floatLeft"> <div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Penetrators') ?></h1></header> <header><h1><?= $this->getText('Penetrators') ?></h1></header>
<div class="inner"> <div class="inner">
<table class="list wf-100"> <table class="list wf-100">
@ -62,4 +68,6 @@ echo $this->getData('nav')->render(); ?>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
</div> </div>
</section> </section>
</div>
</div>

View File

@ -28,7 +28,8 @@ $logs = array_reverse($this->app->logger->get(25), true);
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="row">
<div class="box col-xs-12 wf-100">
<table class="table"> <table class="table">
<caption><?= $this->getText('Logs'); ?></caption> <caption><?= $this->getText('Logs'); ?></caption>
<thead> <thead>
@ -54,4 +55,5 @@ echo $this->getData('nav')->render(); ?>
<td colspan="4"> <td colspan="4">
<?php endif; ?> <?php endif; ?>
</table> </table>
</div>
</div> </div>