From 21a5212120efdc758abe872d74fa82b997993c22 Mon Sep 17 00:00:00 2001 From: nestict Date: Sat, 24 May 2025 12:36:52 +0200 Subject: [PATCH] Upload files to "system/plugin/ui" Signed-off-by: nestict --- system/plugin/ui/.DS_Store | Bin 0 -> 6148 bytes system/plugin/ui/c2b_overview.tpl | 162 +++++++++++++ system/plugin/ui/c2b_settings.tpl | 234 +++++++++++++++++++ system/plugin/ui/captive_portal_settings.tpl | 193 +++++++++++++++ 4 files changed, 589 insertions(+) create mode 100644 system/plugin/ui/.DS_Store create mode 100644 system/plugin/ui/c2b_overview.tpl create mode 100644 system/plugin/ui/c2b_settings.tpl create mode 100644 system/plugin/ui/captive_portal_settings.tpl diff --git a/system/plugin/ui/.DS_Store b/system/plugin/ui/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 + /* Styles for overall layout and responsiveness */ + body { + background-color: #f8f9fa; + font-family: 'Arial', sans-serif; + } + + .container { + margin-top: 20px; + background-color: #d8dfe5; + border-radius: 8px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + padding: 20px; + max-width: 98%; + flex-wrap: wrap; + justify-content: space-between; + align-items: center; + } + + /* Styles for table and pagination */ + .table { + width: 100%; + margin-bottom: 1rem; + background-color: #fff; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + } + + .table th { + vertical-align: middle; + border-color: #dee2e6; + background-color: #343a40; + color: #fff; + } + + .table td { + vertical-align: middle; + border-color: #dee2e6; + } + + .table-striped tbody tr:nth-of-type(odd) { + background-color: rgba(0, 0, 0, 0.05); + } + + .table-hover tbody tr:hover { + background-color: rgba(0, 0, 0, 0.075); + color: #333; + font-weight: bold; + transition: background-color 0.3s, color 0.3s; + } + + .pagination .page-item .page-link { + color: #007bff; + background-color: #fff; + border: 1px solid #dee2e6; + margin: 0 2px; + padding: 6px 12px; + transition: background-color 0.3s, color 0.3s; + } + + .pagination .page-item .page-link:hover { + background-color: #e9ecef; + color: #0056b3; + } + + .pagination .page-item.active .page-link { + z-index: 1; + color: #fff; + background-color: #007bff; + border-color: #007bff; + } + + .dataTables_wrapper .dataTables_paginate .paginate_button { + display: inline-block; + padding: 5px 10px; + margin-right: 5px; + border: 1px solid #ccc; + background-color: #fff; + color: #333; + cursor: pointer; + } + + +{if isset($message)} +
+ +
{$message}
+
+{/if} + +
+ +
+
+

{Lang::T('Payment History')}

+ +
+ + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + {foreach $payments as $payment} + + + + + + + + + + + + + {/foreach} + +
{Lang::T('Customer Name')}{Lang::T('Transaction Type')}{Lang::T('Transaction Time')}{Lang::T('Amount Paid')}{Lang::T('Package Name')}{Lang::T('Package Price')}{Lang::T('Status')}{Lang::T('Bill Ref Number')}{Lang::T('Company Balance')}{Lang::T('Date')}
{$payment.FirstName}{$payment.TransactionType}{$payment.TransTime}{$payment.TransAmount}{$payment.PackageName}{$payment.PackagePrice}{$payment.TransactionStatus} + {$payment.BillRefNumber}{$payment.OrgAccountBalance}{$payment.CreatedAt}
+
+
+
+ +
+ +
+ + + + +{include file="sections/footer.tpl"} \ No newline at end of file diff --git a/system/plugin/ui/c2b_settings.tpl b/system/plugin/ui/c2b_settings.tpl new file mode 100644 index 0000000..e167320 --- /dev/null +++ b/system/plugin/ui/c2b_settings.tpl @@ -0,0 +1,234 @@ +{include file="sections/header.tpl"} + + + +{if isset($message)} +
+ +
{$message}
+
+{/if} +
+
+
+
+
{Lang::T('M-Pesa C2B Payment Gateway')}
+
+
+ +
+ + + {Lang::T('Sandbox')} {Lang::T('is for testing purpose, + please switch to')} {Lang::T('Live')} {Lang::T('in + production.')} + +
+
+ +
+ + +
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + Select the version of the API you want to + use. +
+
+
+ +
+ + How will the system identify your customers. BillRefNumber must be a unique identity +
+
+
+ +
+ +
+
+ {if $_c['c2b_registered'] && $_c['mpesa_c2b_env']!='sandbox'} +
+ +
+ +
+
+ {else} +
+ +
+ Click to Register Mpesa + C2B URL + Click only after you have saved + the changes. +
+
+ {/if} +
+
+ +
+
+ +
+

Accept Insufficient Fee:

+

If Enable the money customer sent will be convert to customer balance, but if disabled the system will reject it.
It requires Validation URL

+

Note:

+

Before click on Register URL
+ Make sure you have fill the required fields
+

+
+
+
+
+
+
+ + +{include file="sections/footer.tpl"} \ No newline at end of file diff --git a/system/plugin/ui/captive_portal_settings.tpl b/system/plugin/ui/captive_portal_settings.tpl new file mode 100644 index 0000000..0d65f50 --- /dev/null +++ b/system/plugin/ui/captive_portal_settings.tpl @@ -0,0 +1,193 @@ +{include file="sections/header.tpl"} +
+

+ +

+ +
+ +
+
+ +
+
USAGE:
+                
+                    
Upload your sliders in Slider Setting +
Go General Settings and setup as per your requirements +
Then download your the login.html by clicking on download login page +
Then upload the downloaded login.html file to your mikrotik router +
Make sure you add your webiste URL in mikrotik hotspot wall garden +
If your website is https i will suggest you to add certificate to your router + +
+
+
+ + +{include file="sections/footer.tpl"} \ No newline at end of file