- {foreach $plans_balance as $plan}
+ {if $_c['radius_enable']}
+ {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 Lang::arrayCount($radius_pppoe)>0}
+
+ - {if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}
+ - {if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}
+
+
+ {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']} |
+
-
Buy
+
+ {if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
+
{Lang::T('Buy for friend')}
+ {/if}
{/foreach}
-
- {/if}
- {if $_c['radius_enable']}
-
-
- {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 $_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_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}
{/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 Validator::countRouterPlan($plans_hotspot, $router['name'])>0}
-
+
{foreach $plans_hotspot as $plan}
{if $router['name'] eq $plan['routers']}
-
+
@@ -194,13 +166,13 @@
{/if}
{if Validator::countRouterPlan($plans_pppoe,$router['name'])>0}
-
+
{foreach $plans_pppoe as $plan}
{if $router['name'] eq $plan['routers']}