-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
67 lines (57 loc) · 2.4 KB
/
header.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
require("connection.inc.php");
require("functions.inc.php");
require("add_to_cart.inc.php");
$cat_res = mysqli_query($con,"select * from categories where status=1");
$cat_arr = array();
while ($row = mysqli_fetch_array($cat_res)){
$cat_arr[] = $row;
}
$obj = new add_to_cart();
$total_product=$obj->totalProduct();
?>
<head>
<meta charset="utf-8">
<title>ComfyNest</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="Free HTML Templates" name="keywords">
<meta content="Free HTML Templates" name="description">
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<!-- Customized Bootstrap Stylesheet -->
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div class="row align-items-center py-3 px-xl-5">
<div class="col-lg-3 d-none d-lg-block">
<a href="index.php" class="text-decoration-none"> <h1 class="m-0 display-5 font-weight-semi-bold"><span class="text-primary font-weight-bold border px-3 mr-1">Comfy</span>Nest</h1>
</a>
</div>
<div class="col-lg-6 col-6 text-left">
<form action="">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for products">
<div class="input-group-append">
<span class="input-group-text bg-transparent text-primary">
<i class="fa fa-search"></i>
</span>
</div>
</div>
</form>
</div>
<div class="col-lg-3 col-6 text-right">
<a href="cart.php" class="btn border">
<i class="fas fa-shopping-cart text-primary"></i>
<span class="badge" id="cart_count"><?php echo $obj->totalProduct();?></span>
</a>
</div>
</div>
</div>
</body>