{* Color Values for Usage Charts *}
{assign var="usageUploadUsedChartColor" value="3072F3"}
{assign var="usageUploadLimitChartColor" value="C6D9FD"}
{assign var="usageDownloadUsedChartColor" value="FF0000"}
{assign var="usageDownloadLimitChartColor" value="FFC6A5"}
{assign var="usageCombinedUsedChartColor" value="FF9900"}
{assign var="usageCombinedLimitChartColor" value="FCD59C"}
{assign var="usageTimeUsedChartColor" value="3072F3"}
{assign var="usageTimeLimitChartColor" value="C6D9FD"}
{* *}
{include file="defaultlayer/piwi/includes/htmldoctype_selector.html"}
{include file="defaultlayer/piwi/includes/htmlheader_selector.html"}
{include file="defaultlayer/piwi/includes/pageheader_selector.html"}
{include file="defaultlayer/piwi/includes/sidebar_selector.html"}
{if $headerdata.staff.display && !$headerdata.customer}
{else}
Account Info
- {$headerdata.customer.name|truncate:38|escape:'html'}
- {$headerdata.customer.attn|truncate:38|escape:'html'}
- {$headerdata.customer.addr1|truncate:38|escape:'html'}
{if $headerdata.customer.addr2|escape:'html'}
- {$headerdata.customer.addr2|truncate:38|escape:'html'}
{/if}
-
{$headerdata.customer.city|escape:'html'}, {$headerdata.customer.state|escape:'html'}
{$headerdata.customer.zip|escape:'html'} {if $headerdata.customer.country}{$headerdata.customer.country|escape:'html'}{/if}
- {$headerdata.customer.phonemasked|escape:'html'}
-
{$headerdata.customer.activeStatus|escape:'html'} {if $headerdata.staff.display}Edit{/if}
-
{$headerdata.customer.username|escape:'html'}
-
********** Edit
-
{$headerdata.customer.email|truncate:40|escape:'html'} Edit
{if $headerdata.customer.blockuser == 'Y'}
-
{$headerdata.customer.timeleft|escape:'html'} {$headerdata.customer.blocktypeDisplay|escape:'html'} Add More Block Time
{/if}
Date |
Invoice # |
Due |
{ if !$invoicedata}
No recent invoices |
{ else }
{ assign var=rowType value='odd'}
{ foreach from=$invoicedata item=thisInvoice name=invoices}
{ if $smarty.foreach.invoices.iteration<=5}
{ if $rowType == 'odd'}
{ if $owner}
{ else}
{ /if}
{ else}
{ if $owner}
{ else}
{ /if}
{ /if}
{$thisInvoice.date|date_format|escape:'html'} |
{$thisInvoice.invoice|escape:'html'} |
${$thisInvoice.dueDisplay|escape:'html'} |
{ if $rowType == 'odd'}
{ assign var=rowType value='even'}
{ else}
{ assign var=rowType value='odd'}
{ /if}
{ /if}
{ /foreach}
{ /if}
Date |
Type |
{ if !$paymentdata}
No recent payments |
{ else}
{ assign var=rowType value='odd'}
{ foreach from=$paymentdata item=thisPayment name=payments}
{ if $smarty.foreach.payments.iteration<=5}
{ if $thisPayment.pmt_bounceid > 0}
{ if $rowType == 'odd'}
{ else}
{ /if}
{ else}
{ if $rowType == 'odd'}
{ else}
{ /if}
{ /if}
{$thisPayment.pmt_date|date_format|escape:'html'} |
{ if $thisPayment.pmt_bounceid > 0}
BOUNCED |
{ else}
{$thisPayment.p_type|escape:'html'} |
{ /if}
${$thisPayment.pmt_totalDisplay|escape:'html'} |
{ if $rowType == 'odd'}
{ assign var=rowType value='even'}
{ else}
{ assign var=rowType value='odd'}
{ /if}
{ /if}
{ /foreach}
{ /if}
Frequency |
Name |
{ if !$custrates}
No assigned rates |
{ else}
{ assign var=rowType value='odd'}
{ foreach from=$custrates item=thisRate name=rates}
{ if $smarty.foreach.rates.iteration<=5}
{ if $rowType == 'odd'}
{ else}
{ /if}
{$thisRate.cr_frequency|escape:'html'} month{if $thisRate.cr_frequency!=1}s{/if} |
{$thisRate.rg_name|escape:'html'} |
{ if $rowType == 'odd'}
{ assign var=rowType value='even'}
{ else}
{ assign var=rowType value='odd'}
{ /if}
{ /if}
{ /foreach}
{ /if}
{if $headerdata.helpdesk.URL}
{ if $ticketarray}
{$ticketarray.sqlreturn.0.st_name} Tickets View More
Ticket |
Problem |
{ assign var=rowType value='odd'}
{ foreach from=$ticketarray.sqlreturn item=thisTicket name=tickets}
{ if $smarty.foreach.tickets.iteration<=5}
{ if $rowType == 'odd'}
{ if $headerdata.staff.display}
{ else}
{ /if}
{ else}
{ if $headerdata.staff.display}
{ else}
{ /if}
{ /if}
{$thisTicket.tkt_id} |
{$thisTicket.tkt_problem} |
{ if $rowType == 'odd'}
{ assign var=rowType value='even'}
{ else}
{ assign var=rowType value='odd'}
{ /if}
{ /if}
{ /foreach}
{ /if}
{/if}
{ if $radiusdata[0].limit_count > 0 || $radiusdata[0].up_down_used > 0}
{ if $smarty.server.https == 'on'}
{ assign var="chartURL" value="https://chart.googleapis.com/chart"}
{ else}
{ assign var="chartURL" value="http://chart.googleapis.com/chart"}
{ /if}
{* Round values for display purposes*}
{ assign var="up_used" value=$radiusdata[0].up_used|round:"2"}
{ assign var="down_used" value=$radiusdata[0].down_used|round:"2"}
{ assign var="up_down_used" value=$radiusdata[0].up_down_used|round:"2"}
{ assign var="up_limit" value=$radiusdata[0].up_limit|round:"2"}
{ assign var="down_limit" value=$radiusdata[0].down_limit|round:"2"}
{ assign var="up_down_limit" value=$radiusdata[0].up_down_limit|round:"2"}
{ assign var="up_limit_remaining" value=$radiusdata[0].up_limit_remaining|round:"2"}
{ assign var="down_limit_remaining" value=$radiusdata[0].down_limit_remaining|round:"2"}
{ assign var="up_down_limit_remaining" value=$radiusdata[0].up_down_limit_remaining|round:"2"}
{ assign var="maximum_value" value=$radiusdata[0].maximum_value}
Usage for: {$radiusdata[0].username} View More
{ if $radiusdata[0].limit_count eq 1}
{ if $radiusdata[0].up_limit gt 0}
{* Pie Chart showing Upload only *}
{ elseif $radiusdata[0].down_limit gt 0}
{* Pie Chart showing Download only *}
{ elseif $radiusdata[0].up_down_limit gt 0}
{* Pie Chart showing Combined only *}
{ elseif $radiusdata[0].time_limit gt 0}
{* Pie Chart showing Time only *}
{ /if}
{ else}
{* Bar Chart showing Upload, Download and Combined *}
{ /if}
{ /if}
{ /if}
{ if $svcmaxedtopups}
Usage Limits Exceeded View More
{ assign var=rowType value='odd'}
{ foreach from=$svcmaxedtopups item=thisTopup}
{ if $rowType == 'odd'}
{ else}
{ /if}
{$thisTopup.d_data} |
{ if $rowType == 'odd'}
{ assign var=rowType value='even'}
{ else}
{ assign var=rowType value='odd'}
{ /if}
{ /foreach}
{ /if}
{include file="defaultlayer/piwi/includes/pagefooter_selector.html"}