24 lines
609 B
PHP
24 lines
609 B
PHP
<?php
|
|
// ##############################################################
|
|
|
|
if (!empty($TYPE) && !empty($ID_ITEM)) {
|
|
?>
|
|
<style type="text/css" media="print">
|
|
|
|
@page {
|
|
margin: 2.5cm;
|
|
}
|
|
|
|
</style>
|
|
<?php
|
|
$smarty = createSmarty(true, true);
|
|
$smarty->assign(['cfg' => $GLOBALS['cfg'], 'dbcfg' => $GLOBALS['dbcfg'], 'ctrl' => $GLOBALS['ctrl']]);
|
|
$order = new Order();
|
|
$order->createFromDB($ID_ITEM, true, true, true);
|
|
$smarty->assign('order', $order);
|
|
echo $smarty->fetch('email/orderShopkeeper.tpl');
|
|
}
|
|
|
|
// ################################################
|
|
?>
|