| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/sc/ |
Upload File : |
<?php
/* Smarty version 3.1.30, created on 2026-06-27 05:56:50
from "/var/www/clients/client1/web17/web/includes/templates/templates/imports/_daygroups.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_6a3f4a02ce03e3_16365331',
'has_nocache_code' => false,
'file_dependency' =>
array (
'cb4ecfe9d9505c1eebd7b6c0db7eb757264cdf99' =>
array (
0 => '/var/www/clients/client1/web17/web/includes/templates/templates/imports/_daygroups.tpl',
1 => 1780666636,
2 => 'file',
),
),
'includes' =>
array (
'file:imports/_filelist.tpl' => 3,
),
),false)) {
function content_6a3f4a02ce03e3_16365331 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once '/var/www/clients/client1/web17/web/includes/plugins/smarty-3.1.30/plugins/modifier.date_format.php';
if (!is_callable('smarty_modifier_regex_replace')) require_once '/var/www/clients/client1/web17/web/includes/plugins/smarty-3.1.30/plugins/modifier.regex_replace.php';
?>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['grouped']->value, 'files', false, 'date');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['date']->value => $_smarty_tpl->tpl_vars['files']->value) {
?>
<?php $_smarty_tpl->_assignInScope('dayCount', $_smarty_tpl->tpl_vars['importmanager']->value->shipImportCount($_smarty_tpl->tpl_vars['files']->value));
?>
<?php $_smarty_tpl->_assignInScope('ships', $_smarty_tpl->tpl_vars['importmanager']->value->groupFilesByShip($_smarty_tpl->tpl_vars['files']->value));
?>
<div class="card mb-4 shadow-sm">
<div class="card-header d-flex flex-wrap justify-content-between align-items-center gap-2">
<h5 class="mb-0"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date']->value,"%d.%m.%Y");?>
<small class="text-muted ms-2"><?php echo $_smarty_tpl->tpl_vars['dayCount']->value;?>
Fahrzeuge importiert</small></h5>
<?php if ($_smarty_tpl->tpl_vars['dayCount']->value > 0) {?>
<form class="js-undo" data-action="undo_day" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value;?>
"
data-confirm="Alle Importe vom <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date']->value,"%d.%m.%Y");?>
rückgängig machen?">
<button type="submit" class="btn btn-light text-danger btn-sm">Alles rückgängig</button>
</form>
<?php }?>
</div>
<?php if (count($_smarty_tpl->tpl_vars['ships']->value) > 1) {?>
<?php $_smarty_tpl->_assignInScope('dayTabId', ("day_").((smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['date']->value,'/[^a-zA-Z0-9_]/','_'))));
?>
<ul class="nav nav-tabs px-3 pt-2" role="tablist">
<li class="nav-item">
<button class="nav-link active" data-bs-toggle="tab" data-bs-target="#all_<?php echo $_smarty_tpl->tpl_vars['dayTabId']->value;?>
" type="button" role="tab">Alle</button>
</li>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['ships']->value, 'shipFiles', false, 'shipName');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['shipName']->value => $_smarty_tpl->tpl_vars['shipFiles']->value) {
?>
<?php $_smarty_tpl->_assignInScope('tabId', ("ship_").((md5(($_smarty_tpl->tpl_vars['shipName']->value).($_smarty_tpl->tpl_vars['date']->value)))));
?>
<li class="nav-item">
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#<?php echo $_smarty_tpl->tpl_vars['tabId']->value;?>
" type="button" role="tab"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipName']->value, ENT_QUOTES, 'UTF-8', true);?>
</button>
</li>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</ul>
<div class="tab-content">
<div class="tab-pane fade show active" id="all_<?php echo $_smarty_tpl->tpl_vars['dayTabId']->value;?>
" role="tabpanel">
<?php $_smarty_tpl->_subTemplateRender("file:imports/_filelist.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('files'=>$_smarty_tpl->tpl_vars['files']->value), 0, true);
?>
</div>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['ships']->value, 'shipFiles', false, 'shipName');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['shipName']->value => $_smarty_tpl->tpl_vars['shipFiles']->value) {
?>
<?php $_smarty_tpl->_assignInScope('tabId', ("ship_").((md5(($_smarty_tpl->tpl_vars['shipName']->value).($_smarty_tpl->tpl_vars['date']->value)))));
?>
<?php $_smarty_tpl->_assignInScope('shipCount', $_smarty_tpl->tpl_vars['importmanager']->value->shipImportCount($_smarty_tpl->tpl_vars['shipFiles']->value));
?>
<div class="tab-pane fade" id="<?php echo $_smarty_tpl->tpl_vars['tabId']->value;?>
" role="tabpanel">
<?php if ($_smarty_tpl->tpl_vars['shipCount']->value > 0) {?>
<div class="p-3">
<form class="js-undo" data-action="undo_day_ship" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value;?>
" data-ship="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipName']->value, ENT_QUOTES, 'UTF-8', true);?>
"
data-confirm="Alle Importe am <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date']->value,"%d.%m.%Y");?>
für <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipName']->value, ENT_QUOTES, 'UTF-8', true);?>
rückgängig machen?">
<button type="submit" class="btn btn-outline-danger btn-sm"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipName']->value, ENT_QUOTES, 'UTF-8', true);?>
-Import rückgängig machen</button>
</form>
</div>
<?php }?>
<?php $_smarty_tpl->_subTemplateRender("file:imports/_filelist.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('files'=>$_smarty_tpl->tpl_vars['shipFiles']->value), 0, true);
?>
</div>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</div>
<?php } else { ?>
<?php $_smarty_tpl->_subTemplateRender("file:imports/_filelist.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('files'=>$_smarty_tpl->tpl_vars['files']->value), 0, true);
?>
<?php }?>
</div>
<?php
}
} else {
?>
<div class="alert alert-secondary"><?php if (isset($_smarty_tpl->tpl_vars['emptyText']->value)) {
echo $_smarty_tpl->tpl_vars['emptyText']->value;
} else { ?>Keine Importe in den letzten 7 Tagen.<?php }?></div>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
<?php }
}