From 36addf472e43f8e8d2dbca54c1d79312e76c41d5 Mon Sep 17 00:00:00 2001 From: suseendhiran17 <58357088+suseendhiran17@users.noreply.github.com> Date: Thu, 8 Jun 2023 12:03:02 +0530 Subject: [PATCH] susee --- app/Controllers/Member_controller.php | 5 ++++- app/Controllers/Sendmail_controller.php | 3 ++- app/Views/checkout.php | 4 ++-- app/Views/member_form.php | 18 ++++++++--------- app/Views/memberaccess.php | 27 +++++++++++++++---------- app/Views/myaccount.php | 12 +++++++---- app/Views/payment.php | 6 +++--- 7 files changed, 44 insertions(+), 31 deletions(-) diff --git a/app/Controllers/Member_controller.php b/app/Controllers/Member_controller.php index 8f9e918..7310d3a 100644 --- a/app/Controllers/Member_controller.php +++ b/app/Controllers/Member_controller.php @@ -336,7 +336,10 @@ class Member_controller extends BaseController $user_data = $this->MemberModel->where('md5(id)', $id)->find(); $this->session->setTempdata('id',$user_data[0]['id'],3); $this->session->setTempdata('email',$user_data[0]['email'],3); - $this->session->setTempdata('mail_success', "Email verification sucessfully",3); + if(!$user_data[0]['password'] == null) + $this->session->setTempdata('mail_success', "Email verification sucessfull",3); + else + $this->session->setTempdata('mail_success', "Email already verified . Please set password",3); return view('changepassword.php'); } } diff --git a/app/Controllers/Sendmail_controller.php b/app/Controllers/Sendmail_controller.php index ea44189..88969fa 100644 --- a/app/Controllers/Sendmail_controller.php +++ b/app/Controllers/Sendmail_controller.php @@ -225,7 +225,8 @@ class Sendmail_controller extends BaseController else { // Show error message - echo 'Email already verified.'; + // echo 'Email already verified.'; + return redirect()->to(base_url()."set_password/".md5($user_data[0]['id'])); } } else diff --git a/app/Views/checkout.php b/app/Views/checkout.php index 6801011..2202cd9 100644 --- a/app/Views/checkout.php +++ b/app/Views/checkout.php @@ -230,11 +230,11 @@ $web_payment_sdk_url = $_ENV["ENVIRONMENT"] === Environment::PRODUCTION ? "https

PST (%):

-

$

+

$

GST (%):

-

$

+

$

Order Total:
diff --git a/app/Views/member_form.php b/app/Views/member_form.php index 5dfacee..7c5ab61 100644 --- a/app/Views/member_form.php +++ b/app/Views/member_form.php @@ -79,30 +79,30 @@
- - + --> +
- - + --> +
- - + --> +
diff --git a/app/Views/memberaccess.php b/app/Views/memberaccess.php index 07968e9..ae6d085 100644 --- a/app/Views/memberaccess.php +++ b/app/Views/memberaccess.php @@ -70,7 +70,7 @@

-

Credit Available

+ Credit Available

'; } else { echo '

Credits Available

'; } ?>
@@ -90,7 +90,7 @@ = 0 ; $i--) { ?> - format('d-M-Y'); ?> + format('M-d-Y'); ?> '.$credit_data[$i]['package_name'].'

'; ?> -

Expiry Date:

+

Expiry Date:format('M-d-Y'); ?>

0) echo ' '; @@ -117,10 +117,10 @@ $value) { if($value['running_balance'] != 0) { ?>
-
No of Credit:
+
Credits:
-
Expiry Date:
+
Expiry Date: format('M-d-Y'); ?>
@@ -239,7 +239,13 @@
>
- +
+
+ + +

@@ -248,10 +254,6 @@
-
-
- -
save
@@ -272,7 +274,10 @@

- +
diff --git a/app/Views/myaccount.php b/app/Views/myaccount.php index f356cd1..0c1f631 100644 --- a/app/Views/myaccount.php +++ b/app/Views/myaccount.php @@ -47,9 +47,13 @@
" role="form" class="parsley-examples">

Create Account

-
- - +
+ + +
+
+ +
@@ -91,7 +95,7 @@
- + " class="forget-pwd">Forgot your password?
diff --git a/app/Views/payment.php b/app/Views/payment.php index 4f6e1c0..cdafc3f 100644 --- a/app/Views/payment.php +++ b/app/Views/payment.php @@ -43,7 +43,7 @@
-
Transactions Date
+
Transaction Date
@@ -99,7 +99,7 @@
PST(%)
-
$
+
$
@@ -108,7 +108,7 @@
GST(%)
-
$
+
$