-
Notifications
You must be signed in to change notification settings - Fork 0
/
lokasi.php
163 lines (148 loc) · 7.06 KB
/
lokasi.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
<?php
require 'function.php';
if (!isset($_SESSION["login"])) {
header("Location: login_form.php");
}
$id_login = $_SESSION["login"];
$users = query("SELECT * FROM users WHERE Id_user='$id_login'");
$users_riwayat = query("SELECT * FROM riwayat_perjalanan WHERE id_user='$id_login' AND NOT checkout='-'");
$Photo_profile = findRow("SELECT Photo_profile FROM users WHERE Id_user='$id_login'", "Photo_profile");
$data = query("SELECT * FROM checkin WHERE id_user='$id_login'");
?>
<!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">
<link rel="stylesheet" type="text/css" href="CSS/lokasi.css">
<link rel="icon" href="img/logo.ico" type="image/icon type">
<title>Vaksinasi & Imunisasi</title>
</head>
<body onload="ambilLokasi();">
<div class="container" id="container">
<div class="navbar">
<div class="logo">
<div class="icon">
</div>
<h3>PeduliLindungi</h3>
</div>
<?php if (isset($_SESSION["login"])) : ?>
<?php foreach ($users as $user) : ?>
<div class="account">
<div class="photo-profil">
<?php if (strlen($Photo_profile) > 1) : ?>
<div class="custom" style="background-image: url(img/user-pic/<?= $user["Photo_profile"] ?>);">
</div>
<?php else : ?>
<div class="default">
<h4><?= substr($user["Nama"], 0, 1) ?></h4>
</div>
<?php endif; ?>
</div>
<?php if (strlen($user["Nama"]) >= 11) : ?>
<h3><?= substr($user["Nama"], 0, 11) ?>..</h3>
<img src="img/sort-down.png" class="dropdown" alt="" srcset="">
<?php else : ?>
<h3><?= $user["Nama"] ?></h3>
<img src="img/sort-down.png" class="dropdown" alt="" srcset="">
<?php endif; ?>
<div class="dropbtn">
<div class="dropdown-content">
<a href="account.php">
<img src="img/login.png" alt="">
Profil
</a>
<a href="logout.php">
<img src="img/exit.png" alt="">
Keluar
</a>
</div>
</div>
<?php endforeach; ?>
<?php else : ?>
<div class="not_login">
<a href="login_form.php">Login</a>/
<a href="register_form.php">Register</a>
</div>
<?php endif; ?>
</div>
</div>
<div class="title">
<h1>Lokasi Vaksinasi Covid-19</h1>
<h1 id="county">DI DEPOK</h1>
</div>
<div class="selected">
<h3>Temukan Fasilitas Kesehatan yang Melayani Vaksinasi COVID-19 </h3>
<div class="select-box">
<div class="terdeteksi" style="background-color: #D1E7DD;">
<img src="img/correct.png" alt="" srcset="" id="img-check">
<p>lokasi terdeteksi </p>
<img src="img/salah.png" alt="" id="close-mesage">
</div>
<div class="format-box">
<select name="format" id="format" required>
<option value="" disabled selected>Pilih kota</option>
<option value="DEPOK">DEPOK</option>
<option value="JAKARTA">JAKARTA</option>
<option value="BOGOR">BOGOR</option>
<option value="BEKASI">BEKASI</option>
</select>
</div>
</div>
<div class="jenis-box">
<h4>Jenis Vaksin Yang Tersedia</h4>
<div class="btn-box">
<div class="input-box">
<label for="astra" class="btn" data-status="none">Astrazeneca</label>
<input type="checkbox" class="check" name="vaksin" id="astra" value="Astrazeneca">
</div>
<div class="input-box">
<label for="pfizer" class="btn" data-status="none">Pfizer</label>
<input type="checkbox" class="check" name="vaksin" id="pfizer" value="Pfizer">
</div>
<div class="input-box">
<label for="sinovac" class="btn" data-status="none">Sinovac</label>
<input type="checkbox" class="check" name="vaksin" id="sinovac" value="Sinovac">
</div>
<div class="input-box">
<label for="moderna" class="btn" data-status="none">Moderna</label>
<input type="checkbox" class="check" name="vaksin" id="moderna" value="Moderna">
</div>
<div class="input-box">
<label for="sinophram" class="btn" data-status="none">Sinophram</label>
<input type="checkbox" class="check" name="vaksin" id="sinophram" value="Sinophram">
</div>
</div>
</div>
<div class="text-box">
<p>
1. Jenis vaksin akan tampil sesuai ketersediaan 2 minggu terakhir. <br>
2. Hubungi faskes terdekat untuk memastikan ketersediaan vaksin primer dan booster. <br>
3. Jenis vaksin booster akan diberikan sesuai ketersediaan dan riwayat vaksinasi primer. <br>
</p>
<div>
<button type="submit" class="btn-submit" data-submit="no">Cari Lokasi</button>
</div>
</div>
</div>
<div class="black-screen">
</div>
<div class="list-card" id="popup">
<div class="header-listcard">
<h3 id="header-text-lokasi">Lokasi fasilitas kesehatan di DEPOK</h3>
<img src="img/wrong.png" alt="" srcset="" id="close-listcard">
</div>
<div class="main-list-card">
<div class="map">
<iframe src="" frameborder="0">
</iframe>
</div>
<list-lokasi>
</list-lokasi>
</div>
</div>
</div>
<script src="JS/lokasi.js"></script>
</body>
</html>