From 07dca885c1aaef997932b8200c4b83df5ffde027 Mon Sep 17 00:00:00 2001 From: sriramv Date: Wed, 21 Jun 2023 12:39:20 +0530 Subject: [PATCH] merge:GWM --- app/Controllers/Admin_controller.php | 5 +- app/Views/member_form.php | 164 +++++++++++++++++---------- app/Views/user_form.php | 44 ++++++- 3 files changed, 145 insertions(+), 68 deletions(-) diff --git a/app/Controllers/Admin_controller.php b/app/Controllers/Admin_controller.php index e9569c9..ac0caf8 100644 --- a/app/Controllers/Admin_controller.php +++ b/app/Controllers/Admin_controller.php @@ -721,9 +721,10 @@ class Admin_controller extends BaseController foreach ($creditsData as $row) { $date = new DateTime($row['created_at']); if($row['status'] == 'Success'){ + $style = 'style="color:green;"'; $cost = json_decode($row['transaction'] , true)['payment']['amount_money']['amount']; - }else{$cost='';} - $output .=''.$row['order_id'].''.$date->format('M d , Y').''.$row['transaction_id'].''.$cost.''.$row['member_name'].''.$row['status'].''; + }else{$cost=''; $style = 'style="color:red;"';} + $output .=''.$row['order_id'].''.$date->format('M d , Y').''.$row['transaction_id'].''.$cost.''.$row['member_name'].''.$row['status'].''; } echo $output .= ' '; } diff --git a/app/Views/member_form.php b/app/Views/member_form.php index e58db47..e5310f9 100644 --- a/app/Views/member_form.php +++ b/app/Views/member_form.php @@ -13,11 +13,106 @@ position: relative; z-index: 3; } - - + + assets/member_css/intlTelInput.css"> + + + - + +
@@ -70,7 +165,8 @@
- + +
@@ -223,67 +319,9 @@
+ diff --git a/app/Views/user_form.php b/app/Views/user_form.php index 1d16a65..fedb559 100644 --- a/app/Views/user_form.php +++ b/app/Views/user_form.php @@ -1,4 +1,12 @@ - + +assets/member_css/intlTelInput.css"> + + + + + + +
@@ -65,7 +73,8 @@
- + +
@@ -189,9 +198,38 @@ $(document).ready(function(){ } }); }); + +$(document).ready(function() { + var country_code = $('#country_code').val(); + var input = document.querySelector("#mobile"); + window.intlTelInput(input, { + // allowDropdown: false, + autoInsertDialCode: true, + // autoPlaceholder: "on", + dropdownContainer: document.body, + // excludeCountries: ["us"], + // formatOnDisplay: true, + // geoIpLookup: function(callback) { + // fetch("https://ipapi.co/json") + // .then(function(res) { return res.json(); }) + // .then(function(data) { callback(data.country_code); }) + // .catch(function() { callback("us"); }); + // }, + // hiddenInput: "full_number", + initialCountry: country_code || "ca", + // localizedCountries: { 'de': 'Deutschland' }, + // nationalMode: false, + // onlyCountries: ['us', 'gb', 'ch', 'ca', 'do'], + // placeholderNumberType: "MOBILE", + // preferredCountries: ['cn', 'jp'], + //separateDialCode: true, + showFlags: true, + utilsScript: "assets/member_js/utils.js" + }); + $('#mobile').inputmask('(999)-999-9999'); +}); - \ No newline at end of file