-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
211 lines (168 loc) · 5.59 KB
/
index.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
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
<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Salon</title>
<link rel="stylesheet" type="text/css" href="include_files/mystyle.css">
<style>
body {
background-color: palevioletred;
}
.homepage {
background-color: #d3d3d340;
text-align: center;
padding: 10px;
}
.search_input {
display: inline-block;
}
.txt_input {
padding: 5px;
font-size: 18px;
}
.result {
padding: 5px;
border: 2px solid grey;
margin: 5px;
}
* {
box-sizing: border-box;
}
.main_div {
padding: 5px;
text-align: center;
}
.sub_div{
width: 30%;
display: inline-block;
margin: 5px;
}
</style>
</head>
<body>
<?php include_once "navigation.php"; ?>
<img src="include_files/image/slider-1.jpg" style="width: 100%">
<div class="homepage">
<h2>Search Salon By</h2>
<form action="user/search_by_name_area_city.php" method="get">
<div class="search_input">
<input class="txt_input" type="text" name="salon_name" placeholder="Name">
<input class="txt_input" type="text" name="salon_area_location" placeholder="Area Location">
<input class="txt_input" type="text" name="salon_city" placeholder="City">
<input class="txt_input" type="submit" value="Search">
</div>
</form>
</div>
<br>
<div class="main_div">
<h1><u>Our Work</u></h1>
<div class="sub_div">
<img src="include_files/image/icon/1.png">
<h3>Best Salon</h3>
<p>
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
</p>
</div>
<div class="sub_div">
<img src="include_files/image/icon/2.png">
<h3>Best Salon</h3>
<p>
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
</p>
</div>
<div class="sub_div">
<img src="include_files/image/icon/3.png">
<h3>Best Salon</h3>
<p>
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
</p>
</div>
<div class="sub_div">
<img src="include_files/image/icon/4.png">
<h3>Best Salon</h3>
<p>
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
</p>
</div>
<div class="sub_div">
<img src="include_files/image/icon/5.png">
<h3>Best Salon</h3>
<p>
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
</p>
</div>
<div class="sub_div">
<img src="include_files/image/icon/6.png">
<h3>Best Salon</h3>
<p>
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
Salon project several day on consuming on this project.
</p>
</div>
</div>
<br>
<br>
<div class="" style="background-color: #d3d3d340; padding: 10px">
<h2>Completed Appointments</h2>
<?php
require_once "database_connection.php";
$sql = "SELECT * FROM tbl_appointment WHERE status = 1";
$stmt = $conn->prepare($sql);
$stmt->execute();
if ($stmt->rowCount()) {
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
echo "<div class='result'>";
echo "<strong>Completed On: </strong>";
echo $result['created_date'];
echo "<br>";
echo $result['note'];
echo "</div>";
}
}
?>
</div>
<br>
<br>
<div class="" style="background-color: #d3d3d340; padding: 10px">
<h2>Best Stylist</h2>
<?php
require_once "database_connection.php";
$sql = "SELECT
*
FROM
tbl_stylist_rate
INNER JOIN tbl_stylist WHERE tbl_stylist_rate.stylist_id = tbl_stylist.stylist_id";
$stmt = $conn->prepare($sql);
$stmt->execute();
if ($stmt->rowCount()) {
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
echo "<div class='result'>";
echo "<img height='12' src='include_files/".$result['profile_image']."'>";
echo " ";
echo $result['username'];
echo "</div>";
}
}
?>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<script src="include_files/jquery-3.1.1/jquery.min.js"></script>
</body>
</html>