-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav.html.php
executable file
·67 lines (62 loc) · 3.58 KB
/
nav.html.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
<?php
session_start();
if(!isset($_SESSION['cart'])) $_SESSION['cart'] = array();
?>
<nav class="navbar fixed-top navbar-toggleable-md navbar-inverse bg-inverse">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarExample" aria-controls="navbarExample" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="container">
<a class="navbar-brand" href="index.php"><b>ShopShop</b></a>
<div class="collapse navbar-collapse" id="navbarExample">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="cart.php">Cart(<?php echo count($_SESSION['cart']);?>)<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="login.php?&logout">Logout</a>
</li>
</ul>
</div>
</div>
</nav>
<br>
<div class="container">
<div class="card col-lg-6 offset-md-3" style="padding: 10px">
<form action="search.php" method="get">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search For Products" name="q">
<label class="control-label" style="padding-left:10px;padding-top: 5px;padding-right: 10px">Category : </label>
<select name="c" class="form-control">
<option>electronics</option>
<option>appliances</option>
<option>fashion</option>
</select>
<div class="input-group-btn">
<button class="btn bg-inverse text-white" type="submit">Go</button>
</div>
</div>
</form>
</div>
<br>
<div class="row">
<div class="col-lg-3">
<h2 class="my-4">Electronics</h2>
<div class="list-group">
<a href="products.php?c=electronics&sc=mobile" class="list-group-item">Mobiles</a>
<a href="products.php?c=electronics&sc=laptop" class="list-group-item">Laptops</a>
<a href="products.php?c=electronics&sc=accessories" class="list-group-item">Accessories</a>
</div>
<h2 class="my-4">Appliances</h2>
<div class="list-group">
<a href="products.php?c=appliances&sc=tv" class="list-group-item">Televisions</a>
<a href="products.php?c=appliances&sc=fridge" class="list-group-item">Refigirators</a>
<a href="products.php?c=appliances&sc=smallhome" class="list-group-item">Small Home Appliances</a>
</div>
<h2 class="my-4">Fashion</h2>
<div class="list-group">
<a href="products.php?c=fashion&sc=men" class="list-group-item">Men</a>
<a href="products.php?c=fashion&sc=women" class="list-group-item">Women</a>
<a href="products.php?c=appliances&sc=children" class="list-group-item">Children</a>
</div>
</div>