+
+
+
+
+
+
+ {Lang::T('Type')} |
+ {$plan['type']} |
+
+
+ {Lang::T('Price')} |
+ {Lang::moneyFormat($plan['price'])} |
+
+
+ {Lang::T('Validity')} |
+ {$plan['validity']} {$plan['validity_unit']} |
+
+
+
+
- {/if}
- {elseif $_user['service_type'] == 'Hotspot'}
- {if Lang::arrayCount($radius_hotspot)>0}
-
- - {if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}
- - {if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}
-
-
- {foreach $radius_hotspot as $plan}
-
-
-
-
-
-
-
- {Lang::T('Type')} |
- {$plan['type']} |
-
-
- {Lang::T('Price')} |
- {Lang::moneyFormat($plan['price'])} |
-
-
- {Lang::T('Validity')} |
- {$plan['validity']} {$plan['validity_unit']} |
-
-
-
-
-
-
- {if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
-
{Lang::T('Buy for friend')}
- {/if}
-
-
-
- {/foreach}
+
+
+ {if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' &&
+ $_user['balance']>=$plan['price']}
+
{Lang::T('Buy for friend')}
+ {/if}
- {/if}
- {elseif $_user['service_type'] == 'Others' || $_user['service_type'] == '' && (Lang::arrayCount($radius_pppoe)>0 || Lang::arrayCount($radius_hotspot)>0)}
-
- - {if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}
- - {if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}
-
- {if Lang::arrayCount($radius_pppoe)>0}
-
- {foreach $radius_pppoe as $plan}
-
-
-
-
-
-
-
- {Lang::T('Type')} |
- {$plan['type']} |
-
-
- {Lang::T('Price')} |
- {Lang::moneyFormat($plan['price'])} |
-
-
- {Lang::T('Validity')} |
- {$plan['validity']} {$plan['validity_unit']} |
-
-
-
-
-
-
- {if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
-
{Lang::T('Buy for friend')}
- {/if}
-
-
-
- {/foreach}
+
+
+ {/foreach}
+
+ {/if}
+ {elseif $_user['service_type'] == 'Hotspot'}
+ {if Lang::arrayCount($radius_hotspot)>0}
+
+ {foreach $radius_hotspot as $plan}
+
+
+
+
+
+
+
+
+ {Lang::T('Type')} |
+ {$plan['type']} |
+
+
+ {Lang::T('Price')} |
+ {Lang::moneyFormat($plan['price'])} |
+
+
+ {Lang::T('Validity')} |
+ {$plan['validity']} {$plan['validity_unit']} |
+
+
+
+
- {/if}
- {if Lang::arrayCount($radius_hotspot)>0}
-
- - {if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}
- - {if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}
-
-
- {foreach $radius_hotspot as $plan}
-
-
-
-
-
-
-
- {Lang::T('Type')} |
- {$plan['type']} |
-
-
- {Lang::T('Price')} |
- {Lang::moneyFormat($plan['price'])} |
-
-
- {Lang::T('Validity')} |
- {$plan['validity']} {$plan['validity_unit']} |
-
-
-
-
-
-
- {if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
-
{Lang::T('Buy for friend')}
- {/if}
-
-
-
- {/foreach}
+
+
+ {if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' &&
+ $_user['balance']>=$plan['price']}
+
{Lang::T('Buy for friend')}
+ {/if}
- {/if}
- {/if}
+
+
+ {/foreach}
+
+ {/if}
+ {elseif $_user['service_type'] == 'Others' || $_user['service_type'] == '' && (Lang::arrayCount($radius_pppoe)>0
+ || Lang::arrayCount($radius_hotspot)>0)}
+
+ - {if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}
+ - {if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}
+
+ {if Lang::arrayCount($radius_pppoe)>0}
+
+ {foreach $radius_pppoe as $plan}
+
+
+
+
+
+
+
+
+ {Lang::T('Type')} |
+ {$plan['type']} |
+
+
+ {Lang::T('Price')} |
+ {Lang::moneyFormat($plan['price'])} |
+
+
+ {Lang::T('Validity')} |
+ {$plan['validity']} {$plan['validity_unit']} |
+
+
+
+
+
+
+
+ {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}
+
+ - {if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}
+ - {if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}
+
+
+ {foreach $radius_hotspot as $plan}
+
+
+
+
+
+
+
+
+ {Lang::T('Type')} |
+ {$plan['type']} |
+
+
+ {Lang::T('Price')} |
+ {Lang::moneyFormat($plan['price'])} |
+
+
+ {Lang::T('Validity')} |
+ {$plan['validity']} {$plan['validity_unit']} |
+
+
+
+
+
+
+
+ {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'])}
-
-
- {if $router['description'] != ''}
-
- {$router['description']}
-
- {/if}
- {if $_user['service_type'] == 'Hotspot' && Validator::countRouterPlan($plans_hotspot, $router['name'])>0}
-
-
- {foreach $plans_hotspot as $plan}
- {if $router['name'] eq $plan['routers']}
-
-
-
-
-
-
-
- {Lang::T('Type')} |
- {$plan['type']} |
-
-
- {Lang::T('Price')} |
- {Lang::moneyFormat($plan['price'])} |
-
-
- {Lang::T('Validity')} |
- {$plan['validity']} {$plan['validity_unit']} |
-
-
-
-
-
-
- {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}
-
-
- {foreach $plans_pppoe as $plan}
- {if $router['name'] eq $plan['routers']}
-
-
-
-
-
-
-
- {Lang::T('Type')} |
- {$plan['type']} |
-
-
- {Lang::T('Price')} |
- {Lang::moneyFormat($plan['price'])} |
-
-
- {Lang::T('Validity')} |
- {$plan['validity']} {$plan['validity_unit']} |
-
-
-
-
-
-
- {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)}
-
-
- {foreach $plans_hotspot as $plan}
- {if $router['name'] eq $plan['routers']}
-
-
-
-
-
-
-
- {Lang::T('Type')} |
- {$plan['type']} |
-
-
- {Lang::T('Price')} |
- {Lang::moneyFormat($plan['price'])} |
-
-
- {Lang::T('Validity')} |
- {$plan['validity']} {$plan['validity_unit']} |
-
-
-
-
-
-
- {if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
-
{Lang::T('Buy for friend')}
- {/if}
-
-
-
- {/if}
- {/foreach}
-
-
-
- {foreach $plans_pppoe as $plan}
- {if $router['name'] eq $plan['routers']}
-
-
-
-
-
-
-
- {Lang::T('Type')} |
- {$plan['type']} |
-
-
- {Lang::T('Price')} |
- {Lang::moneyFormat($plan['price'])} |
-
-
- {Lang::T('Validity')} |
- {$plan['validity']} {$plan['validity_unit']} |
-
-
-
-
-
-
- {if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
-
{Lang::T('Buy for friend')}
- {/if}
-
-
-
- {/if}
- {/foreach}
-
- {/if}
-
+ {if Validator::isRouterHasPlan($plans_hotspot, $router['name']) || Validator::isRouterHasPlan($plans_pppoe,
+ $router['name'])}
+
+
+ {if $router['description'] != ''}
+
+ {$router['description']}
+
{/if}
+ {if $_user['service_type'] == 'Hotspot' && Validator::countRouterPlan($plans_hotspot, $router['name'])>0}
+
+
+ {foreach $plans_hotspot as $plan}
+ {if $router['name'] eq $plan['routers']}
+
+
+
+
+
+
+
+
+ {Lang::T('Type')} |
+ {$plan['type']} |
+
+
+ {Lang::T('Price')} |
+ {Lang::moneyFormat($plan['price'])} |
+
+
+ {Lang::T('Validity')} |
+ {$plan['validity']} {$plan['validity_unit']} |
+
+
+
+
+
+
+
+ {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}
+
+
+ {foreach $plans_pppoe as $plan}
+ {if $router['name'] eq $plan['routers']}
+
+
+
+
+
+
+
+
+ {Lang::T('Type')} |
+ {$plan['type']} |
+
+
+ {Lang::T('Price')} |
+ {Lang::moneyFormat($plan['price'])} |
+
+
+ {Lang::T('Validity')} |
+ {$plan['validity']} {$plan['validity_unit']} |
+
+
+
+
+
+
+
+ {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)}
+
+
+ {foreach $plans_hotspot as $plan}
+ {if $router['name'] eq $plan['routers']}
+
+
+
+
+
+
+
+
+ {Lang::T('Type')} |
+ {$plan['type']} |
+
+
+ {Lang::T('Price')} |
+ {Lang::moneyFormat($plan['price'])} |
+
+
+ {Lang::T('Validity')} |
+ {$plan['validity']} {$plan['validity_unit']} |
+
+
+
+
+
+
+
+ {if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' &&
+ $_user['balance']>=$plan['price']}
+
{Lang::T('Buy for friend')}
+ {/if}
+
+
+
+ {/if}
+ {/foreach}
+
+
+
+ {foreach $plans_pppoe as $plan}
+ {if $router['name'] eq $plan['routers']}
+
+
+
+
+
+
+
+
+ {Lang::T('Type')} |
+ {$plan['type']} |
+
+
+ {Lang::T('Price')} |
+ {Lang::moneyFormat($plan['price'])} |
+
+
+ {Lang::T('Validity')} |
+ {$plan['validity']} {$plan['validity_unit']} |
+
+
+
+
+
+
+
+ {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}