-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
277 lines (253 loc) · 12.1 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<?php
include 'koneksi.php';
session_start();
$query =
"SELECT * from tb_dokter";
$result = mysqli_query($conn, $query);
$row = mysqli_fetch_assoc($result);
$query_test =
"SELECT * FROM tb_testimoni LEFT JOIN tb_user
ON tb_testimoni.id_user = tb_user.id WHERE tb_testimoni.id_user = tb_user.id";
$result_test = mysqli_query($conn, $query_test);
$row_test = mysqli_fetch_assoc($result_test);
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- meta dicoding -->
<meta name="dicoding:email" content="muhammadrazin14@gmail.com">
<title>ParentCare</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" href="styles/style.css">
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@500;700&family=Poppins&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light fixed-top py-4 bgcolor" data-aos="fade-down">
<div class="container-xl">
<a class="navbar-brand" href="index.php">Parent<span>Care</span></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<div class="navbar-nav ms-auto">
<a class="nav-link active" aria-current="page" href="index.php">Home</a>
<a class="nav-link" href="pages/Article/article.php">Artikel</a>
<a class="nav-link" href="pages/FAQ/faq.php">FAQ</a>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Layanan
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="pages/Transaksi/konsultasi.php">Konsultasi</a></li>
<li><a class="dropdown-item" href="pages/Tes Mental Health/tes-mental-health.php">Tes Kesehatan Mental</a></li>
</ul>
</li>
<a class="nav-link" href="pages/Forum Discussion/forum.php">Discuss</a>
<a class="nav-login btn btn-success px-4 text-white btn-login" id="login" href="pages/login.php">Login</a>
</div>
</div>
</div>
</nav>
</header>
<!-- Home -->
<section class="home">
<div class="container">
<div class="row">
<div class="col-lg-6" id="home1" data-aos="fade-right" data-aos-delay="300">
<h1 class="heading-home">ParentCare.</h1>
<p class="subheading-home">Apa yang kita lihat mengubah apa yang kita ketahui. Apa yang kita ketahui
mengubah apa yang kita lihat.
<strong>Stay healthy and happy with your child expertly</strong>
<div class="btn-home mt-5 mb-5">
<a href="process/loginFirst.php" class="button">Book Now</a>
</div>
</div>
<div class="col-lg-6" id="img" data-aos="fade-left" data-aos-delay="300">
<img src="asset/image/Hero/Hero Image.png" class="img-fluid home-hero" alt="">
</div>
</div>
</div>
</section>
<!-- Home -->
<section class="psychologists mt-5" id="psychologists">
<div class="container">
<div class="row">
<div class="col-12" data-aos="fade-up" data-aos-once="true">
<h2 class="section-heading">Meet Our Psychologists</h2>
<p class="subheading">Cari jadwal dokter psikolog
</p>
</div>
</div>
<div class="row mt-4">
<div class="row mt-4">
<?php
if ($row > 0) {
foreach ($result as $rowDokter) {
$no = 1;
$id = $row['id'];
echo '
<div class="col-6 col-md-4 col-lg-3" data-aos="fade-up" data-aos-once="true" data-aos-delay="100">
<div class="card">
<img src="asset/image/dokter/' . $rowDokter['foto'] . '" alt="Gambar Dokter">
<h5 class="tittle-ptoduct mt-3">' . $rowDokter['nama'] . '</h5>
<div class="tittle-card mt-1">
<p class="price m-0"><img src="asset/image/icon/icons8-stetoscope-icon-32.png">' .
$rowDokter['keahlian'] . ' </p>
</div>
</div>
</div>
';
}
} else {
echo '<div class="row mt-4">
<div class="tittle-card mt-1">
<p class="price m-0">Tidak ada data yang ditemukan
</p>
</div>';
}
if (isset($no)) {
$no++;
} ?>
</div>
</section>
<!-- Home -->
<!-- Article -->
<section class=" article">
<div class="container">
<div class="row">
<div class="col-12" data-aos="fade-up" data-aos-once="true">
<h2 class="section-heading">LATEST ARTICLE</h2>
<p class="subheading">Artikel kesehatan terkini untuk Anda
</p>
</div>
</div>
<div class="row">
<div id="news-container" class="row" data-aos="fade-up" data-aos-once="true" data-aos-delay="200">
</div>
</div>
<div class="row">
<div class="col-12 see-more" data-aos="fade-up" data-aos-once="true" data-aos-delay="100">
<div class="btn-detail mt-5 text-center">
<a href="pages/Article/article.php"><button type="button" class="btn btn-second">More
Article</button></a>
</div>
</div>
</div>
</div>
</section>
<!-- Article -->
<!-- Testimoni -->
<section class="article">
<div class="container">
<div class="row">
<div class="col-12" data-aos="fade-up" data-aos-once="true">
<h2 class="section-heading">Testimoni</h2>
<p class="subheading">Apa kata mereka tentang ParentCare?
</p>
</div>
</div>
<div class="row">
<?php
if ($row_test > 0) {
foreach ($result_test as $rowTest) {
$no = 1;
$id = $row['id'];
echo '
<div class="col-12 col-md-6 col-lg-4 mt-4" data-aos="fade-up" data-aos-once="true" data-aos-delay="100">
<div class="card">
<div class="testi">
<p>"' . $rowTest['deskripsi'] . '" </p>
<h6 class="article-categories">' . $rowTest['username'] . '</h6>
<p class="article-time">' . $row_test['tgl'] . '</p>
</div>
</div>
</div>';
}
} else {
echo '<div class="row mt-4">
<div class="tittle-card mt-1">
<p class="price m-0">Tidak ada data yang ditemukan
</p>
</div>';
}
if (isset($no)) {
$no++;
} ?>
</div>
</div>
</section>
<!-- Article -->
<!-- Footer -->
<section class="footer mt-5">
<div class="container">
<div class="row">
<div class="col-12 col-lg-3 mt-3">
<div class="logo-footer">
<a class="navbar-brand" href="#">ParentCare.</a>
</div>
<div class="info mt-lg-4">
<div class="row">
<div class="col-12">
<a href="" class=" infotxt">Layanan
konsultasi anak terbaik untuk anda</a>
</div>
</div>
</div>
</div>
<div class="col-lg-1">
</div>
<div class="col-12 col-md-4 col-lg-2">
<div class="info mt-4">
<h3>About ParentCare</h3>
<div class="footer-list mt-lg-3">
<li><a class="nav-footer" href="pages/Another pages/Tentang kami.php">Tentang Kami</a></li>
<li><a class="nav-footer" href="pages/Another pages/Hubungi kami.php">Hubungi Kami</a></li>
</div>
</div>
</div>
<div class="col-12 col-md-4 col-lg-2">
<div class="info mt-4">
<h3>More</h3>
<div class="footer-list mt-lg-3">
<li><a class="nav-footer" href="pages/Another pages/syarat dan ketentuan.php">Syarat & Ketentuan</a></li>
<li><a class="nav-footer" href="pages/Another pages/privasi.php">Privasi</a></li>
<li><a class="nav-footer" href="pages/FAQ/faq.php">FAQ</a></li>
</div>
</div>
</div>
<div class="col-12 col-md-4 col-lg-2">
<div class="info mt-4">
<h3>Media Sosial</h3>
<div class="footer-list mt-lg-3">
<li><a class="nav-footer" href="#"><img src="asset/image/icon/icons8-instagram-30.png" alt="Logo Instagram">
Instagram</a></li>
<li><a class="nav-footer" href="#"><img src="asset/image/icon/icons8-facebook-30.png" alt="Logo Instagram"> Facebook</a></li>
<li><a class="nav-footer" href="#"><img src="asset/image/icon/icons8-twitter-30.png" alt="Logo Instagram"> Twitter</a></li>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 mt-4">
<p class="copyright">Copyright © 2022 ParentCare | All Rights Reserved.</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<script src="scripts/fetch news API index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous">
</script>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
AOS.init();
</script>
</body>
</html>