This repository has been archived by the owner on Feb 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
viewdata.php
219 lines (190 loc) · 10.8 KB
/
viewdata.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
<?php
include 'header.php';
$_SESSION['page'] = 'viewdata';
// if (!isset($_SESSION['username'])) {
// header("Location: index.php");
// exit();
// }
if (isset($_GET['resi'])) {
$resi = $_GET['resi'];
$cekdeliverysql = "SELECT * FROM delivery WHERE resi = ?";
$cekdeliverystmt = $pdo->prepare($cekdeliverysql);
$cekdeliverystmt->execute([$resi]);
$cekdelivery = $cekdeliverystmt->fetch();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Resi <?php echo $cekdelivery['resi']; ?></title>
</head>
<style>
.header-area {
background-image: url("assets/viewdata.jpg");
}
</style>
<div class="banner">
<div class="container">
<h1>RESI <?php echo $cekdelivery['resi']; ?></h1>
<p>Yeahh!</p>
<a href="#content" class="button button-primary">View Data</a><br>
</div>
</div>
</header>
<main>
<section id="content" class="content">
<div class="container" id="pickupreq">
<div class="row justify-content-center">
<h3 class="title">
RESI <?php echo $cekdelivery['resi']; ?>
</h3>
</div>
<br>
<br>
<form action="phps/pickupreq.php" method="POST" id="formPickUp">
<div class="col-sm-12 col-md-8 offset-md-2">
<div class="row justify-content-center">
<h3 style="font-weight: bold; font-size: 18pt; color: red;">Sender Information</h3>
</div><br>
<div class="row">
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="namasender">Nama</label>
<input type="text" class="form-control" id="namasender" name="namasender" placeholder="Masukkan nama pengirim" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['sender_name']; ?>" readonly>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="hpsender">Nomor HP</label>
<input type="number" class="form-control" id="hpsender" name="hpsender" placeholder="Ex: 08123456789" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['sender_phone_number']; ?>" readonly>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="kotasender">Kota</label>
<input type="text" class="form-control" id="kotasender" name="kotasender" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['sender_origin_city']; ?>" readonly>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="kodepossender">Kode Pos</label>
<input type="number" class="form-control" id="kodepossender" name="kodepossender" placeholder="Ex: 60123" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['sender_post_code']; ?>" readonly>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="form-group">
<label for="alamatsender">Alamat</label>
<input type="text" class="form-control" id="alamatsender" name="alamatsender" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['sender_address']; ?>" readonly>
</div>
</div>
</div>
<br>
<div class="row justify-content-center">
<h3 style="font-weight: bold; font-size: 18pt; color: red;">Package Information</h3>
</div><br>
<div class="row">
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="namabarang">Nama Barang</label>
<input type="text" class="form-control" id="namabarang" name="namabarang" placeholder="Masukkan nama barang" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['item_name']; ?>" readonly>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="jumlahbarang">Jumlah Barang</label>
<input type="number" class="form-control" id="jumlahbarang" name="jumlahbarang" placeholder="Ex: 2" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['item_quantity']; ?>" readonly>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="hargabarang">Harga Barang</label>
<input type="number" class="form-control" id="hargabarang" name="hargabarang" placeholder="Ex: 100000" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['item_value']; ?>" readonly>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="beratbarang">Berat Barang Keseluruhan</label>
<input type="text" class="form-control" id="beratbarang" name="beratbarang" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['item_weight']; ?> kg" readonly>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="form-group">
<label for="layanan">Jenis Layanan</label>
<input type="text" class="form-control" id="layanan" name="layanan" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['delivery_type']; ?>" readonly>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="form-group">
<label for="catatan">Catatan (opsional)</label>
<input type="text" class="form-control" id="catatan" name="catatan" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['item_notes']; ?>" readonly>
</div>
</div>
</div>
<br>
<div class="row justify-content-center">
<h3 style="font-weight: bold; font-size: 18pt; color: red;">Recipient Information</h3>
</div><br>
<div class="row">
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="namarecipient">Nama</label>
<input type="text" class="form-control" id="namarecipient" name="namarecipient" placeholder="Masukkan nama penerima" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['receiver_name']; ?>" readonly>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="hprecipient">Nomor HP</label>
<input type="number" class="form-control" id="hprecipient" name="hprecipient" placeholder="Ex: 08123456789" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['receiver_phone_number']; ?>" readonly>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="kotarecipient">Kota</label>
<input type="text" class="form-control" id="kotarecipient" name="kotarecipient" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['receiver_origin_city']; ?>" readonly>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="form-group">
<label for="kodeposrecipient">Kode Pos</label>
<input type="number" class="form-control" id="kodeposrecipient" name="kodeposrecipient" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['receiver_post_code']; ?>" readonly>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="form-group">
<label for="alamatrecipient">Alamat</label>
<input type="text" class="form-control" id="alamatrecipient" name="alamatrecipient" style="height:40px; font-size: 12pt;" value="<?php echo $cekdelivery['receiver_address']; ?>" readonly>
</div>
</div>
</div>
<br>
<center>
<?php
if (isset($_SESSION['username'])) {
if ($_SESSION['username'] == 'admin') {
echo "<a href='admin.php#content' class='button button-primary'>Back</a><br>";
} else {
echo "<a href='history.php#content' class='button button-primary'>Back</a><br>";
}
}
?>
</center>
</div>
</div>
</form>
</div>
</section>
<?php include 'footer.php' ?>