| 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/booking/_mails.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_6a3f4a0290fec8_26527121',
'has_nocache_code' => false,
'file_dependency' =>
array (
'e59929544f165dfde85953db8b103ff396a35acd' =>
array (
0 => '/var/www/clients/client1/web17/web/includes/templates/templates/booking/_mails.tpl',
1 => 1782513125,
2 => 'file',
),
),
'includes' =>
array (
'file:booking/_requests.tpl' => 1,
'file:widgets/mailer.tpl' => 1,
),
),false)) {
function content_6a3f4a0290fec8_26527121 (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';
?>
<?php $_smarty_tpl->_assignInScope('lastBookingNo', (($tmp = @$_smarty_tpl->tpl_vars['booking']->value->bookings[0]->booking_no)===null||$tmp==='' ? '' : $tmp));
?>
<?php if ($_smarty_tpl->tpl_vars['linkedReqs']->value) {?>
<div class="card mb-3">
<div class="card-header fw-bold"><i class="material-icons sm align-middle">forum</i> Eingegangene Anfragen / Kontaktnachrichten <span class="badge bg-secondary rounded-pill ms-1"><?php echo $_smarty_tpl->tpl_vars['reqCount']->value;?>
</span></div>
<div class="card-body"><?php $_smarty_tpl->_subTemplateRender("file:booking/_requests.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
</div>
</div>
<?php }?>
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<span class="fw-bold">E-Mails <span class="badge bg-secondary rounded-pill ms-1"><?php echo count($_smarty_tpl->tpl_vars['booking']->value->mails);?>
</span></span>
<button type="button" class="btn btn-sm btn-primary" id="bmCreateBtn" data-invoice="<?php echo $_smarty_tpl->tpl_vars['inv']->value->invoice_id;?>
">
<i class="material-icons sm">edit</i> E-Mail erstellen
</button>
</div>
<div class="accordion accordion-flush" id="mailAcc">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['booking']->value->mails, 'mail', false, 'key');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['mail']->value) {
?>
<div class="accordion-item">
<h2 class="accordion-header" id="mailH<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#mail<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" aria-expanded="false">
<div class="d-flex w-100 align-items-center gap-2 pe-3">
<i class="material-icons text-muted">mail</i>
<div class="flex-grow-1 min-w-0">
<div class="fw-bold text-truncate"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['mail']->value->message_subject, ENT_QUOTES, 'UTF-8', true);?>
</div>
<div class="small text-muted text-truncate">
<?php if (!empty($_smarty_tpl->tpl_vars['mail']->value->message_receiver)) {
echo htmlspecialchars($_smarty_tpl->tpl_vars['mail']->value->message_receiver, ENT_QUOTES, 'UTF-8', true);
} else { ?><em>per Post</em><?php }?>
</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['mail']->value->message_status == 0) {?>
<span class="badge bg-warning text-dark">Versand ausstehend</span>
<?php } else { ?>
<span class="badge bg-success">versendet</span>
<?php }?>
<span class="small text-muted text-nowrap"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['mail']->value->message_datetime,"%d.%m.%Y %H:%M");?>
</span>
</div>
</button>
</h2>
<div id="mail<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" class="accordion-collapse collapse" aria-labelledby="mailH<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" data-bs-parent="#mailAcc">
<div class="accordion-body">
<div class="d-flex flex-wrap gap-2 mb-3">
<button type="button" class="btn btn-sm btn-outline-success confirmation-modal" data-bs-toggle="modal" data-bs-target="#confirmationModal" data-headline="E-Mail erneut versenden?" data-content="Soll die E-Mail [b]<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['mail']->value->message_subject, ENT_QUOTES, 'UTF-8', true);?>
[/b] an <?php if (!empty($_smarty_tpl->tpl_vars['mail']->value->message_receiver)) {
echo htmlspecialchars($_smarty_tpl->tpl_vars['mail']->value->message_receiver, ENT_QUOTES, 'UTF-8', true);
} else { ?>den Kunden<?php }?> erneut versendet werden?" data-json="<?php echo htmlspecialchars(json_encode((array('mysql'=>array('table'=>'pacim_messages','where'=>"message_id = ".((string)$_smarty_tpl->tpl_vars['mail']->value->message_id)),'content'=>array('message_status'=>0,'message_count'=>0)))));?>
">
<i class="material-icons sm">send</i> Erneut versenden
</button>
<button type="button" class="btn btn-sm btn-outline-primary bm-edit" data-message-id="<?php echo $_smarty_tpl->tpl_vars['mail']->value->message_id;?>
" data-invoice="<?php echo $_smarty_tpl->tpl_vars['inv']->value->invoice_id;?>
">
<i class="material-icons sm">edit</i> Bearbeiten & versenden
</button>
</div>
<div class="bm-preview-frame">
<iframe srcdoc="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['mail']->value->message_content, ENT_QUOTES, 'UTF-8', true);?>
" loading="lazy"></iframe>
</div>
<?php if (in_array($_smarty_tpl->tpl_vars['mail']->value->message_template,array(2,3,4))) {?>
<div class="mt-3 d-flex flex-wrap gap-2">
<?php if (in_array($_smarty_tpl->tpl_vars['mail']->value->message_template,array(2,3)) && !empty($_smarty_tpl->tpl_vars['inv']->value->invoice_no)) {?>
<a href="<?php echo @constant('SITE_URL');?>
/file.php?token=YIz8HqUPWQ7cwcVHE57O&invoice=<?php echo $_smarty_tpl->tpl_vars['inv']->value->invoice_id;?>
&type=inv&show=1" class="btn btn-sm btn-outline-secondary iframe-modal" data-size="lg" data-headline="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['inv']->value->invoice_no, ENT_QUOTES, 'UTF-8', true);?>
.pdf" data-bs-toggle="modal" data-bs-target="#fileModal"><i class="material-icons sm">picture_as_pdf</i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['inv']->value->invoice_no, ENT_QUOTES, 'UTF-8', true);?>
.pdf</a>
<?php } elseif ($_smarty_tpl->tpl_vars['mail']->value->message_template == 4) {?>
<a href="<?php echo @constant('SITE_URL');?>
/file.php?token=YIz8HqUPWQ7cwcVHE57O&invoice=<?php echo $_smarty_tpl->tpl_vars['inv']->value->invoice_id;?>
&show=1" class="btn btn-sm btn-outline-secondary iframe-modal" data-size="lg" data-headline="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lastBookingNo']->value, ENT_QUOTES, 'UTF-8', true);?>
.pdf" data-bs-toggle="modal" data-bs-target="#fileModal"><i class="material-icons sm">picture_as_pdf</i> Buchungsbestätigung</a>
<?php }?>
</div>
<?php }?>
</div>
</div>
</div>
<?php
}
} else {
?>
<div class="accordion-item"><div class="p-4 text-center text-muted">Noch keine E-Mails zu dieser Buchung.</div></div>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</div>
</div>
<?php $_smarty_tpl->_subTemplateRender("file:widgets/mailer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<?php }
}