{include file="sections/user-header.tpl"}
{Lang::T('Order Internet Package')}
{if $_c['radius_enable']} {if $_user['service_type'] == 'PPPoE'} {if Lang::arrayCount($radius_pppoe)>0}
{foreach $radius_pppoe as $plan}
{$plan['name_plan']}
{Lang::T('Type')} {$plan['type']}
{Lang::T('Price')} {Lang::moneyFormat($plan['price'])}
{Lang::T('Validity')} {$plan['validity']} {$plan['validity_unit']}
Buy {if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Pay With Balance')} {/if}
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Buy for friend')} {/if}
{/foreach}
{/if} {elseif $_user['service_type'] == 'Hotspot'} {if Lang::arrayCount($radius_hotspot)>0}
{foreach $radius_hotspot as $plan}
{$plan['name_plan']}
{Lang::T('Type')} {$plan['type']}
{Lang::T('Price')} {Lang::moneyFormat($plan['price'])}
{Lang::T('Validity')} {$plan['validity']} {$plan['validity_unit']}
Buy {if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Pay With Balance')} {/if}
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Buy for friend')} {/if}
{/foreach}
{/if} {elseif $_user['service_type'] == 'Others' || $_user['service_type'] == '' && (Lang::arrayCount($radius_pppoe)>0 || Lang::arrayCount($radius_hotspot)>0)} {if Lang::arrayCount($radius_pppoe)>0}
{foreach $radius_pppoe as $plan}
{$plan['name_plan']}
{Lang::T('Type')} {$plan['type']}
{Lang::T('Price')} {Lang::moneyFormat($plan['price'])}
{Lang::T('Validity')} {$plan['validity']} {$plan['validity_unit']}
Buy {if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Pay With Balance')} {/if}
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Buy for friend')} {/if}
{/foreach}
{/if} {if Lang::arrayCount($radius_hotspot)>0}
{foreach $radius_hotspot as $plan}
{$plan['name_plan']}
{Lang::T('Type')} {$plan['type']}
{Lang::T('Price')} {Lang::moneyFormat($plan['price'])}
{Lang::T('Validity')} {$plan['validity']} {$plan['validity_unit']}
Buy {if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Pay With Balance')} {/if}
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Buy for friend')} {/if}
{/foreach}
{/if} {/if} {/if} {foreach $routers as $router} {if Validator::isRouterHasPlan($plans_hotspot, $router['name']) || Validator::isRouterHasPlan($plans_pppoe, $router['name'])}
{$router['name']}
{if $router['description'] != ''}
{$router['description']}
{/if} {if $_user['service_type'] == 'Hotspot' && Validator::countRouterPlan($plans_hotspot, $router['name'])>0}
{if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}
{foreach $plans_hotspot as $plan} {if $router['name'] eq $plan['routers']}
{$plan['name_plan']}
{Lang::T('Type')} {$plan['type']}
{Lang::T('Price')} {Lang::moneyFormat($plan['price'])}
{Lang::T('Validity')} {$plan['validity']} {$plan['validity_unit']}
Buy {if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Pay With Balance')} {/if}
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Buy for friend')} {/if}
{/if} {/foreach}
{/if} {if $_user['service_type'] == 'PPPoE' && Validator::countRouterPlan($plans_pppoe,$router['name'])>0}
{if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}
{foreach $plans_pppoe as $plan} {if $router['name'] eq $plan['routers']}
{$plan['name_plan']}
{Lang::T('Type')} {$plan['type']}
{Lang::T('Price')} {Lang::moneyFormat($plan['price'])}
{Lang::T('Validity')} {$plan['validity']} {$plan['validity_unit']}
Buy {if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Pay With Balance')} {/if}
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Buy for friend')} {/if}
{/if} {/foreach}
{/if} {if $_user['service_type'] == 'Others' || $_user['service_type'] == '' && (Validator::countRouterPlan($plans_hotspot, $router['name'])>0 || Validator::countRouterPlan($plans_pppoe, $router['name'])>0)}
{if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}
{foreach $plans_hotspot as $plan} {if $router['name'] eq $plan['routers']}
{$plan['name_plan']}
{Lang::T('Type')} {$plan['type']}
{Lang::T('Price')} {Lang::moneyFormat($plan['price'])}
{Lang::T('Validity')} {$plan['validity']} {$plan['validity_unit']}
Buy {if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Pay With Balance')} {/if}
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Buy for friend')} {/if}
{/if} {/foreach}
{if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}
{foreach $plans_pppoe as $plan} {if $router['name'] eq $plan['routers']}
{$plan['name_plan']}
{Lang::T('Type')} {$plan['type']}
{Lang::T('Price')} {Lang::moneyFormat($plan['price'])}
{Lang::T('Validity')} {$plan['validity']} {$plan['validity_unit']}
Buy {if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Pay With Balance')} {/if}
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']} {Lang::T('Buy for friend')} {/if}
{/if} {/foreach}
{/if}
{/if} {/foreach}
{include file="sections/user-footer.tpl"}