168 lines
6.2 KiB
PHP
168 lines
6.2 KiB
PHP
<?php
|
|
/* Smarty version 4.3.0, created on 2024-05-23 08:21:45
|
|
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/a_fahrz.tpl' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '4.3.0',
|
|
'unifunc' => 'content_664ee079c9ea75_89544964',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'496759feafc6feeaa7555bb0d048c51aecdbd825' =>
|
|
array (
|
|
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/a_fahrz.tpl',
|
|
1 => 1710850893,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_664ee079c9ea75_89544964 (Smarty_Internal_Template $_smarty_tpl) {
|
|
?><div class="container-fluid">
|
|
<div class="row">
|
|
<!-- Main Section -- mittlere Spalte -->
|
|
<div class="col-md-3">
|
|
<div class="panel">
|
|
<div class="panel-heading" style="background-color:#115270;height:45px;color: white">
|
|
<spawn style="width:5px;height:2px;font-size:14pt;">Fahrzeugübersicht
|
|
<i style="color: red" target="_pdf" onClick="javascript:open('', '_pdf', 'height=800,width=600,resizable=yes')"
|
|
href="?s=a_ma_pdf&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
&ma=<?php echo $_smarty_tpl->tpl_vars['ma_id']->value;?>
|
|
" aria-label="Settings" class="fa fa-file-pdf-o fa-pull-right fa-fw">
|
|
</i>
|
|
</spawn>
|
|
</div>
|
|
<div class="panel-body" style="background-color:#ffffff">
|
|
<table class="table-hover" style="font-size:11pt">
|
|
<tbody>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['mitarbeiterlist']->value, 'malist');
|
|
$_smarty_tpl->tpl_vars['malist']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['malist']->value) {
|
|
$_smarty_tpl->tpl_vars['malist']->do_else = false;
|
|
?>
|
|
<tr>
|
|
<td nowrap style="width:100px;line-height:120%;font-size:12pt;color:#115270"
|
|
onclick="window.location='?s=a_fahrz&id=<?php echo $_smarty_tpl->tpl_vars['malist']->value['id'];?>
|
|
&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
'">
|
|
<span style='font-size:12pt;color:#115270'><?php echo $_smarty_tpl->tpl_vars['malist']->value['kz'];?>
|
|
</span>
|
|
</td>
|
|
<td nowrap style="width:100px;line-height:120%;font-size:12pt;color:gray"
|
|
onclick="window.location='?s=a_fahrz&id=<?php echo $_smarty_tpl->tpl_vars['malist']->value['id'];?>
|
|
&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
'">
|
|
<span style='font-size:8pt; color:#115270'><?php echo $_smarty_tpl->tpl_vars['malist']->value['name'];?>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<?php if ($_smarty_tpl->tpl_vars['ma_id']->value == 0) {?>
|
|
<!-- else - kein MA ausgewählt -->
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading" style="background-color:#115270;height:45px;color: white">
|
|
<spawn style="width:5px;height:2px;font-size:14pt;">Fahrzeuge</span></div>
|
|
<div class="panel-body">
|
|
<table class="no-style full">
|
|
<thead>
|
|
<tr>
|
|
<td><span style='font-size:30pt;line-height:100%; color:orange'>Fahrzeug auswählen</span></a></td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<?php } else { ?>
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading" style="background-color:#115270;height:45px;color: white">
|
|
<spawn style="width:5px;height:2px;font-size:12pt;"><?php echo $_smarty_tpl->tpl_vars['ma_kz']->value;?>
|
|
* <?php echo $_smarty_tpl->tpl_vars['ma_name']->value;?>
|
|
* (ID:<?php echo $_smarty_tpl->tpl_vars['ma_id']->value;?>
|
|
) * Zeitraum <?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
/<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
</span></div>
|
|
<div class="panel-body">
|
|
<table class="table table-striped">
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['senddata']->value, 'tdata');
|
|
$_smarty_tpl->tpl_vars['tdata']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['tdata']->value) {
|
|
$_smarty_tpl->tpl_vars['tdata']->do_else = false;
|
|
?>
|
|
<tr style='font-size:11pt;color:#115270'>
|
|
<td align="left" style='width:30px '><?php echo $_smarty_tpl->tpl_vars['tdata']->value['datum'];?>
|
|
</td>
|
|
<td align="left" style='width:120px'><?php echo $_smarty_tpl->tpl_vars['tdata']->value['typ'];?>
|
|
</td>
|
|
<td align="left" style='width:100px'><?php echo $_smarty_tpl->tpl_vars['tdata']->value['tname'];?>
|
|
</td>
|
|
<td align="left" style='width:170px'><?php echo $_smarty_tpl->tpl_vars['tdata']->value['fahrer'];?>
|
|
</td>
|
|
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<?php }?>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<aside class="col-md-3">
|
|
<div id="rightmenu" class="panel panel-default">
|
|
<div class="panel-heading" style="background-color:#115270;height:45px;color: white">
|
|
<table class="no-style full">
|
|
<tbody>
|
|
<td style="font-size:18px; color: white; text-align: center">
|
|
|
|
<i class="fad fa-arrow-left" onclick="javascript:location.href='?s=a_fahrz&wahl=1&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
&id=<?php echo $_smarty_tpl->tpl_vars['ma_id']->value;?>
|
|
'"></i>
|
|
<span> <?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
/ <?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
</span>
|
|
<i class="fad fa-arrow-right" onclick="javascript:location.href='?s=a_fahrz&wahl=2&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
&id=<?php echo $_smarty_tpl->tpl_vars['ma_id']->value;?>
|
|
'"></i>
|
|
</td>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php }
|
|
}
|