{include file="header.html"}

{$layout.pagetitle}

{literal} {/literal} {if $listdata.totalpos != 0} {/if} {cycle values="light,lucid" print=false} {section name=receiptlist loop=$receiptlist start=$start max=$pagelimit} {assign var=receipt value=$receiptlist[receiptlist]} {assign var=receiptid value=$receipt.id} {sectionelse} {/section} {if $listdata.totalpos != 0} {/if}
{t}ID:{/t} {if $listdata.order eq "id"}{/if} {t}Date:{/t} {if $listdata.order eq "cdate"}{/if} {t}Number:{/t} {if $listdata.order eq "number"}{/if} {t}Value:{/t} {if $listdata.order eq "value"}{/if} {t}For:{/t} {if $listdata.order eq "name"}{/if}  
{t}Filter:{/t}     »»»
{t}Page:{/t} {if $page > 1} «««{else}«««{/if} {section name=pcnt loop=$receiptlist 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.totalpos} {assign var=endx value=$listdata.totalpos}{else}{math equation="x + y" x=$start y=$pagelimit assign=endx} {/if} ({t 0=$startx 1=$endx 2=$listdata.totalpos}records $0 - $1 of $2{/t})
{$receipt.id|string_format:"%06d"} {$receipt.cdate|date_format:"%Y/%m/%d %H:%M"} {$receipt.number} {$receipt.value|money_format} {$receipt.customer}, {$receipt.address}, {$receipt.zip} {$receipt.city} [ {t}Print{/t} ] [ {t}Edit{/t} ] [ {t}Delete{/t} ] {cycle print=false}

 

{t}No such receipts in database.{/t}

 

{t}Page:{/t} {if $page > 1} «««{else}«««{/if} {section name=pcnt loop=$receiptlist 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.totalpos} {assign var=endx value=$listdata.totalpos}{else}{math equation="x + y" x=$start y=$pagelimit assign=endx} {/if} ({t 0=$startx 1=$endx 2=$listdata.totalpos}records $0 - $1 of $2{/t})
{t}Print{/t}   {t}original{/t}  {t}copy{/t} {t}Check All{/t}
{include file="footer.html"}