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

{$layout.pagetitle}

{if $bars} {if ($download || $upload) && function_exists('imagecreate')}

{trans(

{/if} {if $smarty.section.download.index_next} {/if}
{section name=download loop=$download.name} {/section}

{trans("Download")}

{if $showips}{$download.ipaddr[download]}{else}{$download.name[download]|truncate:25:"…":true}{/if} {$download.data[download]|string_format:"%.2f"} {$download.unit[download]} ({$download.avg[download]|string_format:"%d"} kbit/s)

{trans("Total:")} {$download.sum.data|string_format:"%.2f "}{$download.sum.unit} ({$download.avgsum|string_format:"%d"} kbit/s)

{section name=upload loop=$upload.name} {/section}

{trans("Upload")}

{if $showips}{$upload.ipaddr[upload]}{else}{$upload.name[upload]|truncate:25:"…":true}{/if} {$upload.data[upload]|string_format:"%.2f"} {$upload.unit[upload]} ({$upload.avg[upload]|string_format:"%d"} kbit/s)

{trans("Total:")} {$upload.sum.data|string_format:"%.2f "}{$upload.sum.unit} ({$upload.avgsum|string_format:"%d"} kbit/s)

{t a=$smarty.section.download.index_next}Rows: $a{/t}
{else}
{trans("Enter search criteria:")}
{trans("From")}
{trans("To")}
{date_period_preset from="#datefrom" to="#dateto" time=true periods="previous-year,previous-month,current-year,current-month,next-month,next-year"}
{trans("Network:")}
{trans("Customer:")} {customerlist form="traffic" customers=$customers selectname="custid" version=2 inputname="customerid" firstoption="- all customers -"}
{trans("Sorting:")}
{trans("Nodes limit:")}
{button icon="save" label="Submit" onclick="document.traffic.submit();"}
{/if} {/block}