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

287 lines
11 KiB
Smarty

{literal}
<style>
.cinfo1 {
background: #666666;
color:#bbbbbb;
height: 65px;
padding: 6px;
border: 1px solid;
border-color: #115270;
border-radius: 5px;
margin-bottom: 8px;
font-size: 13pt;
}
.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="col-md-2">
<table width="100%" style="color: #dddddd;background-color:#115270;font-size: 14pt;">
{foreach from=$fahrzeuge_a item=fahrzeuge}
<tr>
<td style="padding: 5px">
{if $fahrzeuge.typ==1} <i class="far fa-car"></i>
{elseif $fahrzeuge.typ==2} <i class="far fa-truck-pickup"></i>
{elseif $fahrzeuge.typ==3} <i class="far fa-truck"></i>
{elseif $fahrzeuge.typ==4} <i class="fad fa-truck"></i>
{elseif $fahrzeuge.typ==5} <i class="fad fa-truck-moving"></i>
{else} <i class="fad fa-car-bus"></i> {/if}
</td>
<td onClick="javascript:open('?s=w_fahrzeuge&id={$fahrzeuge.id}','_self','')">{$fahrzeuge.kz}</td>
</tr>
{/foreach}
</table>
</div>
<!-------------------------------------------------------------------------------------------------------------------->
{if $anz==9}
<div class="col-md-6">
<div class="column grid_6 last">
<div class="widget">
<header class="current"><h2>Info </h2></header>
<section>
<span style='font-size:20pt;line-height:115%; color:#4F81BD'>Bitte das Fahrzeug auw&auml;hlen, dass Sie bearbeiten m&ouml;chten.</span>
</section>
</div>
</div>
</div>
{else}
<!------------->
<div class="col-md-6">
<!------------->
<div class="col-md-6">
<p class="ikopf1">{$fahrzeug.kz}</p>
<p class="cinfo1">KBA: {$fahrzeug.kba2} / {$fahrzeug.kba3}</br>FIN.: {$fahrzeug.fin}</p>
<p class="cinfo2">1. Zulassung: {$fahrzeug.ezltag}.{$fahrzeug.ezlmonat}.{$fahrzeug.ezljahr}
</br>JB-Zulassung: {$fahrzeug.jbtag}.{$fahrzeug.jbmonat}.{$fahrzeug.jbjahr}
</br>Hubraum.: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$fahrzeug.ccm} cm²
</br>KW / PS:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$fahrzeug.kw} / {$fahrzeug.ps}
</br>{$fahrzeug.reifen}
</p>
</div>
<!------------->
<div class="col-md-6">
<p class="ikopf2">{$fahrzeug.hersteller} {$fahrzeug.name}</p>
<p class="cinfo1">{$kba.hersteller}</br>{$kba.typ}</p>
<p class="cinfo2">1: {$fahrzeug.zfeld1}</br>2: {$fahrzeug.zfeld2}</br>3: {$fahrzeug.zfeld3}</br>4: {$fahrzeug.zfeld4}
</br>Öl: {$oel.bezeichnung}
</p>
</div>
<!---------------------------------------------------------------------------------------------->
<!----------------- km update -->
<table class="no-style" width="100%">
<tr nowrap>
<form action="" method="post">
<td width="35%" style="background-color:#115270;color: #bbbbbb;font-size: 12pt">KM-Stand aktulisieren</td>
<td width=" 2%"></td>
<td width="24%"></td>
<td width="24%"><input type="text" name="updatekm" placeholder='0' required style="width:80px"/> km</td>
<td width="15%"><input type="submit" name="update1" value="Speichern" ></td>
</form>
</tr>
</table>
<hr style="background-color:#115270;height:3px;border:0" width="100%">
<!----------------- TANKEN -->
<table class="no-style" width="100%">
<tr nowrap>
<form action="" method="post">
<td width="35%" style="background-color:#115270;color: #bbbbbb;font-size: 12pt">Tanken eingeben</td>
<td width=" 2%"></td>
<td width="20%"><input type="text" name="tank" placeholder='0' required style="width:60px"/> ltr.</td>
<td width="20%"><input type="text" name="updatesum" placeholder='0' required style="width:60px"/> €</td>
<td width="20%"><input type="text" name="updatekm" placeholder='0' required style="width:60px"/> km</td>
<td width="13%"><input type="submit" name="tanken" value="Speichern" ></td>
</form>
</tr>
</table>
<hr style="background-color:#115270;height:3px;border:0" width="100%">
<!----------------- Kontrolle -->
<table class="no-style" width="100%">
<form action="" method="post">
<tr nowrap>
<td width="35%" style="background-color:#115270;color: #bbbbbb;font-size: 12pt">Kontrolle</td>
<td width=" 2%"></td>
<td width="24%"></td>
<td width="24%" style="font-size: 12pt">Bremsen</td>
<td width="15%"><input type="checkbox" name="bremse"></td>
<tr nowrap>
<td width="35%"></td>
<td width=" 2%"></td>
<td width="24%"></td>
<td width="24%" style="font-size: 12pt">Ölstand</td>
<td width="15%"><input type="checkbox" name="oel"</td>
<tr nowrap>
<td width="35%"></td>
<td width=" 2%"></td>
<td width="24%"></td>
<td width="24%" style="font-size: 12pt">Reifen</td>
<td width="15%"><input type="checkbox" name="reifen"</td>
<tr nowrap>
<td width="35%"></td>
<td width=" 2%"></td>
<td width="24%"></td>
<td width="24%" style="font-size: 12pt">Wischwasser</td>
<td width="15%"><input type="checkbox" name="ww"</td>
<tr nowrap>
<td width="35%"></td>
<td width=" 2%"></td>
<td width="24%" style="font-size: 12pt"></td>
<td width="24%"><input type="text" name="updatekm" placeholder='0' required style="width:80px"/> km</td>
<td width="15%"><input type="submit" name="kontrolle" value="Speichern" ></td>
</tr>
</form>
</table>
<hr style="background-color:#115270;height:3px;border:0" width="100%" >
<!-- --------------- OELW -->
<table class="no-style" width="100%">
<tr nowrap>
<form action="" method="post">
<td width="35%" style="background-color:#115270;color: #bbbbbb;font-size: 12pt">Ölwechsel eingeben</td>
<td width=" 2%"></td>
<td width="24%"><select name="os">
{foreach from=$oels item=os}
<option value="{$os.id}" style="color: darkgray">{$os.bezeichnung}</option>
{/foreach}
</select>
</td>
<td width="24%"><input type="text" name="updatekm" placeholder='0' required style="width:80px"/> km</td>
<td width="15%"><input type="submit" name="ow" value="Speichern" ></td>
</form>
</tr>
</table>
<hr style="background-color:#115270;height:3px;border:0" width="100%">
<!-- --------------- alte Tankrechnung -->
<table class="no-style" width="100%">
<tr nowrap>
<td width="35%" style="background-color:#115270;color: #bbbbbb;font-size: 12pt">alte Tankrechnung</td>
</tr><tr>
<form action="" method="post">
<td width="35%">
<input type="text" name="td" placeholder='0' required style="width:30px"/></input>
<input type="text" name="tm" value='{$monat}' required style="width:30px"/></input>
<input type="text" name="tj" value='{$jahr}' required style="width:60px"/></input>
</td>
<td width=" 2%"></td>
<td width="20%"><input type="text" name="tank" placeholder='0' required style="width:60px"/> ltr.</td>
<td width="20%"><input type="text" name="updatesum" placeholder='0' required style="width:60px"/> €</td>
<td width="20%"><input type="text" name="updatekm" placeholder='0' required style="width:60px"/> km</td>
<td width="13%"><input type="submit" name="at" value="Speichern" ></td>
</form>
</tr>
</table>
<hr style="background-color:#115270;height:3px;border:0" width="100%">
</div>
<aside class="col-md-4">
<div id="rightmenu">
<p class="ikopf1">History {$fahrzeug.kz}</p></br>
<table class="no-style" width="100%">
{foreach from=$history item=h}
<tr nowrap>
<td style="background-color:#115270;color: #bbbbbb;font-size: 8pt">{$h.date|date_format:"%d.%m.%Y - %H:%M Uhr"} - {$h.name}
{if $h.re_check==1 OR $h.re_check==3} &nbsp;<i class="far fa-check" style="color:greenyellow"></i></td>{/if}
{if $h.re_check==2} &nbsp;<i class="far fa-check" style="color:orange"></i></td>{/if}
{if $h.anz==1} <i class="fal fa-times" style="color: #ff0000;" onclick="window.location='?s=w_fahrzeuge&delete={$h.id}&id={$h.fid}'"></i> {/if}</td>
</tr>
{if $h.utyp==1} <!-- km-Stand update -->
<tr nowrap>
<td width="100%" align="right" style="color: #bbbbbb;font-size: 10pt">
<i class="fad fa-pencil-alt"></i> <i class="fas fa-tachometer-alt-slow"></i> {$h.kmst} km</td>
</tr>
{/if}
{if $h.utyp==2} <!-- Kontrolle -->
<tr nowrap>
<td width="100%" align="right" style="color: #bbbbbb;font-size: 10pt">Kontrolle:
{if $h.k_bremse==1} Bremsen, {/if}
{if $h.k_oel==1} Öl, {/if}
{if $h.k_reifen==1} Reifen, {/if}
{if $h.k_ww==1} Wischw. &nbsp;&nbsp;{/if}
km-Stand: {$h.kmst}</td>
</tr>
{/if}
{if $h.utyp==3 OR $h.utyp==5 OR $h.utyp==59} <!-- tanken -->
<tr nowrap>
<td width="100%" align="right" style="color: #bbbbbb;font-size: 10pt" >
{if $h.tanz==1} <span style="color: greenyellow"> {$h.dvb} </span>
{elseif $h.tanz==2} <span style="color: orange"> {$h.dvb} </span>
{elseif $h.tanz==3} <span style="color: darkred"> {$h.dvb} </span>
{elseif $h.tanz==4} <span style="color: red"> {$h.dvb} </span>
{else}<span> {$h.dvb} </span>{/if}
{$h.tsumme}
<i class="fad fa-gas-pump"></i> {$h.tank} ltr.
<i class="fas fa-tachometer-alt-slow"></i> {$h.kmst} km</td>
</tr>
{/if}
{if $h.utyp==4} <!-- Oelwechsel -->
<tr nowrap>
<td width="100%" align="right" style="color: #bbbbbb;font-size: 10pt">Ölwechsel / km-Stand: {$h.kmst}</td>
</tr>
{/if}
{if $h.utyp==12} <!-- AD Blue tanken -->
<tr nowrap>
<td width="100%" align="right" style="color: #bbbbbb;font-size: 10pt" >
<i style="color: cornflowerblue" class="fad fa-gas-pump"></i><span style="color: cornflowerblue"> AdBlue </span>
{$h.tsumme}
<i class="fad fa-gas-pump"></i> {$h.tank} ltr.
<i class="fas fa-tachometer-alt-slow"></i> {$h.kmst} km</td>
</tr>
{/if}
{if $h.utyp==20} <!-- Fahrzeugwäsche -->
<tr nowrap>
<td width="100%" align="right" style="color: #bbbbbb;font-size: 10pt">
<i style="color: orange" class="fad fa-car-wash"></i><span style="color: cornflowerblue"> Fahrzeugwäsche </span>{$h.kmst} km </td>
</tr>
{/if}
{/foreach}
</table>
</div>
</aside>
{/if}