-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.php
235 lines (224 loc) · 9.27 KB
/
about.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
<?php
require_once 'config/config.php';
if (isset($_SESSION["user"])) {
$id = $_SESSION["user"];
$result = query("SELECT * FROM users WHERE id_user = $id")[0];
if ($result['roles'] == 'ADMIN') {
header("Location: admin");
} elseif($result["roles"] == 'OWNER') {
header("Location: owner");
}
}
if (isset($_SESSION["driver"])) {
header("Location: driver");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="description" content="" />
<meta name="author" content="" />
<title>AQUAZA</title>
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet" />
<link href="assets/style/main.css" rel="stylesheet" />
</head>
<body>
<!-- navbar -->
<nav
class="navbar navbar-expand-lg navbar-light navbar-store fixed-top navbar-fixed-top"
data-aos="fade-down"
>
<div class="container">
<a href="index.php" class="navbar-brand" title="home">
<img src="assets/images/logo.jpg" class="w-50" alt="logo" />
</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarResponsive"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a href="index.php" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="products.php" class="nav-link">Pesan</a>
</li>
<li class="nav-item">
<a href="about.php" class="nav-link">About</a>
</li>
<?php
if (!isset($_SESSION["login"]) && !isset($_SESSION["user"])) : ?>
<li class="nav-item">
<a href="register.php" class="nav-link">Sign Up</a>
</li>
<li class="nav-item">
<a
href="login.php"
class="btn btn-success nav-link px-4 text-white"
>Sign In</a
>
</li>
<?php else: ?>
<li class="nav-item dropdown">
<?php
$id = $_SESSION["user"];
$user = query("SELECT * FROM users WHERE id_user = $id")[0];
?>
<a
href="#"
class="nav-link font-weight-bold"
id="navbarDropdown"
role="button"
data-toggle="dropdown"
>
<!-- <img
src="../assets/images/user_pc.png"
alt="profile"
class="rounded-circle mr-2 profile-picture"
/> -->
Hi, <?= $user["name"]; ?>
</a>
<div class="dropdown-menu">
<?php if ($user["roles"] == 'ADMIN') : ?>
<a href="admin" class="dropdown-item">
Dashboard
</a>
<?php else : ?>
<a href="user" class="dropdown-item">
Dashboard
</a>
<?php endif; ?>
<div class="dropdown-divider"></div>
<a href="logout.php" class="dropdown-item">logout</a>
</div>
</li>
<li class="nav-item">
<?php
$id = $user["id_user"];
$carts = rows("SELECT * FROM carts WHERE user_id = $id");
?>
<?php if ($carts >= 1) : ?>
<a href="cart.php" class="nav-link d-inline-block">
<img
src="assets/images/shopping-cart-filled.svg"
alt="cart-empty"
/>
<div class="cart-badge"><?= $carts; ?></div>
</a>
<?php else : ?>
<a href="cart.php" class="nav-link d-inline-block">
<img
src="assets/images/icon-cart-empty.svg"
alt="cart-empty"
/>
</a>
<?php endif; ?>
</li>
<?php endif;?>
</ul>
</div>
</div>
</nav>
<!-- akhir navbar -->
<!-- page content -->
<div class="page-home" data-aos="zoom-in">
<section class="store-landing" style="background-color: #F8F6F3; background-attachment: fixed; padding: 150px 0 150px 0;">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h1 class="" style="font-size: 60px;">AQUAZA</h1>
<h5 class="">Pesan Antar-Galon Online</h5>
<a
href="https://wa.me/6281398910725"
target="_blank"
class="btn btn-success mt-2 px-4 py-2 text-white"
><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-whatsapp" viewBox="0 0 18 18">
<path d="M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"/>
</svg> Hubungi Kami</a
>
</div>
</div>
</div>
</section>
<section class="store-adventeges" id="adventeges">
<div class="container">
<div class="row text-center">
<div class="col-12">
<h2 class="font-weight-bold mb-2">AQUAZA</h2>
<hr style="border-top: 5px solid black; width: 80px;">
</div>
</div>
<div class="row text-center">
<div class="col-md-12">
<p>AQUAZA merupakan website pesan-antar galon secara online yang dapat memudahkan para customer untuk memesan galon hanya dari rumah. Selain itu, website ini membantu memudahkan para penggunanya untuk melihat-lihat depot air minum mana yang paling dekat dengan tempat tinggalnya yang juga disertai dengan harga, sehingga tidak perlu lagi meakukan survey tempat secara manual atau bertanya harga kepada penjual secra manual.</p>
</div>
</div>
<div class="row text-center" style="margin-top: 100px;">
<div class="col-12">
<h2 class="font-weight-bold">Visi dan Misi</h2>
<hr style="border-top: 5px solid black; width: 80px;">
</div>
</div>
<div class="row justify-content-center text-center">
<div class="col-md-6">
<h5>Visi</h5>
<p>Memudahkan warga sekitar Kampus 2 Universitas Siliwangi Tasikmalaya untuk menemukan depot air minum terdekat dan secara online</p>
</div>
<div class="col-md-6">
<h5>Misi</h5>
<p>Melayani pesan-antar galon berbasis website secara online</p>
</div>
</div>
</div>
</section>
<!-- <section class="counter text-white" style="background-color: #001524; padding: 40px; margin-top: 100px;" id="counter">
<div class="container">
<div class="row">
<div class="col-md-3">
<h3>Numbers Speak For Themeselves</h3>
</div>
<div class="col-md-3">
<h3 id="terjual"></h3>
</div>
</div>
</div>
</section> -->
</div>
<br>
<br><br><br><br>
<br>
<br><br><br><br>
<!-- akhir slider -->
<!-- footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-12">
<p class="pt-4 pb-2">
© 2023 Copyright by AQUAZA. All Rights Reserved.
</p>
</div>
</div>
</div>
</footer>
<!-- akhir footer -->
<!-- Bootstrap core JavaScript -->
<script src="assets/vendor/jquery/jquery.slim.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script>
AOS.init();
</script>
<script src="assets/js/navbar-scroll.js"></script>
</body>
</html>