-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.php
353 lines (291 loc) · 14 KB
/
project.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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<?php
require_once 'connectpostgre.php';
require_once 'config.php';
session_start();
if($_SESSION['logincareer']){
$namauser=$_SESSION['namauser'];
$href='homecareer.php';
}
else if($_SESSION['loginvendor']){
$namauser=$_SESSION['namavendor'];
$href='homevendor.php';
}
else if($_SESSION['logincustomer']){
$namauser=$_SESSION['namacustomer'];
$href='homevendor.php';
}
else{
$namauser='Login';
$href='login.php';
}
if(isset($_POST['tombolcari'])){
$cari=$_POST['cari'];
$_SESSION['cari']=$cari;
}
else{
$cari=$_SESSION['cari'];
}
$ambildata = $pdo->query("SELECT count(*) FROM project where judul LIKE '%$cari%' OR client LIKE '%$cari%'")->fetchColumn();
$jumlahdata=6;
$totaldata=$ambildata;
$jumlahpagination=ceil($totaldata/$jumlahdata);
if(isset($_GET['halaman'])){
$halamanaktif=$_GET['halaman'];
}
else{
$halamanaktif=1;
}
$dataawal= ($halamanaktif*$jumlahdata)-$jumlahdata;
// $ambildataperhalaman=$pdo->query("SELECT *from project where job_id LIKE '%$cari%' OR job_name LIKE '%$cari%' OR education LIKE '%$cari%' OR year_experience LIKE '%$cari%' OR kriteria_umum LIKE '%$cari%' OR deskripsi_umum LIKE '%$cari%' limit $dataawal,$jumlahdata ");
// $ambildataperhalaman->execute();
// $data=$ambildataperhalaman->fetchAll();
$ambildataperhalaman=$pdo->query("SELECT *from project where judul LIKE '%$cari%' OR client LIKE '%$cari%' limit $dataawal,$jumlahdata ");
$ambildataperhalaman->execute();
$data=$ambildataperhalaman->fetchAll();
// $query=$pdo->query("select * from project order by project_id");
// $query->execute();
// $data=$query->fetchAll();
// session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>MYKI- Projects</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/logomyki.png" rel="icon">
<link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<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=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600;1,700&family=Roboto:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<!-- Vendor CSS Files -->
<!-- <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> -->
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<!-- <link href="assets/vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet"> -->
<!-- <link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet"> -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- Template Main CSS File -->
<link href="assets/css/coba.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<!-- =======================================================
* Template Name: UpConstruction - v1.1.0
* Template URL: https://bootstrapmade.com/upconstruction-bootstrap-construction-website-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<body>
<header id="header" class="header d-flex align-items-center">
<div class="container-fluid container-xl d-flex align-items-center justify-content-between">
<a href="index.php" class="logo d-flex align-items-center">
<!-- Uncomment the line below if you also wish to use an image logo -->
<img src="assets/img/logomyki.png" style="width:Auto" alt="">
<h1> <?php echo $lang['judul']?></h1>
</a>
<i class="mobile-nav-toggle mobile-nav-show bi bi-list"></i>
<i class="mobile-nav-toggle mobile-nav-hide d-none bi bi-x"></i>
<nav id="navbar" class="navbar">
<ul>
<li><a href="index.php" ><span> <?php echo $lang ['home']?></span></a>
<!-- <ul>
<li><a href="index.html#home-welcome">About</a></li>
<li><a href="index.html#constructions">Our Service</a></li>
<li><a href="index.html#projects">Current Project</a></li>
</ul> -->
</li>
<li class="dropdown"><a href="#"><span> <?php echo $lang ['about']?></span> </i></a>
<ul>
<li><a href="aboutresponsive.php#aboutus"><?php echo $lang ['#about']?></a></li>
<li><a href="aboutresponsive.php#legalitasrespon"><?php echo $lang ['#legalitas']?></a></li>
<li><a href="aboutresponsive.php#targetfokusrespon"><?php echo $lang ['#targetfokus']?></a></li>
<!-- -->
</ul>
</li>
<li><a href="project.php" class="active"><?php echo $lang ['project']?></a></li>
<li> <a href="services.php"><span><?php echo $lang ['service']?></span> </a></li>
<li><a href="careerori2.php"><?php echo $lang ['career']?></a></li>
<li class="dropdown"><a href="#"><span><?php echo $lang ['eproc']?></span> </i></a>
<ul>
<li><a href="loginvendor.php">Vendor / Subcon </a></li>
<li><a href="logincustomer.php">Customer </a></li>
</ul>
</li>
<li><a href="contactus.php"><?php echo $lang['kontak']?></a></li>
<li><a href="<?php echo $href?>"><?php echo $namauser?></a></li>
<li><a href="project.php?lang=idn"><img class="logoindo" src="assets/img/icon/indonesia.png" alt=""></a></li>
<li><a href="project.php?lang=en"><img class="logoeng" src="assets/img/icon/united-kingdom.png" alt=""></a></li>
</nav><!-- .navbar -->
</div>
</header>
<main id="main">
</div> <!-- ======= Breadcrumbs ======= -->
<!-- <div class="breadcrumbs d-flex align-items-center">
<div class="container position-relative d-flex flex-column align-items-center" data-aos="fade">
<h2>Our Project</h2>
</div> -->
<!-- End Breadcrumbs -->
<!-- <a href="projectdetails.php<?php echo $value['file']?>.php"><img class="img-fluid" src="assets/img/foto-projek-dan-produk-myki/<?php echo $value['image_path']?>" ></a> -->
<!-- ======= Our Projects Section ======= -->
<section>
<div class="container" >
<form action="project.php" method="post">
<input type="text" class="form-control rounded" name='cari' placeholder="Judul" aria-label="Search" aria-describedby="search-addon" ?>
<input type="submit" value="Search" name="tombolcari">
<div class="row gy-4 projek-container" data-aos-delay="200">
</form>
<?php
foreach($data as $value){
?>
<div class="col-lg-4 col-md-6 portfolio-gambar">
<div class="cardproject" style="width: 100%;">
<div class="portfolio-content">
<a href="projectdetails.php?project_name=<?php echo $value['judul']?>"> <img class="img-fluid" src="assets/img/foto-projek-dan-produk-myki/<?php echo $value['image_path']?>"> </a>
<div class="card-bodya">
<p class="card-text"><?php echo $value['judul']?></p>
</div>
</div>
</div><!-- End Projects Item -->
</div>
<?php
}
?>
</div>
<?php
for($i=1;$i<=$jumlahpagination;$i++){
?>
<a href="?halaman=<?php echo$i?>"><?php echo$i?></a>
<?php
}
?>
</div>
</section>
<!-- End Our Projects Section -->
</main><!-- End #main -->
<!-- <footer id="footer" class="footer">
<div class="footer-content position-relative">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="footer-info">
<h3>PT Marga Yasa Konstruksi Indonesia</h3>
<p>
Jl. Raden Patah No. 10, Mojosari, Mojokerto, Indonesia<br><br>
<strong>Phone:</strong> (031)99841021<br>
<strong>Email:</strong> [email protected]<br>
</p>
<div class="social-links d-flex mt-3"> -->
<!-- <a href="#" class="d-flex align-items-center justify-content-center"><i class="bi bi-twitter"></i></a>
<a href="#" class="d-flex align-items-center justify-content-center"><i class="bi bi-facebook"></i></a>
<a href="#" class="d-flex align-items-center justify-content-center"><i class="bi bi-instagram"></i></a>
<a href="#" class="d-flex align-items-center justify-content-center"><i class="bi bi-linkedin"></i></a> -->
<!-- </div>
</div> -->
<!-- </div>End footer info column -->
<!-- </div> -->
<!--
<div class="footer-legal text-center position-relative">
<div class="container">
<div class="copyright">
© Copyright <strong><span>PT Marga Yasa Konstruksi Indonesia</span></strong>. All Rights Reserved
</div>
<div class="credits">
</div>
</div>
</div>
</footer> -->
<!-- <footer>
<div class="container">
<div class="row info">
<div class="col-12">
<h3>PT MARGA YASA KONSTRUKSI INDONESIA</h3>
</div>
<div class="col">
Jl. Raden Patah No. 10, Mojosari <br>
</div>
<div class="col-12">
Mojokerto, Indonesia
</div>
</div>
</div>
<div class="container social-con">
<div class="row social">
<div class="col-12">
<a href="https://www.instagram.com/gayakonin/"><i class="bi bi-instagram ig"></i>gayakonin</a>
</div>
<div class="col">
<i class="bi bi-telephone tel">(031)99841021</i>
</div>
<div class="col-12">
<a href=""><i class="bi bi-envelope mail"></i>[email protected]</a>
</div>
</div>
</div>
<div class="container footer"> -->
<!-- <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3957.388667834665!2d112.74758131469207!3d-7.310158994724117!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x2dd7fb08c82f1957%3A0x319db3a30b32d110!2sCV.%20Mycon%20Indonesia!5e0!3m2!1sid!2sid!4v1664835010344!5m2!1sid!2sid" width="300" height="200" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade" align:right></iframe> -->
<!-- © Copyright <strong><span>PT Marga Yasa Konstruksi Indonesia</span></strong>. All Rights Reserved
</div> -->
<!-- <footer class="ori">
<div class="container">
<div class="row-info">
<div class="col-12">
<B><P>PT MARGA YASA KONSTRUKSI INDONESIA</P></B>
<div class="col">
JL.RADEN PATAH NO. 10, MOJOSARI
</div>
</div>
<div class="col-12">
MOJOKERTO, INDONESIA
</div>
</div>
</div>
<div class="container-social-con">
<div class="row social">
<div class="col-12">
<h3>Contact Us :</h3>
<img class="insta" src="assets/img/footer/instagram-removebg-preview (6).png"><a class="ig" href="https://www.instagram.com/gayakonin/">gayakonin</a>
<img class="hp" src="assets/img/footer/call-removebg-preview (1).png" alt=""><a class="phone"href="">(031)99841021</a>
<img class="mail" src="assets/img/footer/Asset 1.png" alt=""><a class="email"href="">[email protected]</a>
</div>
</div>
</div>
<div class="footero">
© Copyright <strong><span>PT Marga Yasa Konstruksi Indonesia</span></strong>. All Rights Reserved
</div>
</footer> -->
<footer class="footer-respon">
<div class="container-md container-lg-fluid footerbaru">
<div class="atas">
<p>PT MARGA YASA KONSTRUKSI INDONESIA</p>
<p class="alamat1b">JL.RADEN PATAH NO. 10, MOJOSARI</p>
<p class="alamat2b">MOJOKERTO, INDONESIA</p>
</div>
<div class="tengah align-self-end">
© Copyright <strong><span>PT Marga Yasa Konstruksi Indonesia</span></strong>. All Rights Reserved
</div>
<div class="bawah">
<p><?php echo $lang['contact_us']?></p>
<img class="img-ig" src="assets/img/footer/instagram-removebg-preview (6).png"><a class="link-ig" href="https://www.instagram.com/gayakonin/">gayakonin</a>
<img class="img-hp" src="assets/img/footer/call-removebg-preview (1).png" alt=""><a class="link-phone">(031)99841021</a>
<img class="img-mail" src="assets/img/footer/Asset 1.png" alt=""><a class="link-email">[email protected]</a>
</div>
</div>
</footer>
<div id="preloader"></div>
<!-- Vendor JS Files -->
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/aos/aos.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
<script src="assets/vendor/purecounter/purecounter_vanilla.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
</body>
</html>