From 51ac162642caa576ba81561f3456fb72c5a12295 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 28 Aug 2023 08:57:33 +0700 Subject: [PATCH] Fix date field --- system/controllers/prepaid.php | 2 + ui/ui/prepaid-edit.tpl | 69 ++++++++++++++++++---------------- ui/ui/reports-period.tpl | 10 +---- 3 files changed, 41 insertions(+), 40 deletions(-) diff --git a/system/controllers/prepaid.php b/system/controllers/prepaid.php index 8a9cb2d2..b3cf7e32 100644 --- a/system/controllers/prepaid.php +++ b/system/controllers/prepaid.php @@ -168,6 +168,7 @@ switch ($action) { $id_plan = _post('id_plan'); $recharged_on = _post('recharged_on'); $expiration = _post('expiration'); + $time = _post('time'); $id = _post('id'); $d = ORM::for_table('tbl_user_recharges')->find_one($id); @@ -182,6 +183,7 @@ switch ($action) { $d->plan_id = $id_plan; $d->recharged_on = $recharged_on; $d->expiration = $expiration; + $d->time = $time; $d->save(); Package::changeTo($username, $id_plan); _log('[' . $admin['username'] . ']: ' . 'Edit Plan for Customer ' . $d['username'] . ' to [' . $d['plan_name'] . '][' . Lang::moneyFormat($d['price']) . ']', 'Admin', $admin['id']); diff --git a/ui/ui/prepaid-edit.tpl b/ui/ui/prepaid-edit.tpl index 03abd043..d95009cc 100644 --- a/ui/ui/prepaid-edit.tpl +++ b/ui/ui/prepaid-edit.tpl @@ -3,57 +3,62 @@
-

{$_L['Recharge_Account']}

+
+

{$_L['Recharge_Account']}

+
- +
- -
- -
+ +
+ +
- -
- {foreach $p as $ps} - + {/foreach} -
+
- -
-
- - -
-
+ +
+ +
- -
-
- - -
-
+ +
+ +
+
+ +
-
-
- - Or {$_L['Cancel']} -
-
+
+
+ + Or {$_L['Cancel']} +
+
-{include file="sections/footer.tpl"} +{include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/ui/reports-period.tpl b/ui/ui/reports-period.tpl index 67a378b6..557c2932 100644 --- a/ui/ui/reports-period.tpl +++ b/ui/ui/reports-period.tpl @@ -10,19 +10,13 @@
-
- - -
+
-
- - -
+