jb-data.de/template/tpl/ajax/syslog.tpl
2025-08-11 22:23:30 +02:00

35 lines
2.2 KiB
Smarty

{if $anz==0} <div class="panel panel-default collapsible">{/if}
{if $anz==1} <div class="panel panel-warning">{/if}
{if $anz==2} <div class="panel panel-success">{/if}
<div class="panel-heading" align="left">Syslogfile</div>
<div class="panel-body" style="min-height:200px;max-height:200px;overflow-y: scroll;">
{foreach from=$lstatus item=lstatus }
<table class="no-style full">
<tbody>
{if $lstatus.time>$zeit_live}
<tr>
<td nowrap style="width:120px;font-size:9pt" align="left"><span style='color:#009900'>{$lstatus.name} </td>
<td nowrap style="width:120px;font-size:9pt" align="left"><span style='color:#009900'>( {$lstatus.time|date_format:"%d.%m.%y-%H:%M Uhr"} )</td>
<td nowrap style="width:450px;font-size:9pt" align="right"><span style='color:#009900'>{$lstatus.text}</td>
</tr>
{elseif $lstatus.time>$zeit_online}
<tr>
<td nowrap style="width:120px;font-size:9pt" align="left"><span style='color:#FF9000'>{$lstatus.name} </td>
<td nowrap style="width:120px;font-size:9pt" align="left"><span style='color:#FF9000'>( {$lstatus.time|date_format:"%d.%m.%y-%H:%M Uhr"} )</td>
<td nowrap style="width:450px;font-size:9pt" align="right"><span style='color:#FF9000'>{$lstatus.text}</td>
</tr>
{else}
<tr>
<td nowrap style="width:120px;font-size:9pt" align="left">{$lstatus.name} </td>
<td nowrap style="width:120px;font-size:9pt" align="left">( {$lstatus.time|date_format:"%d.%m.%y-%H:%M Uhr"} )</td>
<td nowrap style="width:450px;font-size:9pt" align="right">{$lstatus.text}</td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
</div>
</div>