pdfdokumente/views/smarty/documents/inc/page/base.tpl
2024-09-06 01:22:36 +02:00

29 lines
1.0 KiB
Smarty

[{assign var="pageset" value=$pageset|default:"new"}]
[{assign var="orientation" value=$orientation|default:"P"}]
[{assign var="format" value=$format|default:"A4"}]
[{assign var="defaultPagePadding" value=","|explode:"45,15,25,25"}] [{* top, right, bottom, left *}]
[{assign var="pagePadding" value=$pagePadding|default:$defaultPagePadding}]
<style>
[{foreach from=$pdfBlock_style item="_block"}]
[{$_block}]
[{/foreach}]
</style>
<page backtop="[{$pagePadding.0}]mm" backright="[{$pagePadding.1}]mm" backbottom="[{$pagePadding.2}]mm" backleft="[{$pagePadding.3}]mm" pageset="[{$pageset}]" orientation="[{$orientation}]" format="[{$format}]">
<page_header>
[{foreach from=$pdfBlock_header item="_block"}]
[{$_block}]
[{/foreach}]
</page_header>
<page_footer>
[{foreach from=$pdfBlock_footer item="_block"}]
[{$_block}]
[{/foreach}]
</page_footer>
[{foreach from=$pdfBlock_content item="_block"}]
[{$_block}]
[{/foreach}]
</page>