83 lines
2.4 KiB
Smarty
83 lines
2.4 KiB
Smarty
{extends "../window.tpl"}
|
|
|
|
{block css append}
|
|
<link href="./static/fancybox2/jquery.fancybox.css" rel="stylesheet" media="screen">
|
|
{/block}
|
|
|
|
{block js append}
|
|
<script src="./static/fancybox2/jquery.fancybox.pack.js"></script>
|
|
<script src="./static/js/EmailMessages.js"></script>
|
|
{/block}
|
|
|
|
{block size}
|
|
width = 1220;
|
|
height = 900;
|
|
{/block}
|
|
|
|
{block tabs}
|
|
{if $body.data.id}
|
|
{windowTab id='flapOrder' label={'flapOrderLabel'|translate}|cat:$body.data.order_no}
|
|
{/if}
|
|
{windowTab id='flapUser'}
|
|
|
|
{if $body.data.id}
|
|
{windowTab id='flapItems'}
|
|
{/if}
|
|
|
|
{if $body.data.id}
|
|
{windowTab id='flapPrint'}
|
|
{/if}
|
|
{/block}
|
|
|
|
{block tabsContent}
|
|
<div id="flapOrder" class="tab-pane fade {if $body.acn != 'add'}active in{/if} boxStatic" {if $smarty.get.deliveryDE}style="border:5px solid blue;"{/if}>
|
|
{include "window/orders.order.tpl"}
|
|
</div>
|
|
<div id="flapUser" class="tab-pane fade active in boxStatic">
|
|
{include "window/orders.user.tpl"}
|
|
</div>
|
|
<div id="flapItems" class="tab-pane fade boxFlex box iframe-box">
|
|
{if $body.acn =="edit"}
|
|
<iframe class='on-demand boxFlex' src="" data-src="launch.php?s=orders.items.php&acn=edititems&IDo={$body.data.id}"></iframe>
|
|
{elseif $body.acn == "add"}
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td align="center" valign="middle" class="error" style="height:400px;">{'itemsNewOrderNote'|translate}</td>
|
|
</tr>
|
|
</table>
|
|
{/if}
|
|
</div>
|
|
<div id="flapPrint" class="tab-pane fade boxStatic">
|
|
{include "window/orders.print.tpl"}
|
|
</div>
|
|
{/block}
|
|
|
|
<script type="application/javascript">
|
|
function hotkeys(e) {
|
|
var data = [];
|
|
|
|
{block hotkeys append}
|
|
if (data.modif == "alt+") {
|
|
if ("0" < data.character && data.character < "9") {
|
|
// Preklapavani stavu pouze na uvodnim tabu
|
|
if (!$("#flapOrder").eq(0).is('.active')) {
|
|
return true;
|
|
}
|
|
|
|
$('#statusButtons').find('button').eq(data.character - 1).click();
|
|
}
|
|
else if (data.character == "\r")
|
|
$('input[name=Submit]').click();
|
|
else if (data.special == "right")
|
|
moveToNext(false);
|
|
else if (data.special == "left")
|
|
moveToNext(true);
|
|
else
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
{/block}
|
|
}
|
|
</script>
|