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

{$layout.pagetitle}

{function bitrate_restrictions} {if $day}{$day} kbit/s{else}{trans("no limits")}{/if} ({trans("night:")} {if $night}{$night|default:0} kbit/s{else}{trans("not defined")}{/if}) {/function} {function restrictions} {if $day}{$day}{else}{trans("no limits")}{/if} ({trans("night:")} {if $night}{$night|default:0}{else}{trans("not defined")}{/if}) {/function} {function user_restrictions} {if !isset($limit) || !$limit} {trans("no limit")} {else} {$limit} {/if} {/function} {if $tariff.type != $smarty.const.TARIFF_PHONE && $tariff.type != $smarty.const.TARIFF_TV && $tariff.type != $smarty.const.TARIFF_INTERNET} {else if $tariff.type == $smarty.const.TARIFF_PHONE} {/if}
{$tariff.name} ({$tariff.id|string_format:"%04d"})
{if $tariff.type != $smarty.const.TARIFF_PHONE} {/if}
{if isset($tariff.numberplan)} {/if} {if $tariff.datefrom || $tariff.dateto} {/if} {if !empty($tariff.prodid)} {/if} {if ConfigHelper::checkConfig('privileges.superuser') || !ConfigHelper::checkConfig('privileges.hide_summaries')} {/if} {if $tariff.authtype} {/if} {if $tariff.description} {/if} {if $tariff.promotions} {/if}
{trans("Value:")} {$tariff.value|money_format} {if $tariff.period} {assign var=tperiod value=$tariff.period}({$_PERIODS.$tperiod}) {else} ({trans("period undefined")}) {/if}
{trans("Tax:")} {$tariff.tax}
{trans("Type:")} {$_TARIFFTYPES[$tariff.type]}
{trans("Numbering Plan:")} {$tariff.numberplan.template} ({$_NUM_PERIODS[$tariff.numberplan.period]})
{trans("Period:")} {if $tariff.datefrom} {trans("from:")} {$tariff.datefrom|date_format:"%Y/%m/%d"} {/if} {if $tariff.dateto} {trans("to:")} {$tariff.dateto|date_format:"%Y/%m/%d"} {/if}
{trans("Product ID:")} {$tariff.prodid}
{trans("Number of customers:")} {$tariff.customerscount|default:0} ({$tariff.count|default:0},{$tariff.activecount|default:0})
{trans("Avg. monthly income:")} {$tariff.totalval|money_format}
{trans("Type:")}
    {foreach $_SESSIONTYPES as $idx => $sessiontype} {if $tariff.authtype & $idx}
  1. {$sessiontype.label}
  2. {/if} {/foreach}
{trans("Description:")} {$tariff.description|replace:"\n":"
"}
{trans("Promotions:")} {foreach from=$tariff.promotions item=promo} {$promo.name}  {/foreach}
{trans("Upload rate:")} {bitrate_restrictions day=$tariff.uprate night=$tariff.uprate_n}
{trans("Upload ceil:")} {bitrate_restrictions day=$tariff.upceil night=$tariff.upceil_n}
{trans("Download rate:")} {bitrate_restrictions day=$tariff.downrate night=$tariff.downrate_n}
{trans("Download ceil:")} {bitrate_restrictions day=$tariff.downceil night=$tariff.downceil_n}
{trans("Connection limit:")} {restrictions day=$tariff.climit night=$tariff.climit_n}
{trans("Packet limit:")} {restrictions day=$tariff.plimit night=$tariff.plimit_n}
{trans("Data limit:")} {if $tariff.dlimit}{$tariff.dlimit}{else}{trans("no limits")}{/if}
{foreach $_ACCOUNTTYPES as $typeidx => $type} {$alias=$type.alias|cat:"_limit"} {/foreach} {foreach $_ACCOUNTTYPES as $typeidx => $type} {$alias="quota_"|cat:$type.alias|cat:"_limit"} {/foreach}
{trans("Limit of domains:")} {user_restrictions limit=$tariff.domain_limit}
{trans("Limit of account aliases:")} {user_restrictions limit=$tariff.alias_limit}
{$type.accountlimitlabel}{user_restrictions limit=$tariff[$alias]}
{$type.accountquotalabel}{user_restrictions limit=$tariff[$alias]}
{trans("VoIP pricelist:")} {if $voip_fields.pricelist} {$voip_fields.pricelist} {else} {trans("not defined")} {/if}
{trans("Tariff rule:")} {if $voip_fields.rule_name} {$voip_fields.rule_name} {else} {trans("not defined")} {/if}
{trans("Edit")} {if $tariff.count == 0} {trans("Delete")} {/if}
{cycle values="light,lucid" print=false} {section name=l1 loop=$tariff.customers max=$tariff.rows} {section name=l2 loop=$tariff.customers start=$smarty.section.l1.index step=$tariff.rows} {/section}{cycle print=false} {sectionelse} {/section}
{trans("Customers in Subscription:")} {trans("Network:")}
({$tariff.customers[l2].id|string_format:"%04d"}) {$tariff.customers[l2].customername|truncate:50:" ..."} {if $tariff.customers[l2].cnt > 1}({$tariff.customers[l2].cnt}){/if}

{trans("No such customers with that subscription.")}

{trans("Move customers to subscription:")}
{/block}