first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
$smarty = createSmarty(true, true);
if (empty($ID_ITEM)) {
$ID_ITEM = getVal('ID');
}
global $adminName;
$order = new Order($ID_ITEM);
$order->createFromDB($ID_ITEM);
$order->fetchItems();
if (!empty($order->admin)) {
$adminName = returnSQLResult('SELECT login FROM admins WHERE id=:id', ['id' => $order->admin]);
}
$smarty->assign([
'order' => $order,
'adminName' => $adminName,
]);
$template_name = getVal('template');
$template = 'printCenter/'.$template_name.'.tpl';
if ($smarty->templateExists($template)) {
$smarty->display($template);
} else {
$smarty->display('printCenter/invoiceForeign.tpl');
}