245 lines
9.4 KiB
Smarty
245 lines
9.4 KiB
Smarty
{literal}
|
|
<style>
|
|
.mre {
|
|
background: #222;
|
|
color:#ccc;
|
|
padding: 6px;
|
|
border: 1px solid;
|
|
border-color: #0093D7;
|
|
border-radius: 5px;
|
|
margin-bottom: 8px;
|
|
font-size: 12pt;
|
|
}
|
|
.load {
|
|
background: #222;
|
|
color:#61FF00;
|
|
padding: 6px;
|
|
border: 1px solid;
|
|
border-color: #61FF00;
|
|
border-radius: 5px;
|
|
margin-bottom: 8px;
|
|
font-size: 16pt;
|
|
}
|
|
.cinfo2 {
|
|
background: #666666;
|
|
color:#bbbbbb;
|
|
height: 140px;
|
|
padding: 6px;
|
|
border: 1px solid;
|
|
border-color: #115270;
|
|
border-radius: 5px;
|
|
margin-bottom:50px;
|
|
font-size: 13pt;
|
|
}
|
|
.ikopf1 {
|
|
background: #115270;
|
|
color:#bbbbbb;
|
|
height: 40px;
|
|
padding: 6px;
|
|
border-radius: 5px;
|
|
margin-bottom: 0px;
|
|
margin-top: 0px;
|
|
font-size: 16pt;
|
|
}
|
|
.ikopf2 {
|
|
background: #115270;
|
|
color:#bbbbbb;
|
|
height: 40px;
|
|
padding: 6px;
|
|
border-radius: 5px;
|
|
margin-bottom: 0px;
|
|
margin-top: 0px;
|
|
font-size: 13pt;
|
|
}
|
|
</style>
|
|
<script>
|
|
$('.input-group.date').datepicker({format: "dd.mm.yyyy"});
|
|
</script>
|
|
{/literal}
|
|
<!-------------------------------------------------------------------------------------------------------------------->
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-2">
|
|
<div class="mre">
|
|
<table class="no-style full">
|
|
<tr align="left" style="font-size: 12pt" onclick="window.location='?s=w_tanken'">
|
|
{if $anz==1} <td nowrap style="width:100%;color:#0093D7"> unbearbeitet</td>
|
|
{else} <td nowrap style="width:100%"> unbearbeitet</td> {/if}
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="mre">
|
|
<table class="no-style full">
|
|
{foreach from=$re item=me}
|
|
<tr align="left" style="font-size: 12pt;" onclick="window.location='?s=w_tanken&renr={$me.RechNr}'">
|
|
{if $anz!=$me.RechNr} <td nowrap style="width:100%"> {$me.RechNr}</td>
|
|
{else} <td nowrap style="width:100%;color:#0093D7"> {$me.RechNr}</td> {/if}
|
|
<td nowrap align="right" style="font-size: 8pt">{$me.Rechnungsdatum} </td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!------------------------------------------------------------------------------------------------------------------
|
|
|
|
1= A komplett
|
|
2= M komplett
|
|
3=
|
|
4=
|
|
5= A ohne Tank
|
|
6=
|
|
|
|
------------------------------------------------------------------------------------------------------------------->
|
|
<div class="col-md-8">
|
|
<!---------------->
|
|
{if $load==1}
|
|
<div class="load">
|
|
<span class="panel-title">Einladen erfolgreich.</span>
|
|
</div>
|
|
{/if}
|
|
<!------------ einzelaufruf Tankbeleg -->
|
|
{if $anz==99}
|
|
<div class="mre">
|
|
<table class="table table-condensed">
|
|
<tr style="font-size: 9pt">
|
|
<th>KartenNr.</th>
|
|
<th>Kennz.</th>
|
|
<th>Datum / eit</th>
|
|
<th>km-Stand</th>
|
|
<th>Liter</th>
|
|
<th>Sorte</th>
|
|
<th>Check ID</th>
|
|
<th>x</th>
|
|
</tr>
|
|
<tr align="left" style="font-size: 11pt" onclick="window.location='?s=w_tanken&ref={$beleg.id}'">
|
|
<td nowrap align="left"> {$beleg.Karte}</td>
|
|
<td nowrap align="left"> {$beleg.Kfz}</td>
|
|
<td nowrap align="left"> {$beleg.Tankdatum} - {$beleg.Tankzeit|truncate:5:""} Uhr</td>
|
|
<td nowrap align="left"> {$beleg.KmStand} km</td>
|
|
{if $beleg.kontrolle==5}
|
|
<td nowrap style="color:red" align="left"> {$beleg.Menge} l.</td>
|
|
{else}
|
|
<td nowrap align="left"> {$beleg.Menge} l.</td>
|
|
{/if}
|
|
{if $beleg.Sorte==59} <td nowrap style="color:darkmagenta" align="left"> {$beleg.Sortenname}</td>
|
|
{elseif $beleg.Sorte==5} <td nowrap style="color:magenta" align="left"> {$beleg.Sortenname}</td>
|
|
{elseif $beleg.Sorte==12} <td nowrap style="color:cyan" align="left"> {$beleg.Sortenname}</td>
|
|
{elseif $beleg.Sorte==20} <td nowrap style="color:orange" align="left"> {$beleg.Sortenname}</td>
|
|
{else} <td nowrap align="left"> {$beleg.Sortenname}</td> {/if}
|
|
<td nowrap align="left"> {$beleg.kontrolle}</td>
|
|
<td nowrap align="left">
|
|
{if $beleg.kontrolle==0} X <i class="far fa-question-square" style="color:orange"></i> {/if}
|
|
{if $beleg.kontrolle==1} A <i class="far fa-check-square" style="color:greenyellow"></i> {/if}
|
|
{if $beleg.kontrolle==2} X <i class="far fa-check-square" style="color:orange"></i> {/if}
|
|
{if $beleg.kontrolle==3} X <i class="far fa-gg-circle" style="color:red"></i> {/if}
|
|
{if $beleg.kontrolle==4} X <i class="far fa-question-square" style="color:red"></i> {/if}
|
|
{if $beleg.kontrolle==5} A <i class="far fa-question-square" style="color:orange"></i> {/if} <!-- km,kz passt -->
|
|
{if $beleg.kontrolle==6} X <i class="far fa-check-circle" style="color:green"></i> {/if}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<form action="" method="post" id="tsave">
|
|
<div class="btn-group" role="group" aria-label="...">
|
|
<button type="submit" class="btn btn-warning">bearbeiten</button>
|
|
<button type="submit" value={$beleg.id} name="ok_save" class="btn btn-success" formaction="#">bestätigen</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<!-------------->
|
|
<!-------------->
|
|
{elseif $anz==1}
|
|
<div class="mre">
|
|
<table class="table table-condensed">
|
|
<tr style="font-size: 9pt">
|
|
<th>KartenNr.</th>
|
|
<th>Kennz.</th>
|
|
<th>Datum / eit</th>
|
|
<th>km-Stand</th>
|
|
<th>Liter</th>
|
|
<th>Sorte</th>
|
|
<th>Check ID</th>
|
|
<th>x</th>
|
|
</tr>
|
|
|
|
|
|
{foreach from=$beleg item=offen}
|
|
<tr align="left" style="font-size: 11pt" onclick="window.location='?s=w_tanken&ref={$offen.id}'">
|
|
<td nowrap align="left"> {$offen.Karte}</td>
|
|
<td nowrap align="left"> {$offen.Kfz}</td>
|
|
<td nowrap align="left"> {$offen.Tankdatum} - {$offen.Tankzeit|truncate:5:""} Uhr</td>
|
|
<td nowrap align="left"> {$offen.KmStand} km</td>
|
|
{if $offen.kontrolle==5}
|
|
<td nowrap style="color:red" align="left"> {$offen.Menge} l.</td>
|
|
{else}
|
|
<td nowrap align="left"> {$offen.Menge} l.</td>
|
|
{/if}
|
|
{if $offen.Sorte==59} <td nowrap style="color:darkmagenta" align="left"> {$offen.Sortenname}</td>
|
|
{elseif $offen.Sorte==5} <td nowrap style="color:magenta" align="left"> {$offen.Sortenname}</td>
|
|
{elseif $offen.Sorte==12} <td nowrap style="color:cyan" align="left"> {$offen.Sortenname}</td>
|
|
{elseif $offen.Sorte==20} <td nowrap style="color:orange" align="left"> {$offen.Sortenname}</td>
|
|
{else} <td nowrap align="left"> {$offen.Sortenname}</td> {/if}
|
|
<td nowrap align="left"> {$offen.kontrolle}</td>
|
|
<td nowrap align="left">
|
|
{if $offen.kontrolle==0} X <i class="far fa-question-square" style="color:orange"></i> {/if}
|
|
{if $offen.kontrolle==1} A <i class="far fa-check-square" style="color:greenyellow"></i> {/if}
|
|
{if $offen.kontrolle==2} X <i class="far fa-check-square" style="color:orange"></i> {/if}
|
|
{if $offen.kontrolle==3} X <i class="far fa-gg-circle" style="color:red"></i> {/if}
|
|
{if $offen.kontrolle==4} X <i class="far fa-question-square" style="color:red"></i> {/if}
|
|
{if $offen.kontrolle==5} A <i class="far fa-question-square" style="color:orange"></i> {/if} <!-- km,kz passt -->
|
|
{if $offen.kontrolle==6} X <i class="far fa-check-circle" style="color:green"></i> {/if}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
|
|
|
|
{else}
|
|
<div class="mre">
|
|
<table class="table table-condensed">
|
|
<tr style="font-size: 9pt">
|
|
<th>KartenNr.</th>
|
|
<th>Kennz.</th>
|
|
<th>Datum/Zeit</th>
|
|
<th>km-Stand</th>
|
|
<th>Liter</th>
|
|
<th>Sorte</th>
|
|
<th>Check ID</th>
|
|
<th>x</th>
|
|
</tr>
|
|
|
|
|
|
{foreach from=$beleg item=offen}
|
|
<tr align="left" style="font-size: 11pt" onclick="window.location='?s=w_tanken&renr={$me.RechNr}'">
|
|
<td nowrap align="left"> {$offen.Karte}</td>
|
|
<td nowrap align="left"> {$offen.Kfz}</td>
|
|
<td nowrap align="left"> {$offen.Tankdatum} - {$offen.Tankzeit|truncate:5:""} Uhr</td>
|
|
<td nowrap align="left"> {$offen.KmStand} km</td>
|
|
<td nowrap align="left"> {$offen.Menge} l.</td>
|
|
<td nowrap align="left"> {$offen.Sortenname}</td>
|
|
<td nowrap align="left"> {$offen.kontrolle}</td>
|
|
<td nowrap align="left" style="font-size: 12pt">
|
|
{if $offen.kontrolle==0} X <i class="far fa-question-square" style="color:orange"></i> {/if}
|
|
{if $offen.kontrolle==1} A <i class="far fa-check-square" style="color:greenyellow"></i> {/if}
|
|
{if $offen.kontrolle==2} X <i class="far fa-check-square" style="color:orange"></i> {/if}
|
|
{if $offen.kontrolle==3} X <i class="far fa-gg-circle" style="color:red"></i> {/if}
|
|
{if $offen.kontrolle==4} X <i class="far fa-question-square" style="color:red"></i> {/if}
|
|
{if $offen.kontrolle==5} A <i class="far fa-question-square" style="color:orange"></i> {/if} <!-- km,kz passt -->
|
|
{if $offen.kontrolle==6} X <i class="far fa-check-circle" style="color:green"></i> {/if}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
{/if}
|
|
</div>
|
|
<!-------------------------------------------------------------------------------------------------------------------->
|
|
|
|
<!-------------------------------------------------------------------------------------------------------------------->
|
|
|
|
|
|
|
|
</div>
|