-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
162 lines (133 loc) · 5.86 KB
/
Copy pathindex.php
File metadata and controls
162 lines (133 loc) · 5.86 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
<?php
$title = 'Home';
include 'templates/header.php';
include 'templates/navigation.php';
?>
<div class="container mt-4">
<ol class="carousel-indicators">
<li data-target="#main-slider" data-slide-to="0" class="active"></li>
<li data-target="#main-slider" data-slide-to="1"></li>
<li data-target="#main-slider" data-slide-to="2"></li>
</ol>
<div id="main-slider" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
<img src="img/slide_01.jpg" alt="new instalation" class="d-block img-fluid">
<div class="carousel-caption d-none d-md-block">
<h3 class="text-uppercase">Brand new facilities</h3>
</div>
</div>
<div class="carousel-item">
<img src="img/slide_02.jpg" alt="new instalation" class="d-block img-fluid">
<div class="carousel-caption d-none d-md-block">
<h3 class="text-uppercase">Learn about our services</h3>
</div>
</div>
<div class="carousel-item">
<img src="img/slide_03.jpg" alt="new instalation" class="d-block img-fluid">
<div class="carousel-caption d-none d-md-block">
<h3 class="text-uppercase">New website 2 for 1 in all services</h3>
</div>
</div>
</div>
<a href="#main-slider" class="carousel-control-prev" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a href="#main-slider" class="carousel-control-next" data-slide="prev">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<section class="new-website py-5">
<h2 class="text-center text-uppercase"><span class="text-lowercase">Welcome to our new</span> website</h2>
<p class="text-center mt-4">Feel like new with our massages and professional <br> therapists</p>
</section>
<div class="container pb-5">
<div class="row">
<div class="col-md-4 col-12 text-center mb-4 mb-md-0">
<div class="image-links">
<img class="img-fluid" src="img/service_01.jpg">
<div class="row justify-content-center">
<div class="col-8 col-md-10 image-info pt-4">
<h3 class="text-center text-uppercase"><span class="text-lowercase">Learn More</span> About Us</h3>
<a href="#" class="btn btn-success text-uppercase btn-block mt-4">Read More</a>
</div>
</div>
</div>
</div><!-- col-md-4 -->
<div class="col-md-4 col-12 text-center mb-4 mb-md-0">
<div class="image-links">
<img class="img-fluid" src="img/service_02.jpg">
<div class="row justify-content-center">
<div class="col-8 col-md-10 image-info pt-4">
<h3 class="text-center text-uppercase"><span class="text-lowercase">About our</span> Service</h3>
<a href="#" class="btn btn-success text-uppercase btn-block mt-4">Read More</a>
</div>
</div>
</div>
</div><!-- col-md-4 -->
<div class="col-md-4 col-12 text-center mb-4 mb-md-0">
<div class="image-links">
<img class="img-fluid" src="img/service_03.jpg">
<div class="row justify-content-center">
<div class="col-8 col-md-10 image-info pt-4">
<h3 class="text-center text-uppercase"><span class="text-lowercase">Visit our</span> Store</h3>
<a href="#" class="btn btn-success text-uppercase btn-block mt-4">Read More</a>
</div>
</div>
</div>
</div><!-- col-md-4 -->
</div>
</div>
<div class="business-hours">
<div class="container">
<div class="row py-5">
<div class="col-md-6">
<?php include 'templates/business_hours.php'; ?>
</div>
<div class="col-md-6 bg-hours">
</div>
</div>
</div>
</div>
<div class="container products py-5 ">
<h2 class="text-center text-uppercase"><span class="text-lowercase">Checkout our</span> productss</h2>
<div class="row py-4">
<?php
try {
require_once 'inc/db.php';
$sql = 'SELECT `id`, `name`, `image_thumb`, `price`,`short_description` FROM `products` LIMIT 4';
$result = $db->query($sql);
} catch (Exception $e) {
$error = $e->getMessage();
}
$rows = $result->num_rows;
if(!$rows) {
echo "No Results Found";
} else {
while($products = $result->fetch_assoc()) { ?>
<div class="col-6 col-md-3 mb-5 mb-md-0">
<div class="card">
<a href="product.php?product=<?php echo $products['id']; ?>">
<img src="img/<?php echo $products['image_thumb']; ?>" class="card-img-top img-fluid">
<div class="card-block">
<h3 class="card-title text-center text-uppercase mb-0"><?php echo $products['name']; ?></h3>
<p class="card-text text-center text-uppercase"><?php echo $products['short_description']; ?>
<p class="price text-center mb-0"><?php echo $products['price']; ?></p>
</div>
</a>
</div>
</div>
<?php
}
}
$db->close();
?>
</div>
</div>
<?php
include 'templates/appointment.php';
include 'templates/footer.php';
?>