-
Notifications
You must be signed in to change notification settings - Fork 1
/
proses_cek.php
90 lines (86 loc) · 4.09 KB
/
proses_cek.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
<?php include 'head.php'; ?>
<?php include 'navbar.php'; ?>
<div class="container text-center">
</div>
<div class="container text-center">
<div class="row justify-content-center">
<div class="col">
<h3 style="padding: 20px 20px;">Data & Progress Kendaraan Pelanggan</h3>
</div>
</div>
</div>
</div>
<div class="dropdown-divider"></div>
<?php
include 'config/koneksi.php';
$no_urut = 0;
$search = $_POST['cari'];
$query = "SELECT * FROM transaksi WHERE id='$search'";
$result = mysqli_query($conn, $query);
while ($data = mysqli_fetch_array($result)) { ?>
<div style="padding-top: 20px;" class="container">
<div class="row">
<div class="col">
<h5>Tanggal Transaksi :</h5>
<h6><?php echo $data['tanggal_masuk'] ?></h6>
<h5>Merek Kendaraan :</h5>
<h6><?php echo $data['kendaraan'] ?></h6>
<h5>Perkiraan Selesai :</h5>
<h6><?php echo $data['selesai'] ?></h6>
<h5>Status :</h5>
<?php
$status = $data['status'];
if ($status == 'Validasi Pembayaran') { ?>
<h6 class="disabled btn btn-warning"><?php echo $data['status'] ?></h6>
<?php } else if ($status == 'Menunggu') { ?>
<h6 class="disabled btn btn-info"><?php echo $data['status'] ?></h6>
<?php } else if ($status == 'Dalam Antrian') { ?>
<h6 class="disabled btn btn-secondary"><?php echo $data['status'] ?></h6>
<?php } else if ($status == 'Ditangani') { ?>
<h6 class="disabled btn btn-danger"><?php echo $data['status'] ?></h6>
<?php } else if ($status == 'Selesai') { ?>
<h6 class="disabled btn btn-primary"><?php echo $data['status'] ?></h6>
<?php } else {
($status == 'Diambil') ?>
<h6 class="disabled btn btn-success"><?php echo $data['status'] ?></h6>
<?php }
?>
</div>
<div style="padding-bottom: 20px;" class="dropdown-divider"> <br> </div>
<div style="padding-top: 20px;" class="card card-body col">
<h5>Keterangan Status</h5>
<h6> <b> Validasi : </b> Pesanan anda menunggu persetujuan oleh admin.</h6>
<h6> <b> Menunggu : </b> Bengkel menunggu kendaraan anda.</h6>
<h6> <b> Dalam Antrian : </b> Kendaraan anda sudah masuk antrian dan akan ditangani sesuai jadwal yang ditentukan.</h6>
<h6> <b> Ditangani : </b> Kendaraan anda sedang ditangani teknisi (mungkin teknisi akan menghubungi anda melalui whatsapp jika diperlukan).</h6>
<h6> <b> Selesai : </b> Kendaraan selesai ditangani namun belum diambil.</h6>
<h6> <b> Diambil : </b> Kendaraan telah diambil pelanggan.</h6>
</div>
<?php
// $tgl1 = $data['tanggal_masuk']; // pendefinisian tanggal awal
// // $tgl2 = date('m-d-Y H-i-s', strtotime('+6 hours', strtotime($tgl1))); //operasi penjumlahan tanggal sebanyak 6 hari
// // echo $tgl2; //print tanggal
// //
// // echo $data['tanggal_masuk'];
// // $date = var_dump($data)
// // echo $date->format('d-m-Y : H:i:s'); // 21-01-2017 05:13:03
// // $date->modify('+1 month');
// // echo $date->format('d-m-Y H:i:s'); // 28-02-2017 05:13:03
// // $date->modify('-24 hours');
// // echo $date->format('d-m-Y H:i:s'); // 20-02-2017 05:13:03
// echo '1 jam kedepan: ' . date($data['tanggal_masuk'], time() + (120 * 120)) . '<br/>';
?>
</div>
</div>
<div class="row justify-content-center">
<div style="padding-left: 30%; padding-top: 100px; padding-bottom: 100px;" class="col">
<a style="width: 70%;" class="btn btn-primary btn-block" href="progress.php">Cek Kendaraan Lain</a>
</div>
</div>
</div>
</div>
<?php }
?>
</div>
<?php include 'footer.php';
include 'foot.php'; ?>