{include file="header.html"}
{if $user_accounts}
{if count($customer_phone_list) > 1} {trans("My phones:")} {else} {trans("My number:")} {/if} {trans("Date range:")} {trans("Connection type:")} {trans("Status:")}
{if count($customer_phone_list) > 1} {else if count($customer_phone_list) == 1} {assign var=tmp value=array_values($customer_phone_list)} {$tmp[0]} {else}
–––
{/if}
{trans("from")} {trans("to")}
{box title="Billing list"} {if $billings} {section name=i loop=$billings start=(($pagination->getCurrentPage()-1)*$pagination->getItemsPerPage()) max=$pagination->getItemsPerPage()} {/section} {assign var=pagin_result value=$pagination->getPages()} {if count($pagin_result.pages) > 1} {else} {/if} {else} {/if}
{trans("Begin time:")} {trans("Caller:")} {trans("Callee:")} {trans("Call begin time:")} {trans("Call answer time:")} {trans("Connection type:")} {trans("Status:")} {trans("Price:")} {trans("Others:")}
{$billings[i].begintime|date_format:"%e %B %Y %H:%M:%S"} {$billings[i].caller} {$billings[i].callee} {if $billings[i].callbegintime>60}{floor($billings[i].callbegintime/60)}min{/if} {$billings[i].callbegintime%60}s {if $billings[i].callanswertime>60}{floor($billings[i].callanswertime/60)}min{/if} {$billings[i].callanswertime%60}s {if $billings[i].type == CALL_OUTGOING} {trans("outgoing")} {elseif $billings[i].type == CALL_INCOMING} {trans("incoming")} {/if} {if $billings[i].status == CALL_BUSY} {trans("busy")} {elseif $billings[i].status == CALL_ANSWERED} {trans("answered")} {elseif $billings[i].status == CALL_NO_ANSWER} {trans("no answer")} {elseif $billings[i].status == CALL_SERVER_FAILED} {trans("server error")} {/if} {$billings[i].price|money_format} {if $billings[i].callanswertime} {if $billings[i].type == CALL_OUTGOING} {assign var=flags value=$billings[i].caller_flags} {else if $billings[i].type == CALL_INCOMING} {assign var=flags value=$billings[i].callee_flags} {else} {assign var=flags value=0} {/if} {if $flags & CALL_FLAG_CUSTOMER_RECORDING} {documentview id="{$billings[i].id}" type="audio/mp3" name="{trans("ID:")} {$billings[i].id}, {trans("Date:")} {$billings[i].begintime|date_format:"%e %B %Y %H:%M:%S"}" url="?m=voip&record={$billings[i].id}" text=""} {/if} {/if}
{include file="pagination.html"}
{trans("No such data for selected period.")}
{/box}
{else}
{trans("You don't have any VoIP account.")}
{/if}


{if $user_accounts} {/if} {include file="footer.html"}