{box title="Your subscriptions"} {$show_speeds = ConfigHelper::checkConfig('userpanel.show_speeds')} {$count = 0}
{foreach $assignments as $assignment} {if ($assignment.tariffid || $assignment.liabilityid) && !($assignment.suspended || ($assignment.dateto < $smarty.now && $assignment.dateto) || ($assignment.datefrom > $smarty.now && $assignment.datefrom))} {$count = $count +1} {assign var="sum_dl" value="`$sum_dl+$assignment.real_downceil`"} {assign var="sum_up" value="`$sum_up+$assignment.real_upceil`"} {/if} {foreachelse} {/foreach} {if $count > 1} {/if}
{trans("Tariff")} {trans("Subscription")} {trans("Discount:")} {trans("Accounting day:")} {trans("Download speed")} {trans("Upload speed")} {trans("Invoice")} {trans("Period")}
{$assignment.name} {$assignment.value|money_format} {if $assignment.pdiscount > 0}{$assignment.pdiscount}%{else}{if $assignment.vdiscount > 0}{$assignment.vdiscount|money_format}{else}-{/if}{/if} {$assignment.payday} {math equation="x / 1024" x=$assignment.downceil} Mb/s {math equation="x / 1024" x=$assignment.upceil} Mb/s {if $assignment.invoice}{trans("yes")}{else} {/if} {if $assignment.datefrom}{trans("from")} {$assignment.datefrom|date_format:"%Y/%m/%d"}{/if} {if $assignment.dateto}{trans("to")} {$assignment.dateto|date_format:"%Y/%m/%d"}{/if}
{trans("You haven't got any assigned subscriptions.")}
{trans("Total:")} {sum array=$assignments column="real_value" string_format=$LANGDEFS.$_language.money_format} ({sum array=$assignments column="real_disc_value" string_format=$LANGDEFS.$_language.money_format})   {math equation="d / 1024" d=$sum_dl} Mb/s {math equation="u / 1024" u=$sum_up} Mb/s    
{/box}