-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathacct_created.php
More file actions
418 lines (398 loc) · 12.6 KB
/
acct_created.php
File metadata and controls
418 lines (398 loc) · 12.6 KB
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
<!DOCTYPE HTML>
<html>
<head>
<style>
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
font-family: 'Nunito', sans-serif;
color: #384047;
}
form {
max-width: 300px;
margin: 10px auto;
padding: 10px 20px;
background: #f4f7f8;
border-radius: 8px;
}
h1 {
text-align: center;
padding: 0 0 20px 0;
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea,
select{
background: rgba(255,255,255,0.1);
background-color: #e8eeef;
border-radius: 3px;
font-size: 16px;
height: auto;
width: 100%;
padding: 5px;
margin: 0;
margin-bottom: 30px;
outline: 0;
color: #8a97a0;
box-shadow: 0 1px 0 rgba(0,0,0, .03) inset;
/* - border transition around a text field on focus - */
border: 2px solid;
border-color: #ccc;
transition: border-color, .6s;
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
border-color: #5fcf80;
}
label {
display: block;
margin-bottom: 8px;
}
input[type="radio"],
input[type="checkbox"] {
margin: 0 4px 8px 0;
}
select {
height: 32px;
padding: 6px;
}
label.light {
display: inline;
font-weight: 300;
}
button {
width: 100%;
background-color: #18C9D2;
color: #fff;
font-size: 18px;
text-align: center;
font-style: normal;
border: 1px solid #18C9D2;
border-radius: 5px;
border-width: 1px 1px 3px;
padding: 19px 39px 18px 39px;
box-shadow: 0 -1px 0 rgba(255,255,255,0.1) inset;
margin-bottom: 10px;
}
fieldset {
border: none;
margin-bottom: 30px;
}
.number {
display: inline-block;
height: 30px;
width: 30px;
color: #fff;
font-size: .8em;
text-align: center;
line-height: 30px;
margin-right: 4px;
border-radius: 100%;
background-color: #18C9D2;
text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
legend {
font-size: 1.4em;
margin-bottom: 10px;
}
@media screen and (min-width: 480px) {
form {
max-width: 480px;
}
}
</style>
<title>Ecommerce Project</title>
<script type="applijegleryion/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- Custom Theme files -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<script src="js/jquery-1.11.1.min.js"></script>
<!-- start menu -->
<link href="css/megamenu.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="js/megamenu.js"></script>
<script>$(document).ready(function(){$(".megamenu").megamenu();});</script>
<script src="js/menu_jquery.js"></script>
<script src="js/simpleCart.min.js"> </script>
<!--web-fonts-->
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,300italic,600,700' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto+Slab:300,400,700' rel='stylesheet' type='text/css'>
<!--//web-fonts-->
<script src="js/scripts.js" type="text/javascript"></script>
<script src="js/modernizr.custom.js"></script>
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<!--/script-->
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top},900);
});
});
</script>
<script id="jsbin-javascript">
(function (global) {
if(typeof (global) === "undefined")
{
throw new Error("window is undefined");
}
var _hash = "!";
var noBackPlease = function () {
global.location.href += "#";
// making sure we have the fruit available for juice....
// 50 milliseconds for just once do not cost much (^__^)
global.setTimeout(function () {
global.location.href += "!";
}, 50);
};
// Earlier we had setInerval here....
global.onhashchange = function () {
if (global.location.hash !== _hash) {
global.location.hash = _hash;
}
};
global.onload = function () {
noBackPlease();
// disables backspace on page except on input fields and textarea..
document.body.onkeydown = function (e) {
var elm = e.target.nodeName.toLowerCase();
if (e.which === 8 && (elm !== 'input' && elm !== 'textarea')) {
e.preventDefault();
}
// stopping event bubbling up the DOM tree..
e.stopPropagation();
};
};
})(window);
</script>
<!-- the jScrollPane script -->
<script type="text/javascript" src="js/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" id="sourcecode">
$(function()
{
$('.scroll-pane').jScrollPane();
});
</script>
<!-- //the jScrollPane script -->
</head>
<body>
<!--start-home-->
<!-- header_top -->
<div class="top_bg" id="home">
<div class="container">
<div class="header_top">
<div class="top_right">
<ul>
<li><a href="signuplogout.php">Register an Account</a></li>
<li><a href="#">
<?php
error_reporting(0);
session_start();
$username = $_SESSION['username'];
$id = $_SESSION['id'];
$_SESSION['id'] = $id;
if(isset($_SESSION['username']))
echo '<span>Welcome -- '.$username.' </span>';
?></a>
</li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
<div class="top_left">
<span class="top_right"> <a class="header_top" style ="color:white;" href="feedback.php">Feedback .</style></a> | Call us : +91 988888888</span>
</div>
<div class="clearfix"> </div>
</div>
</div>
</div>
<!-- header -->
<div class="header_bg">
<div class="container">
<div class="header">
<div class="head-t">
<div class="logo">
<a href="#"><h1>Ecommerce <span>Shop</span></h1> </a>
</div>
<div class="header_right">
<div class="cart box_1">
<a href="#">
<div>
<a href="#"><img src="images/cart.gif" width="80px" height="80px" /></a></div>
<div class="clearfix"> </div>
</div>
</div>
<div class="clearfix"></div>
</div>
<!--start-header-menu-->
<ul class="megamenu skyblue">
<li><a class="color1" href="#">Home</a></li>
<li><a class="color6" href="#">SHOES</a></li>
<li><a class="color8" href="#">T-SHIRT</a></li>
<li><a class="color9" href="#">WATCHES</a></li>
</li>
</ul>
</div>
</div>
</div>
<!--start-content-->
<!--products-->
<div class="products">
<?php
include 'connection.php';
if (isset($_POST['user_name']) && isset($_POST['user_password']))
{
$username = $_POST['user_name'];
$email = $_POST['user_email'];
$password = $_POST['user_password'];
$mobile = $_POST['user_mobile'];
$result = mysqli_query($conn,"SELECT username,mobile,email FROM users WHERE (username='$username' OR mobile='$mobile' OR email='$email')");
if ($result && mysqli_num_rows($result) > 0)
{
echo '<center><strong> SORRY!!!! Username OR Email OR Mobile Number already present</strong></center><br>';
echo '<center><h1><a href="signup.php">Click here to Register again</a></h1></center>';
?>
<script type="text/javascript">
alert("Login is compulsary. If NEW user REGISTER first. If EXISTING user LOGIN first. Unautorised user will not be able to Shop.");
</script>
<?php
}
else
{
$sql = "Insert into users (username,password,mobile,email) values ('$username','$password','$mobile','$email')";
$result = mysqli_query($conn,$sql) or mysqli_error($conn);
echo '<center><strong>User successfully created</strong></center><br>';
echo '<center><h1><a href="login.php">Click here to Login</a></h1></center>';
}
}
?>
</div>
<div class="collection-section">
<h3 class="tittle">Related Products</h3>
<div class="fashion-info">
<div class="col-md-4 fashion-grids">
<figure class="effect-bubba">
<img src="images/f1.jpg" alt=""/>
<figcaption>
<h4>Ecomm Shop</h4>
<p class="cart"><a href="#">Shop</a></p>
</figcaption>
</figure>
</div>
<div class="col-md-4 fashion-grids">
<figure class="effect-bubba">
<img src="images/f5.jpg" alt=""/>
<figcaption>
<h4>Ecomm Shop</h4>
<p class="cart"><a href="#">Shop</a></p>
</figcaption>
</figure>
</div>
<div class="col-md-4 fashion-grids">
<figure class="effect-bubba">
<img src="images/f9.jpg" alt=""/>
<figcaption>
<h4>Ecomm Shop</h4>
<p class="cart"><a href="#">Shop</a></p>
</figcaption>
</figure>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<!-- //products -->
<!--start-image-cursuals-->
<div class="scroll-slider">
<div class="container">
<div class="nbs-flexisel-container"><div class="nbs-flexisel-inner"><ul class="flexiselDemo3 nbs-flexisel-ul" style="left: -253.6px; display: block;">
<li onclick="location.href='#';" class="nbs-flexisel-item" style="width: 253.6px;"><img src="images/c3.png" alt=""/></li><li onclick="location.href='#';" class="nbs-flexisel-item" style="width: 253.6px;"><img src="images/c4.png" alt=""/></li><li onclick="location.href='#';" class="nbs-flexisel-item" style="width: 253.6px;"><img src="images/c1.png" alt=""/></li><li onclick="location.href='#';" class="nbs-flexisel-item" style="width: 253.6px;"><img src="images/c2.png" alt=""/></li><li onclick="location.href='#';" class="nbs-flexisel-item" style="width: 253.6px;"><img src="images/c3.png" alt=""/></li><li onclick="location.href='#';" class="nbs-flexisel-item" style="width: 253.6px;"><img src="images/c4.png" alt=""/></li><li onclick="location.href='#';" class="nbs-flexisel-item" style="width: 253.6px;"><img src="images/c1.png" alt=""/></li><li onclick="location.href='#';" class="nbs-flexisel-item" style="width: 253.6px;"><img src="images/c2.png" alt=""/></li></ul><div class="nbs-flexisel-nav-left" style="top: 21.5px;"></div><div class="nbs-flexisel-nav-right" style="top: 21.5px;"></div></div></div>
<div class="clearfix"> </div>
<!--start-image-->
<script type="text/javascript" src="js/jquery.flexisel.js"></script>
<!--//end-->
<script type="text/javascript">
$(window).load(function() {
$(".flexiselDemo3").flexisel({
visibleItems: 5,
animationSpeed: 1000,
autoPlay: true,
autoPlaySpeed: 3000,
pauseOnHover: true,
enableResponsiveBreakpoints: true,
responsiveBreakpoints: {
portrait: {
changePoint:480,
visibleItems: 2
},
landscape: {
changePoint:640,
visibleItems: 3
},
tablet: {
changePoint:768,
visibleItems: 3
}
}
});
});
</script>
<!---->
</div>
</div>
<!--//end-bottom-->
<!--start-footer-->
<div class="footer">
<div class="container">
<div class="footer-top">
<div class="col-md-2 footer-left">
<h3>About Us</h3>
<ul>
<li><a href="#">Feedback from Users</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#">.</a></li>
</ul>
</div>
<div class="clearfix"> </div>
</div>
</div>
</div>
<ul class="socials">
<li><a class="soc1" href="#"></a></li>
<li><a class="soc2" href="#"></a></li>
<li><a class="soc3" href="#"></a></li>
</ul>
<!--/start-copyright-->
<div class="copy">
<div class="container">
<p>© 2016 All Rights Reserved </p>
</div>
</div>
<!--//end-copyright-->
<!--end-footer-->
<!--//end-content-->
<!--start-smooth-scrolling-->
<script type="text/javascript">
$(document).ready(function() {
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/
$().UItoTop({ easingType: 'easeOutQuart' });
});
</script>
<a href="#home" id="toTop" class="scroll" style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a>
</body>
</html>