-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.php
232 lines (193 loc) · 7.84 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?php
session_start();
$connect = mysqli_connect("localhost", "root", "", "sampath_store");
include "DBconnection.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Online Express</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body style="margin-top: -20px " >
<div class="header" style="overflow-y: scroll">
<div class="container">
<div class="navbar">
<div class="logo">
<h1 style="color:rgb(11, 52, 24);">Online Express <br> supermarket</h1>
</div>
<nav>
<ul style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, 'sans-serif';font-size: 18px">
<li><a class="active" href="index.php">Home</a></li>
<li><a class="active" href="ProductCB.php">Baverages</a></li>
<li><a href="ProductCB2.php">Cooking Essential</a></li>
<li><a href="ProductCB3.php">Fruits</a></li>
<li><a href="ProductCB4.php">Vegetables</a> </li>
<li><a href="aboutus.php">About</a></li>
<li><a href="contactus.php">Contact Us</a></li>
<li><a href="account.php">Account</a></li>
</ul>
</nav>
</div>
</div>
<div class="account-page">
<div class="container">
<div class="row">
<div class="col-2">
<img src="images/v1.png" width="100%">
</div>
<div class="col-2">
<div class="form-container" style="height: 600px">
<div class="form-btn">
<span onclick="login()">Login</span>
<span onclick="register()">Register</span>
</div>
<form id="Loginform" class="form" action="userlogin.php" method="post">
<input type="text" name="username" id="username" placeholder="username"required>
<input type="password" name="password" id="password" placeholder="password">
<button name="submit" type="submit" class="btn">Login</button>
<div class="panel-danger"><a href="adminaccount.php">Admin ? Log in Here</a></div>
</form>
<form id="Regform" method="post" action="userinsert.php">
<input type="text" id="CustomerName" name="CustomerName" placeholder="Customer Name" required>
<input type="text" id="Address" name="Address" placeholder="Address" required>
<input type="text" id="City" name="City" placeholder="City" required>
<input type="text" id="PostalCode" name="PostalCode" placeholder="PostalCode" required>
<input type="text" id="Country" name="Country" placeholder="Country" required>
<input type="email" id="email" name="email" placeholder="email" required>
<input type="password" id="password" name="password" placeholder="password" required>
<button type="submit" name="submit" class="btn" value="Register">Register </button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-----featured categories------>
<div class="catergories">
<div class="small-container">
<div class="row">
<div class="col-3">
<a href="PProductCB4.php"><img src="images/va01.png" alt="" ><figcaption style="text-align: center;font-size: 50px;">Vegetables</figcaption></a>
</div>
<div class="col-3">
<a href="ProductCB.php"><img src="images/c02.png" alt=""><figcaption style="text-align: center;font-size: 50px;">Baverages</figcaption></a>
</div>
<div class="col-3">
<a href="ProductCB3.php"><img src="images/f01.png" alt=""><figcaption style="text-align: center;font-size: 50px;">Fruits</figcaption></a>
</div>
</div>
</div>
</div>
<!-------offer-->
<div class="offer">
<div class="small-container">
<div class="row">
<div class="col-2">
<img src="images/Ban-TxHlZ0NqAe08-CO-DISCOUNT-STORE-WEB-BANNER-new (002).png" class="offer-img">
</div>
<div class="col-2">
<h1>Best Prices & Offers</h1>
<p>
Enjoy the same lowest prices as your local Online Express, Express & Food Hall store</p>
<a href="products.html" class="btn">buy now →</a>
</div>
</div>
</div>
</div>
<!----testimonial-->
<!-----brands------>
<div class="brands">
<div class="small-container">
<div class="row">
<div class="col-5">
<img src="images/logo-godrej.png" alt="">
</div>
<div class="col-5">
<img src="images/logo-coca-cola.png" alt="">
</div>
<div class="col-5">
<img src="images/logo-paypal.png" alt="">
</div>
<div class="col-5">
<img src="images/logo-philips.png" alt="">
</div>
</div>
</div>
</div>
<!----footer---->
<div class="footer">
<div class="container">
<div class="row">
<div class="footer-col-1">
<h3>Download our app </h3>
<p>Download app for android and ios mobile phones</p>
<div class="app-logo">
<img src="images/play-store.png" alt="">
<img src="images/app-store.png" alt="">
</div>
</div>
<div class="footer-col-2">
<img src="images/logo-white.png" alt="">
<p>Download app for android and ios mobile phones</p>
</div>
<div class="footer-col-3">
<h3>usful links</h3>
<ul>
<li>coupons</li>
<li>blog post</li>
<li>return policy</li>
<li>join affilitate</li>
</ul>
</div>
<div class="footer-col-4">
<h3>follow us</h3>
<ul>
<li>facebook</li>
<li>twiter</li>
<li>instagram</li>
<li>youtube</li>
</ul>
</div>
</div>
<hr>
<p class="copyright">copyright 2020 - </p>
</div>
</div>
</body>
</html>>>>>
<script type="text/javascript">
function conf()
{
var con=confirm("You Must Log In First. Thank You !");
}
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/slider.js"></script>
</body>
</html>
<script>
var Loginform = document.getElementById("Loginform");
var Regform = document.getElementById("Regform");
var indicator = document.getElementById("indicator");
function register(){
Regform.style.transform = "translateX(0px)";
Loginform.style.transform = "translateX(0px)";
indicator.style.transform = "translateX(100px)";
}
function login(){
Regform.style.transform = "translateX(300px)";
Loginform.style.transform = "translateX(300px)";
indicator.style.transform = "translateX(0px)";
}
</script>
</body>
</html>>>>>>>>>>>>>>>>>>>>