-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview_status.php
More file actions
122 lines (79 loc) · 1.86 KB
/
view_status.php
File metadata and controls
122 lines (79 loc) · 1.86 KB
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
<div class="col-md-12" style="text-align: center; margin-left: 2%;" >
<?php
include "koneksi.php";
$nama_klien=$_SESSION['nama_klien'];
$per_page=10;
if (isset($_GET['pg'])) {
$page = $_GET['pg'];
}else {
$page=1;
}
// Page will start from 0 and Multiple by Per Page
$start_from = ($page-1) * $per_page;
$query_limit = "LIMIT $start_from, $per_page";
$query = "SELECT * FROM pesan WHERE nama_klien='$nama_klien' ";
$sql = mysqli_query($connect,$query);
?>
<div class="box">
<h2>STATUS PEMESANAN</h2>
<?php
$sqlNama = "SELECT * FROM pesan WHERE nama_klien = '$nama_klien'";
$query = mysqli_query($connect,$sqlNama);
$tmp = mysqli_fetch_array($query);
?>
<div class="panel panel-default">
<div class="panel-body text-left" style="background-color: #E5E4E2">
<table>
<tr>
<td align="left">NIK : <?php echo $tmp['nik']; ?></td>
</tr>
<tr>
<td align="left">Nama Pemesan : <?php echo $tmp['nama_klien']; ?></td>
</tr>
</table>
</div>
</div>
<br>
<br>
<table class='table table-stripted-bordered'>
<thead>
<tr>
<th>No</th>
<th>Tanggal</th>
<th>Kategori</th>
<th>Tarif</th>
<th>Status</th>
</tr>
</thead>
<?php
$no = 1;
$count = mysqli_num_rows($sql);
if($count<1){
echo "<tr><td colspan='9'><center>Data Tidak Ditemukan!</center></td></tr>";
}else{
while($data=mysqli_fetch_array($sql,MYSQLI_BOTH)){
?>
<tr>
<td align="left"><?php echo $no++; ?></td>
<td align="left"><?php echo $data['tgl']; ?></td>
<td align="left"><?php echo $data['kategori']; ?></td>
<td align="left">Rp. <?php echo number_format($data['harga']); ?></td>
<td width="50">
<?php
$konfirm = $data['konfirm'];
if($konfirm == 1){
echo "Sudah Di Konfirmasi ";
}
elseif ($konfirm == 0 ) {
echo "Belum Di Konfirmasi Admin";
}
?>
</td>
</tr>
<?php
}
}
?>
</table>
</div>
</div>