| 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/widgets/modals/invoice/positions.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_6a3f4a02b7cf63_43351429',
'has_nocache_code' => false,
'file_dependency' =>
array (
'8281ffe95ce5b5a2e5b0a363020a65cea178e9a3' =>
array (
0 => '/var/www/clients/client1/web17/web/includes/templates/templates/widgets/modals/invoice/positions.tpl',
1 => 1780451802,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6a3f4a02b7cf63_43351429 (Smarty_Internal_Template $_smarty_tpl) {
?>
<div class="form-mysql-content">
<div class="mysql-configuration">
<?php if (isset($_smarty_tpl->tpl_vars['data']->value->invoice_pos_id)) {?><input name="mysql[where]" type="hidden" value="invoice_pos_id = <?php echo $_smarty_tpl->tpl_vars['data']->value->invoice_pos_id;?>
"><?php }?>
<input name="mysql[table]" type="hidden" value="pacim_invoice_pos">
</div>
<?php if (!isset($_smarty_tpl->tpl_vars['data']->value->invoice_pos_id)) {?>
<div id="productChoosingForm" class="mb-3 text-center">
Bitte wählen Sie ein Produkt:
<input name="content[invoice_id]" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->invoice_id;?>
">
<select name="content[product_id]" id="productChoosing" class="form-control-lg text-center my-4 mx-auto w-auto" onchange="var o=this.options[this.selectedIndex];document.getElementById('invoice_pos_title').value=o.getAttribute('data-product-name')||'';document.getElementById('invoice_pos_quantity').value='1.0';document.getElementById('invoice_pos_price').value=o.getAttribute('data-price')||'';document.getElementById('productChoosingForm').style.display='none';document.getElementById('productDatas').style.display='';">
<option value="" selected>- bitte wählen -</option>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['data']->value->products, 'product', false, 'key');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['product']->value) {
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['product']->value->product_id;?>
" data-price="<?php echo number_format(($_smarty_tpl->tpl_vars['product']->value->product_price*1.19),2,".",",");?>
" data-product-name="<?php echo $_smarty_tpl->tpl_vars['product']->value->product_title;?>
"><?php echo $_smarty_tpl->tpl_vars['product']->value->product_title;?>
</option>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</select>
</div>
<?php }?>
<?php if (!isset($_smarty_tpl->tpl_vars['data']->value->invoice_pos_id)) {?><div id="productDatas" style="display:none;"><?php }?>
<div class="mb-3">
<label for="invoice_pos_title">Bezeichnung</label>
<input id="invoice_pos_title" name="content[invoice_pos_title]" type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->invoice_pos_title;?>
" placeholder="Bezeichnung des Postens">
<small class="form-text text-muted">Bezeichnung zur Darstellung auf der Rechnung des Kunden</small>
</div>
<hr />
<div class="mb-3 row">
<div class="col-4">
<label for="invoice_pos_quantity">Menge</label>
<input id="invoice_pos_quantity" name="content[invoice_pos_quantity]" type="text" class="form-control text-center" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->invoice_pos_quantity;?>
" placeholder="Anzahl">
</div>
<div class="col-8">
<label for="invoice_pos_price">Einzelpreis <small>inkl. 19% MwSt.</small></label>
<input id="invoice_pos_price" name="content[invoice_pos_price]" type="text" class="form-control text-center" value="<?php echo number_format(($_smarty_tpl->tpl_vars['data']->value->invoice_pos_price*1.19),2,".",",");?>
" placeholder="Preis in EUR">
</div>
</div>
<?php if (!isset($_smarty_tpl->tpl_vars['data']->value->invoice_pos_id)) {?></div><?php }?>
</div>
<?php }
}