386 lines
16 KiB
PHP
386 lines
16 KiB
PHP
<?php
|
|
/* Smarty version 4.3.0, created on 2024-08-28 16:37:17
|
|
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/w_fahrzeuge.tpl' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '4.3.0',
|
|
'unifunc' => 'content_66cf361dbb0522_29119265',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'71a55c646bcec3e4ac1081bad21925dce5bae51a' =>
|
|
array (
|
|
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/w_fahrzeuge.tpl',
|
|
1 => 1724855836,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_66cf361dbb0522_29119265 (Smarty_Internal_Template $_smarty_tpl) {
|
|
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/var/www/vhosts/jb-data.de/httpdocs/lib/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
|
|
?>
|
|
|
|
<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>
|
|
<?php echo '<script'; ?>
|
|
>
|
|
$('.input-group.date').datepicker({format: "dd.mm.yyyy"});
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
<!-------------------------------------------------------------------------------------------------------------------->
|
|
<div class="col-md-2">
|
|
<table width="100%" style="color: #dddddd;background-color:#115270;font-size: 14pt;">
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['fahrzeuge_a']->value, 'fahrzeuge');
|
|
$_smarty_tpl->tpl_vars['fahrzeuge']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['fahrzeuge']->value) {
|
|
$_smarty_tpl->tpl_vars['fahrzeuge']->do_else = false;
|
|
?>
|
|
<tr>
|
|
<td style="padding: 5px">
|
|
<?php if ($_smarty_tpl->tpl_vars['fahrzeuge']->value['typ'] == 1) {?> <i class="far fa-car"></i>
|
|
<?php } elseif ($_smarty_tpl->tpl_vars['fahrzeuge']->value['typ'] == 2) {?> <i class="far fa-truck-pickup"></i>
|
|
<?php } elseif ($_smarty_tpl->tpl_vars['fahrzeuge']->value['typ'] == 3) {?> <i class="far fa-truck"></i>
|
|
<?php } elseif ($_smarty_tpl->tpl_vars['fahrzeuge']->value['typ'] == 4) {?> <i class="fad fa-truck"></i>
|
|
<?php } elseif ($_smarty_tpl->tpl_vars['fahrzeuge']->value['typ'] == 5) {?> <i class="fad fa-truck-moving"></i>
|
|
<?php } else { ?> <i class="fad fa-car-bus"></i> <?php }?>
|
|
</td>
|
|
<td onClick="javascript:open('?s=w_fahrzeuge&id=<?php echo $_smarty_tpl->tpl_vars['fahrzeuge']->value['id'];?>
|
|
','_self','')"><?php echo $_smarty_tpl->tpl_vars['fahrzeuge']->value['kz'];?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</table>
|
|
</div>
|
|
<!-------------------------------------------------------------------------------------------------------------------->
|
|
<?php if ($_smarty_tpl->tpl_vars['anz']->value == 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ählen, dass Sie bearbeiten möchten.</span>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php } else { ?>
|
|
<!------------->
|
|
<div class="col-md-6">
|
|
<!------------->
|
|
<div class="col-md-6">
|
|
<p class="ikopf1"><?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['kz'];?>
|
|
</p>
|
|
<p class="cinfo1">KBA: <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['kba2'];?>
|
|
/ <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['kba3'];?>
|
|
</br>FIN.: <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['fin'];?>
|
|
</p>
|
|
<p class="cinfo2">1. Zulassung: <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['ezltag'];?>
|
|
.<?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['ezlmonat'];?>
|
|
.<?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['ezljahr'];?>
|
|
|
|
</br>JB-Zulassung: <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['jbtag'];?>
|
|
.<?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['jbmonat'];?>
|
|
.<?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['jbjahr'];?>
|
|
|
|
</br>Hubraum.: <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['ccm'];?>
|
|
cm²
|
|
</br>KW / PS: <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['kw'];?>
|
|
/ <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['ps'];?>
|
|
|
|
</br><?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['reifen'];?>
|
|
|
|
</p>
|
|
</div>
|
|
<!------------->
|
|
<div class="col-md-6">
|
|
<p class="ikopf2"><?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['hersteller'];?>
|
|
<?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['name'];?>
|
|
</p>
|
|
<p class="cinfo1"><?php echo $_smarty_tpl->tpl_vars['kba']->value['hersteller'];?>
|
|
</br><?php echo $_smarty_tpl->tpl_vars['kba']->value['typ'];?>
|
|
</p>
|
|
<p class="cinfo2">1: <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['zfeld1'];?>
|
|
</br>2: <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['zfeld2'];?>
|
|
</br>3: <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['zfeld3'];?>
|
|
</br>4: <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['zfeld4'];?>
|
|
|
|
</br>Öl: <?php echo $_smarty_tpl->tpl_vars['oel']->value['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">
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['oels']->value, 'os');
|
|
$_smarty_tpl->tpl_vars['os']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['os']->value) {
|
|
$_smarty_tpl->tpl_vars['os']->do_else = false;
|
|
?>
|
|
<option value="<?php echo $_smarty_tpl->tpl_vars['os']->value['id'];?>
|
|
" style="color: darkgray"><?php echo $_smarty_tpl->tpl_vars['os']->value['bezeichnung'];?>
|
|
</option>
|
|
|
|
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</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='<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
' required style="width:30px"/></input>
|
|
<input type="text" name="tj" value='<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
' 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 <?php echo $_smarty_tpl->tpl_vars['fahrzeug']->value['kz'];?>
|
|
</p></br>
|
|
<table class="no-style" width="100%">
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['history']->value, 'h');
|
|
$_smarty_tpl->tpl_vars['h']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['h']->value) {
|
|
$_smarty_tpl->tpl_vars['h']->do_else = false;
|
|
?>
|
|
<tr nowrap>
|
|
<td style="background-color:#115270;color: #bbbbbb;font-size: 8pt"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['h']->value['date'],"%d.%m.%Y - %H:%M Uhr");?>
|
|
- <?php echo $_smarty_tpl->tpl_vars['h']->value['name'];?>
|
|
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['re_check'] == 1 || $_smarty_tpl->tpl_vars['h']->value['re_check'] == 3) {?> <i class="far fa-check" style="color:greenyellow"></i></td><?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['re_check'] == 2) {?> <i class="far fa-check" style="color:orange"></i></td><?php }?>
|
|
|
|
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['anz'] == 1) {?> <i class="fal fa-times" style="color: #ff0000;" onclick="window.location='?s=w_fahrzeuge&delete=<?php echo $_smarty_tpl->tpl_vars['h']->value['id'];?>
|
|
&id=<?php echo $_smarty_tpl->tpl_vars['h']->value['fid'];?>
|
|
'"></i> <?php }?></td>
|
|
</tr>
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['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> <?php echo $_smarty_tpl->tpl_vars['h']->value['kmst'];?>
|
|
km</td>
|
|
</tr>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['utyp'] == 2) {?> <!-- Kontrolle -->
|
|
<tr nowrap>
|
|
<td width="100%" align="right" style="color: #bbbbbb;font-size: 10pt">Kontrolle:
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['k_bremse'] == 1) {?> Bremsen, <?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['k_oel'] == 1) {?> Öl, <?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['k_reifen'] == 1) {?> Reifen, <?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['k_ww'] == 1) {?> Wischw. <?php }?>
|
|
km-Stand: <?php echo $_smarty_tpl->tpl_vars['h']->value['kmst'];?>
|
|
</td>
|
|
</tr>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['utyp'] == 3 || $_smarty_tpl->tpl_vars['h']->value['utyp'] == 5 || $_smarty_tpl->tpl_vars['h']->value['utyp'] == 59) {?> <!-- tanken -->
|
|
<tr nowrap>
|
|
<td width="100%" align="right" style="color: #bbbbbb;font-size: 10pt" >
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['tanz'] == 1) {?> <span style="color: greenyellow"> <?php echo $_smarty_tpl->tpl_vars['h']->value['dvb'];?>
|
|
</span>
|
|
<?php } elseif ($_smarty_tpl->tpl_vars['h']->value['tanz'] == 2) {?> <span style="color: orange"> <?php echo $_smarty_tpl->tpl_vars['h']->value['dvb'];?>
|
|
</span>
|
|
<?php } elseif ($_smarty_tpl->tpl_vars['h']->value['tanz'] == 3) {?> <span style="color: darkred"> <?php echo $_smarty_tpl->tpl_vars['h']->value['dvb'];?>
|
|
</span>
|
|
<?php } elseif ($_smarty_tpl->tpl_vars['h']->value['tanz'] == 4) {?> <span style="color: red"> <?php echo $_smarty_tpl->tpl_vars['h']->value['dvb'];?>
|
|
</span>
|
|
<?php } else { ?><span> <?php echo $_smarty_tpl->tpl_vars['h']->value['dvb'];?>
|
|
</span><?php }?>
|
|
<?php echo $_smarty_tpl->tpl_vars['h']->value['tsumme'];?>
|
|
€
|
|
<i class="fad fa-gas-pump"></i> <?php echo $_smarty_tpl->tpl_vars['h']->value['tank'];?>
|
|
ltr.
|
|
<i class="fas fa-tachometer-alt-slow"></i> <?php echo $_smarty_tpl->tpl_vars['h']->value['kmst'];?>
|
|
km</td>
|
|
</tr>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['utyp'] == 4) {?> <!-- Oelwechsel -->
|
|
<tr nowrap>
|
|
<td width="100%" align="right" style="color: #bbbbbb;font-size: 10pt">Ölwechsel / km-Stand: <?php echo $_smarty_tpl->tpl_vars['h']->value['kmst'];?>
|
|
</td>
|
|
</tr>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['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>
|
|
<?php echo $_smarty_tpl->tpl_vars['h']->value['tsumme'];?>
|
|
€
|
|
<i class="fad fa-gas-pump"></i> <?php echo $_smarty_tpl->tpl_vars['h']->value['tank'];?>
|
|
ltr.
|
|
<i class="fas fa-tachometer-alt-slow"></i> <?php echo $_smarty_tpl->tpl_vars['h']->value['kmst'];?>
|
|
km</td>
|
|
</tr>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['h']->value['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><?php echo $_smarty_tpl->tpl_vars['h']->value['kmst'];?>
|
|
km </td>
|
|
</tr>
|
|
<?php }?>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</table>
|
|
</div>
|
|
</aside>
|
|
|
|
|
|
|
|
<?php }?>
|
|
|
|
|
|
<?php }
|
|
}
|