{****** make sure you create your parameters section ******} {if $parametersOnly==1} {if $smarty.const.numClients<2501} {$smarty.const.TRANS_GENERATE_ERR_FOR}:
{elseif $smarty.const.numClients>2500}{"TRANS_ERR_FOR_PERIOD"|lmsg}: {$startTime|getDate:short} {"TRANS_THROUGH"|lmsg} {$endTime|getDate:short}
{"TRANS_TOTALS"|lmsg}
{if $productTotals}
{foreach key="currencyID" item="amt" from=$totals} {"TRANS_CURRENCY"|lmsg} {"TRANS_AMOUNT"|lmsg} {/foreach} {"TRANS_CURRENCY_$currencyID"|lmsg} {$amt|getAmount:$currencyID}
{"TRANS_PRODUCT_TOTALS"|lmsg}
{/if} {if $usageTotals}
{foreach key="currencyID" item="prods" from=$productTotals} {"TRANS_PRODUCT"|lmsg} {"TRANS_AMOUNT"|lmsg} % {foreach key="productID" item="amt" from=$prods} {if $amt>0} {"TRANS_CURRENCY_$currencyID"|lmsg} {/if} {/foreach} {/foreach} ({$productID}) {$productNames.$productID} {$amt|getAmount:$currencyID} {include file="$tplDirectory/widgets/miniProgressBar.tpl" containerWidth="100" containerColor="#CCCCCC" barWidth=$amt*100/$productTotalAmount.$currencyID|ceil}
{"TRANS_PRODUCT_USAGE_TOTALS"|lmsg}
{/if}
{foreach key="currencyID" item="prods" from=$usageTotals} {"TRANS_PRODUCT"|lmsg} {"TRANS_AMOUNT"|lmsg} % {foreach key="productID" item="amt" from=$prods} {if $amt>0} {"TRANS_CURRENCY_$currencyID"|lmsg} {/if} {/foreach} {/foreach} ({$productID}) {$productNames.$productID} {$amt|getAmount:$currencyID} {include file="$tplDirectory/widgets/miniProgressBar.tpl" containerWidth="100" containerColor="#CCCCCC" barWidth=$amt*100/$usageTotalAmount.$currencyID|ceil}