-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
117 lines (114 loc) · 7.1 KB
/
profile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
include("header.php");
if (!isset($_SESSION['FOOD_USER_ID'])) {
redirect(FRONT_SITE_PATH . 'shop');
}
$getUserDetailsByid = getUserDetailsByid();
?>
<div class="myaccount-area pb-25 pt-50">
<div class="container">
<div class="row">
<div class="ml-auto mr-auto col-lg-9">
<div>
<h4>Referral Code: <?php echo $getUserDetailsByid['referral_code'] ?></h4><br />
<h4>Referral Link: <?php echo FRONT_SITE_PATH ?>login_register?referral_code=<?php echo $getUserDetailsByid['referral_code'] ?></h4><br />
</div>
<div class="checkout-wrapper">
<div id="faq" class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h5 class="panel-title"><span>1</span> <a data-toggle="collapse" data-parent="#faq" href="#my-account-1">Edit your account information </a></h5>
</div>
<div id="my-account-1" class="panel-collapse collapse show">
<div class="panel-body">
<form method="post" id="frmProfile">
<div class="billing-information-wrapper">
<div class="account-info-wrapper">
<h4>My Account Information</h4>
<h5>Your Personal Details</h5>
</div>
<div class="row">
<div class="col-lg- col-md-6">
<div class="billing-info">
<label>Name</label>
<input type="text" name="name" required value="<?php echo $getUserDetailsByid['name'] ?>">
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="billing-info">
<label>Mobile Number</label>
<input type="tel" name="mobile" required value="<?php echo $getUserDetailsByid['mobile'] ?>">
</div>
</div>
<div class="col-lg-12 col-md-12">
<div class="billing-info">
<label>Email Address</label>
<input type="email" value="<?php echo $getUserDetailsByid['email'] ?>" readonly>
</div>
</div>
</div>
<div class="billing-back-btn">
<div class="billing-back">
<a href=""><i class="ion-arrow-up-c"></i> back</a>
</div>
<div class="billing-btn">
<button type="submit" id="profile_submit">Save</button>
</div>
</div>
<div id="form_msg" style="color: green;margin-top: 4px;"></div>
</div>
<input type="hidden" name="type" value="profile" />
</form>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h5 class="panel-title"><span>2</span> <a data-toggle="collapse" data-parent="#faq" href="#my-account-2">Change your password </a></h5>
</div>
<div id="my-account-2" class="panel-collapse collapse">
<div class="panel-body">
<form method="post" id="frmPassword">
<div class="billing-information-wrapper">
<div class="account-info-wrapper">
<h4>Change Password</h4>
<h5>Your Password</h5>
</div>
<div class="row">
<div class="col-lg-12 col-md-12">
<div class="billing-info">
<label>Password</label>
<input type="password" name="old_password" required>
</div>
</div>
<div class="col-lg-12 col-md-12">
<div class="billing-info">
<label>New Password</label>
<input type="password" name="new_password" required>
</div>
</div>
</div>
<div class="billing-back-btn">
<div class="billing-back">
<a href=""><i class="ion-arrow-up-c"></i> back</a>
</div>
<div class="billing-btn">
<button type="submit" id="password_submit">Save</button>
</div>
</div>
<div id="password_form_msg" style="color: green;margin-top: 4px;"></div>
<input type="hidden" name="type" value="password" />
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include("footer.php");
?>