-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsoles.php
More file actions
315 lines (294 loc) · 13.2 KB
/
consoles.php
File metadata and controls
315 lines (294 loc) · 13.2 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
<?php
// session_start();
include 'database/session.php';
// include 'database/consoledb.php';
if($login_session == 'guest')
header('Location:pleaselogin.php');
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="img/favicon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>CONSOLE WARS</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="viewport" content="width=device-width" />
<link href="css/bootstrap.css" rel="stylesheet" />
<link href="css/custom.css" rel="stylesheet" />
<link href="css/landing-page.css" rel="stylesheet"/>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400,300' rel='stylesheet' type='text/css'>
<link href="css/pe-icon-7-stroke.css" rel="stylesheet" />
<style type="text/css">
body
{
background: #ffffff url(img/news.jpg) repeat-x fixed center top;
}
</style>
</head>
<body class="landing-page" >
<nav class="navbar navbar-transparent navbar-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button id="menu-toggle" type="button" class="navbar-toggle" data-toggle="collapse" >
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar bar1"></span>
<span class="icon-bar bar2"></span>
<span class="icon-bar bar3"></span>
</button>
<a>
<div class="logo-container">
<div class="logo">
<a href="index.php"><img height="50" src="img/logo.jpg" alt="Console Wars"></a>
</div>
<div class="brand">
<a href="index.php"><span style="color:white">Console wars</span></a>
</div>
</div>
</a>
</div>
<div class="collapse navbar-collapse" id="example" >
<ul class="nav navbar-nav navbar-right" >
<li >
<?php
$y=$_SESSION['var'];
if($y=='ps3'){
echo '<li ><a href="database/ps4.php" style="font-size:20px;">PS4</a></li>';
echo '<li><a href="database/xbox.php" style="font-size:20px;">X-BOX 360</a></li>';
echo '<li><a href="database/xbox1.php" style="font-size:20px;">X-BOX ONE</a></li>';
}else if($y=='ps4'){
echo '<li><a href="database/ps3.php" style="font-size:20px;">PS3</a></li>';
echo '<li><a href="database/xbox.php" style="font-size:20px;">X-BOX 360</a></li>';
echo '<li><a href="database/xbox1.php" style="font-size:20px;">X-BOX ONE</a></li>';
}else if($y=='xbox360'){
echo '<li><a href="database/ps3.php" style="font-size:20px;">PS3</a></li>';
echo '<li><a href="database/ps4.php" style="font-size:20px;">PS4</a></li>';
echo '<li><a href="database/xbox1.php" style="font-size:20px;">X-BOX ONE</a></li>';
}else if($y='xboxone'){
echo '<li><a href="database/ps3.php" style="font-size:20px;">PS3</a></li>';
echo '<li><a href="database/ps4.php" style="font-size:20px;">PS4</a></li>';
echo '<li><a href="database/xbox.php" style="font-size:20px;">X-BOX 360</a></li>';
}
?>
</li>
<li>
<a href="cart.php" style="font-size:15px;">
<i class="fa fa-shopping-cart"></i>
Cart<div class="numberCircle"><?php
$query=mysql_query('select count(*) from cart where user_id='.$_SESSION['user_id']);
$row=mysql_fetch_row($query);
echo $row[0];
?></div>
</a>
</li>
<li>
<a href="database/logout.php" style="font-size:15px;">
<i class="fa fa-sign-out"></i>
Logout
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="wrapper">
<div class="parallax filter-gradient gray">
<div class="parallax-background">
<img src="img/bg.jpg">
</div>
<div class= "container">
<div class="row">
<div class="col-md-5 hidden-xs">
<div class="parallax-image">
<?php
$y=$_SESSION['var'];
if($y=='ps3'){
echo '<img width="400" height="400" src="img/ps3.jpg">';
}else if($y=='ps4'){
echo '<img height="300" src="img/ps4.jpg">';
}else if($y=='xbox360'){
echo '<img src="img/xbox360.jpg">';
}else if($y=='xboxone'){
echo '<img src="img/x1.jpg">';
}
?>
<!-- <img height="1000" src="http://upload.wikimedia.org/wikipedia/commons/a/ab/Xbox-360-Arcade-wController.jpg"> -->
</div>
</div>
<div class="col-md-6 col-md-offset-1">
<div class="description">
<h2>
<?php
$y=$_SESSION['var'];
if($y=='ps3'){
echo 'PLAYSTATION 3';
}else if($y=='ps4'){
echo 'PLAYSTATION 4';
}else if($y=='xbox'){
echo 'X BOX 360';
}else if($y=='xboxone'){
echo 'X BOX ONE';
}
?>
</h2>
<br>
<h5>Be amazed by the best gaming list page on the web! Your new or old console deserves an amazing page to show all the games that are made for it. </h5>
</div>
</div>
</div>
</div>
</div>
<div class="section section-gray section-clients">
<div class="container text-center">
<h4 class="header-text">Friends in high places</h4>
<p>
ARE GAMES COME FROM ALL SORT OF BRANDS<br>
</p>
<div class="logos">
<ul class="list-unstyled">
<li ><img src="img/rocktar.png"/></li>
<li ><img src="img/sony.jpg"/></li>
<li ><img src="img/valve.jpg"/></i>
<li ><img src="img/naughtydog.jpg"/></li>
<li ><img src="img/ubisoft.jpg"/></li>
<li ><img src="img/ea.jpg"/></li>
</ul>
</div>
</div>
</div>
<div class="container">
<h1><center><span style="color:#FF6600;">GAME LIST</span></center></h1>
<br><br>
<ul>
<?php
include 'database/consoledb.php';
gamelist();
?>
<!-- <li><p>Witcher 3<a href="" class="btn btn-danger pull-right" >ORDER</a></p></li>
<li><p>Fifa 15<a href="" class="btn btn-danger pull-right" >ORDER</a></p></li -->
</ul> <br><br>
</div>
<div class="section" >
<div class="full-background filter-gradient gray" style="background-image:url('img/bg.jpg')">
<div class="info">
<h1>Order the games at a very nominal price!</h1>
<p>Or request for one.</p>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-10 col-sm-offset-1" id="logout">
<div class="page-header">
<h3 class="xyz">LEAVE YOUR COMMENT</h3>
</div>
<div class="comment-tabs">
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#comments-logout" role="tab" data-toggle="tab"><h4 class="reviews text-capitalize">Comments</h4></a></li>
<li><a href="#add-comment" role="tab" data-toggle="tab"><h4 class="reviews text-capitalize">Add comment</h4></a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="comments-logout">
<ul class="media-list">
<?php
include 'database/comment.php';
?>
</ul>
</div>
<div class="tab-pane" id="add-comment">
<form action="" method="post" class="form-horizontal" id="commentForm" role="form">
<div class="form-group">
<label for="email" class="col-sm-2 control-label">Comment</label>
<div class="col-sm-10">
<textarea class="form-control" name="addComment" id="addComment" rows="5"></textarea>
</div>
</div>
<div class="form-group">
<label for="uploadMedia" class="col-sm-2 control-label">Upload media</label>
<div class="col-sm-10">
<div class="input-group">
<div class="input-group-addon">http://</div>
<input type="text" class="form-control" name="uploadMedia" id="uploadMedia">
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<input type="submit" class="btn btn-success btn-circle2 text-uppercase" value="Submit comment" name="submit_comment"></input>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div><br><br>
<footer class="footer">
<div class="container">
<nav class="pull-left">
<ul>
<li>
<a href="#">
Home
</a>
</li>
<li>
<a href="#">
Company
</a>
</li>
<li>
<a href="#">
News
</a>
</li>
<li>
<a href="#">
About
</a>
</li>
</ul>
</nav>
<div class="social-area pull-right">
<a class="btn btn-social btn-facebook btn-simple">
<i class="fa fa-facebook-square"></i>
</a>
<a class="btn btn-social btn-google-plus btn-simple">
<i class="fa fa-google-plus"></i>
</a>
<a class="btn btn-social btn-github btn-simple">
<i class="fa fa-github"></i>
</a>
</div>
<div class="copyright">
© 2014-<?php echo date("Y")?> <span style="color:#00CCFF">Console Wars</span>, made with love
</div>
</div>
</footer>
</body>
<!-- ************************************************************************************************************** -->
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery-1.10.2.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.10.4.custom.min.js" type="text/javascript"></script>
<script src="js/bootstrap.js" type="text/javascript"></script>
<script type="text/javascript">
var big_image;
$().ready(function(){
responsive = $(window).width();
if (responsive >= 768){
big_image = $('.parallax-background').find('img');
console.log(big_image);
$(window).on('scroll',function(){
parallax();
});
}
});
var parallax = function() {
var current_scroll = $(this).scrollTop();
oVal = ($(window).scrollTop() / 3);
big_image.css('top',oVal);
};
</script>
</html>