{extends file="layout.html"} {block name=title}::: LMS :{$layout.pagetitle|striphtml} :::{/block} {block name=module_content}

{$layout.pagetitle}

{$xajax}
{if $customer.id}{$cid=$customer.id}{elseif $document.customerid}{$cid=$document.customerid}{else}{$cid=""}{/if} {include file="document/documentreference.html"}
{trans("Title:")}
{trans("Customer:")} {customerlist form="documentadd" customers=$customers selected=$cid selectname="customer" inputname="customerid" customOnChange="CustomerChanged();"}
{trans("Period:")} {trans("from:")}   {trans("to:")}
{trans("Description:")}
{trans("Type:")}
{trans("Template:")}
{trans("Files:")} {fileupload id="attachments" fileupload=$fileupload}
{trans("Number:")}  
{include file="document/documentnumberplans.html" numberplanid=$document.numberplanid cdate=$document.cdate customerid=$cid}
{trans("Submit")} {trans("Print")} {trans("Cancel")}
{if !empty($promotions)} {block name="documentpromotions"} {include file="document/documentpromotions.html"} {/block} {/if}
{$plugin_result}
{$script_result}
{/block}