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

66 lines
No EOL
1.7 KiB
Smarty

<div class="col-md-8">
<table class="table table-striped">
<thead>
<tr style="background-color: cornflowerblue;color: antiquewhite">
<th>Tankstelle</th>
<th> </th>
<th>offen / zu</th>
<th>Super E10</th>
<th>Super E5</th>
<th>Diesel</th>
</tr>
</thead>
<tbody>
{foreach from=$tankdata item=tdata}
<tr>
<td>{$tdata.kname}</td>
<td style="font-size: 10px">{$tdata.name}</br>{$tdata.street} {$tdata.hnr}, 0{$tdata.plz} {$tdata.ort}</td>
{if $tdata.open==0} <td style="color: red">geschlossen</td>
<td>-,--<sup>-</sup></td>
<td>-,--<sup>-</sup></td>
<td>-,--<sup>-</sup></td>
{else}
<td style="color: green">geöffnet</td>
<td>{$tdata.e10}<sup>{$tdata.e10x}</sup></td>
<td>{$tdata.e5}<sup>{$tdata.e5x}</sup></td>
<td>{$tdata.diesel}<sup>{$tdata.dieselx}</sup></td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
</div>
<aside class="col-md-4">
<table class="table table-striped">
<thead>
<tr style="background-color: cornflowerblue;color: antiquewhite">
<th>Favoriten Tankstelle</th>
<th>Diesel</th>
</tr>
</thead>
<tbody>
{foreach from=$tankdata2 item=tdata}
<tr style="font-size: 14px">
<td>{$tdata.kname}</br>
<span style="font-size: 10px">{$tdata.name}</br>{$tdata.street} {$tdata.hnr}, 0{$tdata.plz} {$tdata.ort}</span></td>
{if $tdata.open==0}
<td style="font-size: 28px">-,--<sup>-</sup></td>
{else}
<td style="font-size: 28px">{$tdata.diesel}<sup>{$tdata.dieselx}</sup></td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
</aside>