php-mpos/public/templates/mmcFE/admin/monitoring/default.tpl
Sebastian Grewe 94d9c1eb4c Added cronjob monitoring to admin panel
* Added monitoring class to deal with monitoring events
* Added event calls to all important cronjobs
* Added cron_end include file for monitoring cleanups on successful runs
* Added Monitoring to autoloader
* Modified account page to check for running auto_payout in monitoring
* Added monitoring to Navigation bar
* Added monitoring controller page

Fixes #415
2013-07-10 10:40:11 +02:00

40 lines
1.1 KiB
Smarty

{foreach $CRONSTATUS as $k=>$v}
{include file="global/block_header.tpl" BLOCK_HEADER="$k"}
<table width="55%">
<thead>
<th>Event Name</th>
<th>Status</th>
</thead>
<tbody>
{foreach $v as $event}
<tr>
<td>{$event.NAME}</td>
<td>
{if $event.STATUS.type == 'okerror'}
{if $event.STATUS.value == 0}
<font color="green">OK</font>
{else}
<font color="red">ERROR</font>
{/if}
{else if $event.STATUS.type == 'message'}
<i>{$event.STATUS.value}</i>
{else if $event.STATUS.type == 'yesno'}
{if $event.STATUS.value == 1}
Yes
{else}
No
{/if}
{else if $event.STATUS.type == 'time'}
{$event.STATUS.value|number_format:"2"} seconds
{else}
{$event.STATUS.value}
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</form>
{include file="global/block_footer.tpl"}
{/foreach}