From 9ba7a1c003219601006c725d85b8b4bb8fdbbfd7 Mon Sep 17 00:00:00 2001 From: nestict Date: Sat, 24 May 2025 12:26:02 +0200 Subject: [PATCH] Upload files to "ui/ui" Signed-off-by: nestict --- ui/ui/user-selectGateway.tpl | 77 +++++++++++++++++++ ui/ui/user-sendPlan.tpl | 67 ++++++++++++++++ ui/ui/users-edit.tpl | 144 +++++++++++++++++++++++++++++++++++ ui/ui/users-view.tpl | 72 ++++++++++++++++++ ui/ui/voucher.tpl | 113 +++++++++++++++++++++++++++ 5 files changed, 473 insertions(+) create mode 100644 ui/ui/user-selectGateway.tpl create mode 100644 ui/ui/user-sendPlan.tpl create mode 100644 ui/ui/users-edit.tpl create mode 100644 ui/ui/users-view.tpl create mode 100644 ui/ui/voucher.tpl diff --git a/ui/ui/user-selectGateway.tpl b/ui/ui/user-selectGateway.tpl new file mode 100644 index 0000000..f565f26 --- /dev/null +++ b/ui/ui/user-selectGateway.tpl @@ -0,0 +1,77 @@ + + {include file="sections/user-header.tpl"} +
+
+
+
{Lang::T('Available Payment Gateway')}
+ +
+
{Lang::T('Package Details')}
+
    +
  • + {Lang::T('Plan Name')} {$plan['name_plan']} +
  • + {if $plan['is_radius'] or $plan['routers']} +
  • + {Lang::T('Location')} {if + $plan['is_radius']}Radius{else}{$plan['routers']}{/if} +
  • + {/if} +
  • + {Lang::T('Type')} {if $plan['prepaid'] eq + 'yes'}Prepaid{else}Postpaid{/if} + {$plan['type']} +
  • +
  • + {Lang::T('Plan Price')} {if $using eq + 'zero'}{Lang::moneyFormat(0)}{else}{Lang::moneyFormat($plan['price'])}{/if} +
  • + {if $plan['validity']} +
  • + {Lang::T('Plan Validity')} {$plan['validity']} + {$plan['validity_unit']} +
  • + {/if} +
+
{Lang::T('Summary')}
+
    + {if $tax} +
  • + {Lang::T('Tax')} {Lang::moneyFormat($tax)} +
  • +
  • + {Lang::T('Total')} ({Lang::T('Plan Price')} + {Lang::T('Tax')}){Lang::moneyFormat($plan['price']+$tax)} +
  • + {else} +
  • + {Lang::T('Total')} + {Lang::moneyFormat($plan['price'])} +
  • + {/if} +
+
+
+ {Lang::T('Cancel')} +
+ +
+
+
+
+ {include file="sections/user-footer.tpl"} diff --git a/ui/ui/user-sendPlan.tpl b/ui/ui/user-sendPlan.tpl new file mode 100644 index 0000000..fb3ac4e --- /dev/null +++ b/ui/ui/user-sendPlan.tpl @@ -0,0 +1,67 @@ +{include file="sections/user-header.tpl"} + +
+
+
+
+
{$plan['name_plan']}
+
+ + + + + + + {if $add_cost>0} + {foreach $bills as $k => $v} + + + + + {/foreach} + + + + + {/if} + {if $tax > 0} + + + + + {/if} + + + + + + + + + +
{Lang::T('Type')}{$plan['type']}
{$k}{Lang::moneyFormat($v)}
{Lang::T('Additional Cost')}{Lang::moneyFormat($add_cost)}
{Lang::T('Tax')}{Lang::moneyFormat($tax)}
{Lang::T('Price')}{if $add_cost>0} + {Lang::T('Additional Cost')}{/if}{if + $tax>0} + {Lang::T('Tax')}{/if} + {Lang::moneyFormat($plan['price'])}
{Lang::T('Validity')}{$plan['validity']} {$plan['validity_unit']}
+
+ +
+
+
+{include file="sections/user-footer.tpl"} \ No newline at end of file diff --git a/ui/ui/users-edit.tpl b/ui/ui/users-edit.tpl new file mode 100644 index 0000000..94bb94c --- /dev/null +++ b/ui/ui/users-edit.tpl @@ -0,0 +1,144 @@ +{include file="sections/header.tpl"} + +
+
+
+
+
+
{Lang::T('Profile')}
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
{Lang::T('Credentials')}
+
+ {if ($_admin['id']) neq ($d['id'])} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ {/if} +
+ +
+ +
+
+
+ +
+ + {Lang::T('Keep Blank to do not change Password')} +
+
+
+ +
+ + {Lang::T('Keep Blank to do not change Password')} +
+
+
+
+
+
+
+ + Or {Lang::T('Cancel')} +
+
+ +{literal} + +{/literal} +{include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/ui/users-view.tpl b/ui/ui/users-view.tpl new file mode 100644 index 0000000..6519e55 --- /dev/null +++ b/ui/ui/users-view.tpl @@ -0,0 +1,72 @@ +{include file="sections/header.tpl"} + +
+
+
+
+ {if $d['user_type'] == "Sales"}
{else}
{/if} +
+
{$d['fullname']}
+
+
    +
  • + {Lang::T('Username')} {$d['username']} +
  • +
  • + {Lang::T('Phone Number')} {$d['phone']} +
  • +
  • + {Lang::T('Email')} {$d['email']} +
  • +
  • + {Lang::T('City')} {$d['city']} +
  • +
  • + {Lang::T('Sub District')} {$d['subdistrict']} +
  • +
  • + {Lang::T('Ward')} {$d['ward']} +
  • +
  • + {Lang::T('User Type')} {$d['user_type']} +
  • +
+
+ +
+
+ {if $d['user_type'] == "Sales" && $d['root'] neq ''} +
+
+
Agent - {$agent['fullname']}
+
+
    +
  • + {Lang::T('Phone Number')} {$agent['phone']} +
  • +
  • + {Lang::T('Email')} {$agent['email']} +
  • +
  • + {Lang::T('City')} {$agent['city']} +
  • +
  • + {Lang::T('Sub District')} {$agent['subdistrict']} +
  • +
  • + {Lang::T('Ward')} {$agent['ward']} +
  • +
+
+
+
+ {/if} +
+ +{include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/ui/voucher.tpl b/ui/ui/voucher.tpl new file mode 100644 index 0000000..dfdffe4 --- /dev/null +++ b/ui/ui/voucher.tpl @@ -0,0 +1,113 @@ +{include file="sections/header.tpl"} +
+
+
+
+
+ {if in_array($_admin['user_type'],['SuperAdmin','Admin'])} + + {/if} +   +
+
+
+
+ +
+
+ +
+
+ Print +
+
+
  +
+
+ + + + + + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + + + + + {/foreach} + +
ID{Lang::T('Type')}{Lang::T('Routers')}{Lang::T('Plan Name')}{Lang::T('Code Voucher')}{Lang::T('Status Voucher')}{Lang::T('Customer')}{Lang::T('Generated By')}{Lang::T('Manage')}
{$ds['id']}{$ds['type']}{$ds['routers']}{$ds['name_plan']} + {$ds['code']}{if $ds['status'] eq '0'} {else} + {/if}{if $ds['user'] eq '0'} - + {else}{$ds['user']} + {/if}{if $ds['generated_by']} + {$admins[$ds['generated_by']]} + {else} - + {/if} + + {if $ds['status'] neq '1'} +   {Lang::T('View')}   + {/if} + {if in_array($_admin['user_type'],['SuperAdmin','Admin'])} + + {/if} +
+
+ +
+
+
+
+
+{include file="sections/footer.tpl"} \ No newline at end of file