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

34 lines
1.8 KiB
Smarty

<div style="background-color: gray;color: #115270">
<i class="fas fa-user-clock fa-7x fa-pull-left"></i>
<table class="no-style full" style="background-color: gray;color: #dddddd;font-size:11pt">
{foreach from=$abfrage_c item=co}
{if $co.status==2 && $co.ontour==0}
<tr>
<td nowrap style="width:170px" align="left"><span style='color:#000FFF'>{$co.name}</td>
<td nowrap style="width:120px" align="left"><span style='color:#000FFF'>Karte frei</td>
<td nowrap style="width:10pxt" align="right"><span style='color:#000FFF'>{$co.etime|date_format:"%H:%M"}</td>
</tr>
{elseif $co.status==2 && $co.ontour==1}
<tr>
<td nowrap style="width:170px" align="left" ><span style='color:green'>{$co.name}</td>
<td nowrap style="width:120px" align="left" ><span style='color:green'><mark>ON-Tour&nbsp;&nbsp; {$co.lastlog|date_format:"%H:%M"}</mark></td>
<td nowrap style="width:10px" align="right"><span style='color:green'>{$co.etime|date_format:"%H:%M"}</td>
</tr>
{elseif $co.status==3}
<tr>
<td nowrap style="width:170px" align="left"><span style='color:#8A0002'>{$co.name}</td>
<td nowrap style="width:120px" align="left"><span style='color:#8A0002'>{$co.grund}</td>
<td nowrap style="width:10px" align="right"><span style='color:#8A0002'>{$co.etime|date_format:"%H:%M"}</td>
</tr>
{else}
<tr>
<td nowrap style="width:170px" align="left"><span style='color:#dddddd'>{$co.name}</td>
<td nowrap style="width:120px" align="left"><span style='color:#FF8E00'>keine Tour</td>
<td nowrap style="width:10px" align="right"><span style='color:#FF8E00'>{$co.etime|date_format:"%H:%M"}</td>
</tr>
{/if}
{/foreach}
</table>
</div>