-
Notifications
You must be signed in to change notification settings - Fork 2
/
account.php
148 lines (145 loc) · 5.98 KB
/
account.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<?php
session_start();
$conn = mysqli_connect("localhost", "root", "", "cashback");
if (!$conn) {
die("database server error");
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
<script type="text/javascript" src="javascript/jquery.js"></script>
<script type="text/javascript" src="javascript/myscript.js"></script>
<title>Manage Account</title>
</head>
<body>
<div class="navbar">
<div class="col-md-5 heading"><h3><a href="index.php">Earning Shop</a></h3></div>
<div class="col-md-7 links">
<div class="col-md-4"></div>
<p class="linksp">
<?php if(isset($_SESSION['name'])) { ?>
<a href="account.php?account">My Account</a>
<a href="logout.php">Signout</a>
<a href="">How it Works</a>
<span class="menubar"><i class="fa fa-bars" style="color:white; font-size:20px;"></i></span>
<div class="openmenu">
<ul>
<li style="text-align:center;"><a href="">All Products</a></li>
<li style="text-align:center;"><a href="">All deals</a></li>
<li style="text-align:center;"><a href="#categories">Categories</a></li>
<li style="text-align:center;"><a href="">About us</a></li>
</ul>
</div>
</p>
</div>
</div>
<div class="clearfix"></div>
<!-----------------------------------------------Body------------------------------------------------------------->
<h3>My Account</h3><br>
<?php if(isset($_GET['account'])) { ?>
<div>
<div class="col-md-3">
<div class="account_lhs">
<p style="border-left: 2.5px solid #ff2e2e;"><a href="account.php?account">My Account</a></p>
<p><a href="account.php?wallet">My wallet</a></p>
<p><a href="account.php?request">Payment Request</a></p>
<p><a href="account.php?changepassword">Change Password</a></p>
</div>
</div>
<div class="col-md-9">
<div class="account_rhs">
<p style="font-size:20px; padding:0px;">Personal Details</p><hr>
<p>Name : <?php echo $_SESSION['name'] ?></p>
<p>Email : <?php echo $_SESSION['mail'] ?></p>
<br>
<h4>Payment Details</h4>
<form action="paymentdet.php" method="post">
<p><input type="text" name="mobile" placeholder="paytm Number"></p>
<p><input type="text" name="bankholdername" Placeholder="Bank Account Holder Name"></p>
<p><input type="text" name="bankaccountnumber" placeholder="Account Number"></p>
<p><input type="text" name="ifsc" placeholder="Ifsc Code"></p>
<p><input type="text" name="bankname" placeholder="Bank Name"></p>
<p><input type="submit" value="Submit" class="btn btn submit" style="border:none"></p>
</form>
<form action="">
<p><input type="text" name="orderid" placeholder = "Enter order Id of the product you purchased"></p>
<p><input type="submit" value="Submit" class="btn btn submit" style="border:none"></p>
</form>
</div>
</div>
</div>
<?php }
if(isset($_GET['wallet'])) { ?>
<div>
<div class="col-md-3">
<div class="account_lhs">
<p><a href="account.php?account">My Account</a></p>
<p style="border-left: 2.5px solid #ff2e2e;"><a href="account.php?wallet">My wallet</a></p>
<p><a href="account.php?request">Payment Request</a></p>
<p><a href="account.php?changepassword">Change Password</a></p>
</div>
</div>
<div class="col-md-9">
<div calss="wallet_rhs">
<h4>Cashback Points</h4>
<hr>
<p>You wave earned <?php echo $_SESSION['points']; ?> Points</p>
<br>
<p>Collect 200 points to transfer them in your bank account.</p>
</div>
</div>
</div>
<?php }
if(isset($_GET['request'])) { ?>
<div>
<div class="col-md-3">
<div class="account_lhs">
<p><a href="account.php?account">My Account</a></p>
<p><a href="account.php?wallet">My wallet</a></p>
<p style="border-left: 2.5px solid #ff2e2e;"><a href="account.php?request">Payment Request</a></p>
<p><a href="account.php?changepassword">Change Password</a></p>
</div>
</div>
<div class="col-md-9">
<div class="request_rhs">
<h4>Redeem Points in Your Account.</h4><hr>
<p>You wave earned <span id="points"><?php echo $_SESSION['points']; ?></span> Points</p>
<a href="request.php" id="request"><button class="btn">Request Transfer</button></a>
</div>
</div>
</div>
<?php }
if(isset($_GET['changepassword'])) {?>
<div>
<div class="col-md-3">
<div class="account_lhs">
<p><a href="account.php?account">My Account</a></p>
<p><a href="account.php?wallet">My wallet</a></p>
<p><a href="account.php?request">Payment Request</a></p>
<p style="border-left: 2.5px solid #ff2e2e;"><a href="account.php?changepassword">Change Password</a></p>
</div>
</div>
<div class="col-md-9">
<div class="changepassword_RHS">
<h4>Change Password</h4><hr>
<form action="changepassword.php" method="post">
<p><input type="password" name="currentpass" placeholder = "Enter Current Password"></p>
<p><input type="password" name="newpass" placeholder = "Enter new Password" id="newpass"></p>
<p><input type="password" name="confpass" placeholder = "Confirm new Password" id="confnewpass"></p>
<p><input type="submit" value="Change Password" id="changepassword" class="btn btn submit" style="border:none"></p>
</form>
</div>
</div>
</div>
<?php }
}
else{
header('location:index.php');
}
?>
</body>
</html>