From a84095b13b97ff8e01442101dcd4165b74597163 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Wed, 7 Sep 2022 14:44:20 +0700 Subject: [PATCH] SMS OTP registration --- system/uploads/sms/index.html | 0 ui/ui/admin.tpl | 13 ++-- ui/ui/login.tpl | 8 +-- ui/ui/pppoe-add.tpl | 6 +- ui/ui/pppoe-edit.tpl | 2 + ui/ui/prepaid-edit.tpl | 6 +- ui/ui/register-otp.tpl | 106 +++++++++++++++++++++++++++++++++ ui/ui/register-rotp.tpl | 79 ++++++++++++++++++++++++ ui/ui/register.tpl | 4 +- ui/ui/routers-add.tpl | 80 ++++++++++++------------- ui/ui/routers-edit.tpl | 101 +++++++++++++++---------------- ui/ui/sections/user-header.tpl | 39 +++++++----- ui/ui/user-dashboard.tpl | 3 + ui/ui/user-order.tpl | 4 +- ui/ui/user-orderHotspot.tpl | 47 +++++++++++++++ ui/ui/user-orderPPOE.tpl | 30 ++++++++++ ui/ui/voucher.tpl | 4 +- 17 files changed, 404 insertions(+), 128 deletions(-) create mode 100644 system/uploads/sms/index.html create mode 100644 ui/ui/register-otp.tpl create mode 100644 ui/ui/register-rotp.tpl create mode 100644 ui/ui/user-orderHotspot.tpl create mode 100644 ui/ui/user-orderPPOE.tpl diff --git a/system/uploads/sms/index.html b/system/uploads/sms/index.html new file mode 100644 index 0000000..e69de29 diff --git a/ui/ui/admin.tpl b/ui/ui/admin.tpl index 541ed45..d85d4e8 100644 --- a/ui/ui/admin.tpl +++ b/ui/ui/admin.tpl @@ -5,7 +5,7 @@ {$_title} - {$_L['Login']} - + @@ -13,14 +13,13 @@ - + - - + @@ -50,7 +49,7 @@
@@ -59,13 +58,13 @@
-
+ - + diff --git a/ui/ui/login.tpl b/ui/ui/login.tpl index 199141f..a5321dc 100644 --- a/ui/ui/login.tpl +++ b/ui/ui/login.tpl @@ -5,14 +5,14 @@ {$_title} - {$_L['Login']} - + - + @@ -57,7 +57,7 @@ + diff --git a/ui/ui/pppoe-add.tpl b/ui/ui/pppoe-add.tpl index 8a0edb8..d4c99b0 100644 --- a/ui/ui/pppoe-add.tpl +++ b/ui/ui/pppoe-add.tpl @@ -5,7 +5,7 @@
{$_L['Add_Plan']}
-
+
@@ -36,6 +36,8 @@
@@ -60,7 +62,7 @@
- +
diff --git a/ui/ui/pppoe-edit.tpl b/ui/ui/pppoe-edit.tpl index b40db21..0d32913 100644 --- a/ui/ui/pppoe-edit.tpl +++ b/ui/ui/pppoe-edit.tpl @@ -36,6 +36,8 @@
diff --git a/ui/ui/prepaid-edit.tpl b/ui/ui/prepaid-edit.tpl index 6d28857..87901bd 100644 --- a/ui/ui/prepaid-edit.tpl +++ b/ui/ui/prepaid-edit.tpl @@ -24,7 +24,7 @@
- +
@@ -43,10 +43,10 @@
- +
- + Or {$_L['Cancel']}
diff --git a/ui/ui/register-otp.tpl b/ui/ui/register-otp.tpl new file mode 100644 index 0000000..07db896 --- /dev/null +++ b/ui/ui/register-otp.tpl @@ -0,0 +1,106 @@ + + + + + + {$_title} - {$_L['Register']} + + + + + + + + + + + + + + + + + + + + + +
+ +
+

{$_c['CompanyName']}

+
+
+ {if isset($notify)} +
+
+ {$notify} +
+
+ {/if} +
+
+
+
{$_L['Registration_Info']}
+
+ {include file="$_path/../pages/Registration_Info.html"} +
+
+
+ +
+
+
1. {$_L['Register_Member']}
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+
+
+
2. {$_L['Password']}
+
+
+
+ + +
+
+ + +
+
+
+ +
+ +
+
+
+
+
+ +
+
+ + + \ No newline at end of file diff --git a/ui/ui/register-rotp.tpl b/ui/ui/register-rotp.tpl new file mode 100644 index 0000000..8c23bd9 --- /dev/null +++ b/ui/ui/register-rotp.tpl @@ -0,0 +1,79 @@ + + + + + + {$_title} - {$_L['Register']} + + + + + + + + + + + + + + + + + + + + + +
+ +
+

{$_c['CompanyName']}

+
+
+ {if isset($notify)} +
+
+ {$notify} +
+
+ {/if} +
+
+
+
+
+
{$_L['Registration_Info']}
+
+ {include file="$_path/../pages/Registration_Info.html"} +
+
+
+
+
+
+
1. {$_L['Register_Member']}
+
+
+
+ + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/ui/ui/register.tpl b/ui/ui/register.tpl index 5e3d63e..c15f8d3 100644 --- a/ui/ui/register.tpl +++ b/ui/ui/register.tpl @@ -55,7 +55,7 @@
- +
@@ -71,7 +71,7 @@
-
2. {$_L['Register_Member']}
+
2. {$_L['Password']}
diff --git a/ui/ui/routers-add.tpl b/ui/ui/routers-add.tpl index 92d97b5..439016a 100644 --- a/ui/ui/routers-add.tpl +++ b/ui/ui/routers-add.tpl @@ -6,46 +6,46 @@
{$_L['Add_Router']}
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- - -
-
- - Or {$_L['Cancel']} -
-
-
+
+
+ +
+ +

{Lang::T('Name of Area that router operated')}

+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +

{Lang::T('Explain Coverage of router')}

+
+
+
+
+ + Or {$_L['Cancel']} +
+
+
diff --git a/ui/ui/routers-edit.tpl b/ui/ui/routers-edit.tpl index 550989a..7e224ea 100644 --- a/ui/ui/routers-edit.tpl +++ b/ui/ui/routers-edit.tpl @@ -1,55 +1,56 @@ {include file="sections/header.tpl"} -
-
-
-
{$_L['Edit_Router']}
-
+
+
+
+
{$_L['Edit_Router']}
+
+
+ +
+ +
+ +

{Lang::T('Name of Area that router operated')}

+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +

{Lang::T('Explain Coverage of router')}

+
+
- - -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
+
+
+ + Or {$_L['Cancel']} +
+
+ +
+
+
+
+
{include file="sections/footer.tpl"} diff --git a/ui/ui/sections/user-header.tpl b/ui/ui/sections/user-header.tpl index 60f2908..993601a 100644 --- a/ui/ui/sections/user-header.tpl +++ b/ui/ui/sections/user-header.tpl @@ -5,7 +5,7 @@ {$_title} - + @@ -22,11 +22,10 @@ - - - + + - + {if isset($xheader)} {$xheader} {/if} @@ -40,7 +39,7 @@
  • - +
  • - +
  • - + {$_L['Voucher']} @@ -130,11 +129,19 @@
  • {$_L['List_Activated_Voucher']}
  • -
  • - +
  • + - {$_L['Order_Voucher']} + ORDER + +
  • @@ -148,9 +155,9 @@
  •  
  • - + - +
    diff --git a/ui/ui/user-order.tpl b/ui/ui/user-order.tpl index dcce65e..801bb49 100644 --- a/ui/ui/user-order.tpl +++ b/ui/ui/user-order.tpl @@ -2,9 +2,9 @@
    -
    {$_L[$pageHeader]}
    +
    {$_L['Order_Voucher']}
    - {include file="$_path/../pages/$PageFile.html"} + {include file="$_path/../pages/Order_Voucher.html"}
    diff --git a/ui/ui/user-orderHotspot.tpl b/ui/ui/user-orderHotspot.tpl new file mode 100644 index 0000000..47ca9b0 --- /dev/null +++ b/ui/ui/user-orderHotspot.tpl @@ -0,0 +1,47 @@ +{include file="sections/user-header.tpl"} +
    +
    +
    +
    Order Hotspot
    +
    + {foreach $routers as $router} +
    +
    {$router['name']}
    + {if $router['description'] != ''} +
    + {$router['description']} +
    + {/if} +
    +
    + {foreach $plans as $plan} + {if $router['name'] eq $plan['routers']} +
    +
    +
    {$plan['name_plan']}
    +
    + + + + + + + + + + + +
    Price{$plan['price']}
    Validity{$plan['validity']} {$plan['validity_unit']}
    +
    + +
    +
    + {/if} + {/foreach} +
    + {/foreach} +
    +
    +{include file="sections/user-footer.tpl"} diff --git a/ui/ui/user-orderPPOE.tpl b/ui/ui/user-orderPPOE.tpl new file mode 100644 index 0000000..7ff6adc --- /dev/null +++ b/ui/ui/user-orderPPOE.tpl @@ -0,0 +1,30 @@ +{include file="sections/user-header.tpl"} +
    +
    +
    +
    Order PPOE
    +
    + {foreach $routers as $router} +
    +
    {$router['name']}
    +
    + {$router['description']} +
    +
    +
    +
    +
    +
    Router Name
    +
    + Router Description +
    + +
    +
    +
    + {/foreach} +
    +
    +{include file="sections/user-footer.tpl"} diff --git a/ui/ui/voucher.tpl b/ui/ui/voucher.tpl index 381792d..4ead80b 100644 --- a/ui/ui/voucher.tpl +++ b/ui/ui/voucher.tpl @@ -33,7 +33,7 @@
    - + @@ -47,7 +47,7 @@ {foreach $d as $ds} - +
    ID {$_L['Type']} {$_L['Routers']}
    {$ds['id']}{$ds['id']} {$ds['type']} {$ds['routers']} {$ds['name_plan']}