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

{$layout.pagetitle}

{if $docid} {/if}
{if $listdata.total != 0} {/if} {cycle values="light,lucid" print=false} {section loop=$documentlist name=documentlist start=$start max=$pagelimit} {assign var=doc value=$documentlist[documentlist]} {assign var=docid value=$doc.docid} {sectionelse} {/section} {if $listdata.total != 0} {/if}
{trans("Creation date")}{if $listdata.order == "cdate"}{/if} / {trans("Confirmation date")}:{if $listdata.order == "sdate"}{/if}
{trans("Number:")}
{trans("Created by")}{if $listdata.order == "user"}{/if} / {trans("Confirmed by")}:{if $listdata.order == "cuser"}{/if}
{trans("Type:")}{if $listdata.order == "type"}{/if}
{trans("Title:")}{if $listdata.order == "title"}{/if}
{trans("Period:")}
{trans("Reference document:")}
{trans("Customer:")}{if $listdata.order == "customer"}{/if} {trans("New Document")}
{trans("Filter:")} {trans("Customer:")} {customerlist form="page" customers=$customers selected=$listdata.customer selectname="customer" inputname="c" firstoption="- all customers -"}  {trans("Type:")}   {trans("User:")}  {if empty($users)} {else}   {/if}
{trans("Period:")}  {trans("from")}  {trans("to")}   {if count($numberplans) > 0} {trans("Number plan:")}   {else} {/if} {trans("Status:")}  
»»» 
{include file="scroller.html" loop=$documentlist}
{$doc.cdate|date_format:"%Y/%m/%d %H:%M"}{if $doc.sdate} / {$doc.sdate|date_format:"%Y/%m/%d %H:%M"}{/if} {if $doc.number}
{number number=$doc.number template=$doc.template time=$doc.cdate customerid=$doc.customerid} {/if}
{$doc.username}{if $doc.cuserid} / {$doc.cusername}{/if}
{assign var=type value=$doc.type}{$_DOCTYPES.$type}
{$doc.title|truncate:40:"...":true} {if $doc.fromdate || $doc.todate}
{if $doc.fromdate}{trans("from")} {$doc.fromdate|date_format:"%Y/%m/%d"}{/if} {if $doc.todate}{trans("to")} {$doc.todate|date_format:"%Y/%m/%d"}{/if} {/if} {if $doc.reference}
{t a=$_DOCTYPES[$doc.reference.type] b=$doc.reference.fullnumber c=$doc.reference.cdate|date_format:"%Y/%m/%d"}$a no. $b issued on $c{/t} {/if}
{$doc.name|truncate:40:"...":true} {if $doc.senddocuments} {trans( {/if} {assign var=type value=$doc.type} {trans( {if ! $doc.closed && ($docrights.$type.rights & 4)} {trans( {/if} {if ($docrights.$type.rights & 16)} {trans( {/if} {if ($docrights.$type.rights & 8)} {trans( {/if} {$docattach = $doc.attachments[0]} {if $docattach.main || count($doc.attachments) == 1} {documentview id="{$doc.docid}-{$docattach.id}" type=$docattach.contenttype name=$docattach.filename url="?m=documentview&id={$doc.docid}" external=true text=""} {/if} {if count($doc.attachments) > 1} {/if}

{trans("No such documents matching search criteria or list is empty.")}

{include file="scroller.html" loop=$documentlist}
{if count($documentlist) > 0}
{trans("Send documents")}   {trans("Print")} {trans(  {trans("Confirm")} {trans(  {trans("Delete")} {trans(
{/if}
{/block}