-
Notifications
You must be signed in to change notification settings - Fork 0
/
pesanan.php
77 lines (62 loc) · 2.23 KB
/
pesanan.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
<link rel="stylesheet" href="datepicker/themes/base/jquery.ui.all.css">
<script src="datepicker/js/jquery-1.7.2.js"></script>
<script src="datepicker/ui/jquery.ui.core.js"></script>
<script src="datepicker/ui/jquery.ui.widget.js"></script>
<script src="datepicker/ui/jquery.ui.datepicker.js"></script>
<script>
$(function() {
$( "#datepicker" ).datepicker({
dateFormat:"yy/mm/dd",
changeMonth: true,
changeYear: true
});
});
</script>
<?php
include 'koneksi.php';
$paket=$_GET['paket'];
$query = "SELECT * FROM paket WHERE kategori='$paket'";
$sql = mysqli_query($connect,$query);
$data = mysqli_fetch_array($sql,MYSQLI_BOTH);
?>
<div class="row">
<div class="box">
<hr>
<h2 class="page-header"><center>FORM RESERVED</center> </h2>
<hr>
<div class="col-lg-10" style="margin-left:2%;">
<div class="row">
<div class="col-md-10">
<br><br>
<form action="proses_pesanan.php" method="POST" enctype="multipart/form">
<table class="table table-hover">
<input type="hidden" name="id_paket" value="<?php echo $data['no']; ?>">
<tr>
<td width="200px">NIK</td>
<td width="10px">:</td>
<td><input type="text" name="nik" class="form-control input-md" value="<?php echo $_SESSION['nik']; ?>"> </td>
</tr>
<tr>
<td width="200px">NAMA</td>
<td width="10px">:</td>
<td><input type="text" name="nama_klien" class="form-control input-md" value="<?php echo $_SESSION['nama_klien']; ?>"></td>
</tr>
<tr>
<td width="200px">TANGGAL</td>
<td width="10px">:</td>
<td><input type="text" name="tgl" class="form-control input-md" id="datepicker"></td>
</tr>
<tr>
<td width="200px">HARGA (Rp.)</td>
<td width="10px">:</td>
<td><input type="text" name="harga" class="form-control input-md" value="<?php echo $data['harga']; ?>"></td>
</tr>
<tr>
<td width="200px">KATEGORI</td>
<td width="10px">:</td>
<td><input type="text" name="kategori" class="form-control input-md" value="<?php echo $data['kategori']; ?>"></td>
</tr>
</table>
<center><button type="submit" id="" name="simpan" class="btn btn-primary">Simpan</button></center>
</div>
</div>