pdfdokumente/Application/views/tpl/documents/inc/page/base.tpl

29 lines
1019 B
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,20,20,25"}]
[{assign var="pagePadding" value=$pagePadding|default:$defaultPagePadding}]
<style type="text/css">
[{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>