php-mpos/public/templates/test/admin/monitoring/default.tpl
Sebastian Grewe 98688d5839 Updated testing template
* Removed unneeded template icons
* Added new icon font
* Added icons to navbard
* Added full admin features

Updates #444
2013-09-07 23:49:45 +02:00

59 lines
1.8 KiB
Smarty

<article class="module width_full">
<header><h3>Monitoring</h3></header>
<table class="tablesorter" cellspacing="0">
<thead>
<th>Cronjob</th>
<th>Exit Code</th>
<th>Active</th>
<th>Runtime</th>
<th>Start Time</th>
<th>End Time</th>
<th>Message</th>
</thead>
<tbody>
{foreach $CRONSTATUS as $cron => $data}
<tr>
<td>{$cron}</td>
{foreach $data as $name => $event}
<td>
{if $event.type == 'okerror'}
{if $event.value == 0}
<font color="green">OK</font>
{else}
<font color="red">ERROR</font>
{/if}
{else if $event.type == 'message'}
<i>{$event.value}</i>
{else if $event.type == 'yesno'}
<img src="{$PATH}/images/icn_alert_{if $event.value == 1}success{else}error{/if}.png" />
{else if $event.type == 'time'}
{if $event.value > 60}
<font color="orange">
{else if $event.value > 120}
<font color="red">
{else}
<font color="green">
{/if}
{$event.value|default:"0"|number_format:"2"} seconds
</font>
{else if $event.type == 'date'}
{if ($smarty.now - 180) > $event.value}
<font color="red">
{else if ($smarty.now - 120) > $event.value}
<font color="orange">
{else}
<font color="green">
{/if}
{$event.value|date_format:"%m/%d %H:%M:%S"}
</font>
{else}
{$event.value|default:""}
{/if}
</td>
{/foreach}
</tr>
{/foreach}
</tbody>
</table>
</article>