-
Notifications
You must be signed in to change notification settings - Fork 0
/
search_product.php
137 lines (98 loc) · 4.13 KB
/
search_product.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
<?php
include('./include/connect.php');
include('function/common_function.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>E commerce website</title>
<!-- bootstrap css link -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ"
crossorigin="anonymous">
<!-- font awesome link -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!--css file-->
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- navbar -->
<div class="container-fluid p-0">
<!--first child-->
<nav class="navbar navbar-expand-lg navbar-light bg-info">
<div class="container-fluid">
<img src="./image/logo.png" alt="" class="logo">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index1.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="display_all.php">Products</a>
</li>
<li class="nav-item">
<a class="nav-link" href="cart.php"><i class="fa-solid fa-cart-shopping"></i><sup><?php
cart_item(); ?></sup></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Totalprice: <?php cart_total_price(); ?>/-</a>
</li>
</ul>
<form class="d-flex" role="search" action="" method="get">
<input class="form-control me-2" type="search" placeholder="Search"
aria-label="Search" name="search_data">
<input type="submit" value="search" class="btn btn-outline-light" name="search_data_product">
</form>
</div>
</div>
</nav>
<!--second child-->
<nav class="navbar navbar-expand-lg navbar-dark bg-secondary">
<ul class="navbar-nav me-auto">
<li class="nav-item">
<a class="nav-link" href="#">Welcome Guest</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./user_area/logout.php">Logout</a>
</li>
</ul>
</nav>
<!--third child-->
<div class="bg-light">
<h3 class="text-center">Virtual Store</h3>
<p class="class text-center">
Communication is at the heart of e-commerce and community
</p>
</div>
<!--fourth child-->
<!--products-->
<div class="row">
<!--fetching products-->
<?php
search_product();
view_details();
cart();
?>
<!--row end-->
</div>
</div>
<!-- last child -->
<!--include footer-->
<?php
include('./include/footer.php');
?>
<!-- bootstrap js link-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous">
</script>
</body>
</html>