{include file="header.html"}

{$layout.pagetitle}

{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]} {sectionelse} {/section} {if $listdata.total != 0} {/if}
{t}Date:{/t}{if $listdata.order eq "cdate"}{/if} {t}Number:{/t} {t}Type:{/t}{if $listdata.order eq "type"}{/if} {t}Title:{/t}{if $listdata.order eq "title"}{/if} {t}Period:{/t} {t}Description:{/t} {t 0=$listdata.total|default:"0"}Total: $0{/t}

{t}Filter:{/t} {t}Customer:{/t}   {t}Type:{/t}

{t}Page:{/t} {if $page > 1}«««{else}«««{/if} {section name=pcnt loop=$documentlist step=$pagelimit} {if $page eq $smarty.section.pcnt.rownum}[{else} {/if}{$smarty.section.pcnt.rownum}{if $page eq $smarty.section.pcnt.rownum}]{else} {/if} {/section} {if $page < $smarty.section.pcnt.rownum}»»»{else}»»»{/if} {math equation="x + 1" x=$start assign=startx} {if $start + $pagelimit > $listdata.total} {assign var=endx value=$listdata.total}{else}{math equation="x + y" x=$start y=$pagelimit assign=endx} {/if} ({t 0=$startx 1=$endx 2=$listdata.total}records $0 - $1 of $2{/t})
{$doc.cdate|date_format:"%Y/%m/%d"} {if $doc.number} {number number=$doc.number template=$doc.template time=$doc.cdate} {/if} {assign var=type value=$doc.type}{$_DOCTYPES.$type} {$doc.title|truncate:40:"..."} {if $doc.fromdate}{t}from{/t} {$doc.fromdate|date_format:"%Y/%m/%d"}{/if} {if $doc.todate}{t}to{/t} {$doc.todate|date_format:"%Y/%m/%d"}{/if} {$doc.description} [ {t}View{/t} ] [ {t}Save{/t} ] [ {t}Delete{/t} ]

 

{t}That customer hasn't got any documents.{/t}

 

{t}Page:{/t} {if $page > 1}«««{else}«««{/if} {section name=pcnt loop=$documentlist step=$pagelimit} {if $page eq $smarty.section.pcnt.rownum}[{else} {/if}{$smarty.section.pcnt.rownum}{if $page eq $smarty.section.pcnt.rownum}]{else} {/if} {/section} {if $page < $smarty.section.pcnt.rownum}»»»{else}»»»{/if} {math equation="x + 1" x=$start assign=startx} {if $start + $pagelimit > $listdata.total} {assign var=endx value=$listdata.total}{else}{math equation="x + y" x=$start y=$pagelimit assign=endx} {/if} ({t 0=$startx 1=$endx 2=$listdata.total}records $0 - $1 of $2{/t})
{include file="footer.html"}