jb-data.de/compile/757c9b63d825e924e09f3e65057247b5a26bc3dd_0.file.w_tanken.tpl.php
2025-08-11 22:23:30 +02:00

337 lines
15 KiB
PHP

<?php
/* Smarty version 4.3.0, created on 2024-08-28 16:00:09
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/w_tanken.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.3.0',
'unifunc' => 'content_66cf2d69331309_99585967',
'has_nocache_code' => false,
'file_dependency' =>
array (
'757c9b63d825e924e09f3e65057247b5a26bc3dd' =>
array (
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/w_tanken.tpl',
1 => 1724853606,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_66cf2d69331309_99585967 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/var/www/vhosts/jb-data.de/httpdocs/lib/plugins/modifier.truncate.php','function'=>'smarty_modifier_truncate',),));
?>
<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>
<?php echo '<script'; ?>
>
$('.input-group.date').datepicker({format: "dd.mm.yyyy"});
<?php echo '</script'; ?>
>
<!-------------------------------------------------------------------------------------------------------------------->
<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'">
<?php if ($_smarty_tpl->tpl_vars['anz']->value == 1) {?> <td nowrap style="width:100%;color:#0093D7"> unbearbeitet</td>
<?php } else { ?> <td nowrap style="width:100%"> unbearbeitet</td> <?php }?>
</tr>
</table>
</div>
<div class="mre">
<table class="no-style full">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['re']->value, 'me');
$_smarty_tpl->tpl_vars['me']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['me']->value) {
$_smarty_tpl->tpl_vars['me']->do_else = false;
?>
<tr align="left" style="font-size: 12pt;" onclick="window.location='?s=w_tanken&renr=<?php echo $_smarty_tpl->tpl_vars['me']->value['RechNr'];?>
'">
<?php if ($_smarty_tpl->tpl_vars['anz']->value != $_smarty_tpl->tpl_vars['me']->value['RechNr']) {?> <td nowrap style="width:100%"> <?php echo $_smarty_tpl->tpl_vars['me']->value['RechNr'];?>
</td>
<?php } else { ?> <td nowrap style="width:100%;color:#0093D7"> <?php echo $_smarty_tpl->tpl_vars['me']->value['RechNr'];?>
</td> <?php }?>
<td nowrap align="right" style="font-size: 8pt"><?php echo $_smarty_tpl->tpl_vars['me']->value['Rechnungsdatum'];?>
&nbsp;&nbsp;&nbsp;</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</table>
</div>
</div>
<!------------------------------------------------------------------------------------------------------------------
1= A komplett
2= M komplett
3=
4=
5= A ohne Tank
6=
------------------------------------------------------------------------------------------------------------------->
<div class="col-md-8">
<!---------------->
<?php if ($_smarty_tpl->tpl_vars['load']->value == 1) {?>
<div class="load">
<span class="panel-title">Einladen erfolgreich.</span>
</div>
<?php }?>
<!------------ einzelaufruf Tankbeleg -->
<?php if ($_smarty_tpl->tpl_vars['anz']->value == 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=<?php echo $_smarty_tpl->tpl_vars['beleg']->value['id'];?>
'">
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['Karte'];?>
</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['Kfz'];?>
</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['Tankdatum'];?>
- <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['beleg']->value['Tankzeit'],5,'');?>
Uhr</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['KmStand'];?>
km</td>
<?php if ($_smarty_tpl->tpl_vars['beleg']->value['kontrolle'] == 5) {?>
<td nowrap style="color:red" align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['Menge'];?>
l.</td>
<?php } else { ?>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['Menge'];?>
l.</td>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['beleg']->value['Sorte'] == 59) {?> <td nowrap style="color:darkmagenta" align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['Sortenname'];?>
</td>
<?php } elseif ($_smarty_tpl->tpl_vars['beleg']->value['Sorte'] == 5) {?> <td nowrap style="color:magenta" align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['Sortenname'];?>
</td>
<?php } elseif ($_smarty_tpl->tpl_vars['beleg']->value['Sorte'] == 12) {?> <td nowrap style="color:cyan" align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['Sortenname'];?>
</td>
<?php } elseif ($_smarty_tpl->tpl_vars['beleg']->value['Sorte'] == 20) {?> <td nowrap style="color:orange" align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['Sortenname'];?>
</td>
<?php } else { ?> <td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['Sortenname'];?>
</td> <?php }?>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['beleg']->value['kontrolle'];?>
</td>
<td nowrap align="left">
<?php if ($_smarty_tpl->tpl_vars['beleg']->value['kontrolle'] == 0) {?> X <i class="far fa-question-square" style="color:orange"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['beleg']->value['kontrolle'] == 1) {?> A <i class="far fa-check-square" style="color:greenyellow"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['beleg']->value['kontrolle'] == 2) {?> X <i class="far fa-check-square" style="color:orange"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['beleg']->value['kontrolle'] == 3) {?> X <i class="far fa-gg-circle" style="color:red"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['beleg']->value['kontrolle'] == 4) {?> X <i class="far fa-question-square" style="color:red"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['beleg']->value['kontrolle'] == 5) {?> A <i class="far fa-question-square" style="color:orange"></i> <?php }?> <!-- km,kz passt -->
<?php if ($_smarty_tpl->tpl_vars['beleg']->value['kontrolle'] == 6) {?> X <i class="far fa-check-circle" style="color:green"></i> <?php }?>
</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=<?php echo $_smarty_tpl->tpl_vars['beleg']->value['id'];?>
name="ok_save" class="btn btn-success" formaction="#">bestätigen</button>
</div>
</form>
</div>
<!-------------->
<!-------------->
<?php } elseif ($_smarty_tpl->tpl_vars['anz']->value == 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>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['beleg']->value, 'offen');
$_smarty_tpl->tpl_vars['offen']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['offen']->value) {
$_smarty_tpl->tpl_vars['offen']->do_else = false;
?>
<tr align="left" style="font-size: 11pt" onclick="window.location='?s=w_tanken&ref=<?php echo $_smarty_tpl->tpl_vars['offen']->value['id'];?>
'">
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Karte'];?>
</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Kfz'];?>
</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Tankdatum'];?>
- <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['offen']->value['Tankzeit'],5,'');?>
Uhr</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['KmStand'];?>
km</td>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 5) {?>
<td nowrap style="color:red" align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Menge'];?>
l.</td>
<?php } else { ?>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Menge'];?>
l.</td>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['Sorte'] == 59) {?> <td nowrap style="color:darkmagenta" align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Sortenname'];?>
</td>
<?php } elseif ($_smarty_tpl->tpl_vars['offen']->value['Sorte'] == 5) {?> <td nowrap style="color:magenta" align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Sortenname'];?>
</td>
<?php } elseif ($_smarty_tpl->tpl_vars['offen']->value['Sorte'] == 12) {?> <td nowrap style="color:cyan" align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Sortenname'];?>
</td>
<?php } elseif ($_smarty_tpl->tpl_vars['offen']->value['Sorte'] == 20) {?> <td nowrap style="color:orange" align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Sortenname'];?>
</td>
<?php } else { ?> <td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Sortenname'];?>
</td> <?php }?>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['kontrolle'];?>
</td>
<td nowrap align="left">
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 0) {?> X <i class="far fa-question-square" style="color:orange"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 1) {?> A <i class="far fa-check-square" style="color:greenyellow"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 2) {?> X <i class="far fa-check-square" style="color:orange"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 3) {?> X <i class="far fa-gg-circle" style="color:red"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 4) {?> X <i class="far fa-question-square" style="color:red"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 5) {?> A <i class="far fa-question-square" style="color:orange"></i> <?php }?> <!-- km,kz passt -->
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 6) {?> X <i class="far fa-check-circle" style="color:green"></i> <?php }?>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</table>
<?php } 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>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['beleg']->value, 'offen');
$_smarty_tpl->tpl_vars['offen']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['offen']->value) {
$_smarty_tpl->tpl_vars['offen']->do_else = false;
?>
<tr align="left" style="font-size: 11pt" onclick="window.location='?s=w_tanken&renr=<?php echo $_smarty_tpl->tpl_vars['me']->value['RechNr'];?>
'">
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Karte'];?>
</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Kfz'];?>
</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Tankdatum'];?>
- <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['offen']->value['Tankzeit'],5,'');?>
Uhr</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['KmStand'];?>
km</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Menge'];?>
l.</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['Sortenname'];?>
</td>
<td nowrap align="left"> <?php echo $_smarty_tpl->tpl_vars['offen']->value['kontrolle'];?>
</td>
<td nowrap align="left" style="font-size: 12pt">
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 0) {?> X <i class="far fa-question-square" style="color:orange"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 1) {?> A <i class="far fa-check-square" style="color:greenyellow"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 2) {?> X <i class="far fa-check-square" style="color:orange"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 3) {?> X <i class="far fa-gg-circle" style="color:red"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 4) {?> X <i class="far fa-question-square" style="color:red"></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 5) {?> A <i class="far fa-question-square" style="color:orange"></i> <?php }?> <!-- km,kz passt -->
<?php if ($_smarty_tpl->tpl_vars['offen']->value['kontrolle'] == 6) {?> X <i class="far fa-check-circle" style="color:green"></i> <?php }?>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</table>
<?php }?>
</div>
<!-------------------------------------------------------------------------------------------------------------------->
<!-------------------------------------------------------------------------------------------------------------------->
</div>
<?php }
}