-
Notifications
You must be signed in to change notification settings - Fork 2
/
detail-paket.php
234 lines (231 loc) · 12.5 KB
/
detail-paket.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
<!DOCTYPE html>
<?php
include('../database/config.php');
$namapaket=$_GET['judul'];
$gambar=$_GET['gambar'];
$idpaket=$_GET['idpaket'];
?>
<html lang="en">
<body>
<section id="title" class="emerald">
<div class="container">
<div class="row">
<div class="col-sm-6">
<h1><?php echo $namapaket;?></h1>
</div>
</div>
</div>
</section><!--/#title-->
<section id="blog" class="container">
<div class="row">
<aside class="col-sm-4 col-sm-push-8">
<div class="widget search">
<h2><?php echo $namapaket;?></h2>
<div class="form-group">
<?php if(isset($_SESSION['admin'])OR empty($_SESSION['user'])){}else{?>
<button class="btn btn-success btn-md btn-block" data-popup-target="#example-popup"><h1>Booking</h3></button>
<?php }?>
</div>
</div>
<div id="example-popup" class="popup">
<div class="popup-body"><span class="popup-exit"></span>
<div class="popup-content">
<h2 class="popup-title">Konfirmasi Pemesanan</h2>
<form role="form" action="index.php?halaman=terimapesanbaru" method='post' enctype="multipart/form-data">
<div class="box-body">
<?php
$hari = date("Y-m-d");
$tambah = mktime(0,0,0,date("m"),date("d")+3,date("Y"));
$awal = date("Y-m-d", $tambah);
$querypesan=mysql_query("SELECT *
FROM paket
WHERE id_paket='$idpaket'");
$cetakpesan=mysql_fetch_array($querypesan)
?>
<div class="form-group">
<label for="Input">Nama Paket</label>
<input type="text" class="form-control" value="<?php echo $cetakpesan['nama_paket'] ?>" name="namapaket" readonly>
</div>
<div class="form-group">
<label for="Input">Durasi</label>
<input type="text" class="form-control" value="<?php echo $cetakpesan['durasi'] ?>" name="durasi" readonly>
</div>
<div class="form-group">
<label for="Input">Harga</label>
<input type="text" class="form-control" value="<?php echo $cetakpesan['harga'] ?>" name="harga" readonly>
</div>
<div class="form-group">
<label for="Input">Tanggal</label></br>
<input type="date" name="day" min="<?php echo $awal ?>" required>
</div>
<input type="hidden" class="form-control" value="<?php echo $_SESSION["userid"] ?>" name="iduser" readonly>
<input type="hidden" class="form-control" value="<?php echo $cetakpesan["id_paket"] ?>" name="idpaket" readonly>
<!--<div class="form-group">
<label for="Input">Objek</label>
<?php
$queryobjek1=mysql_query("SELECT *
FROM paket, objek, detail_paket_objek
WHERE objek.id_objek = detail_paket_objek.id_objek
AND paket.id_paket = detail_paket_objek.id_paket
AND paket.id_paket='$idpaket'
LIMIT 0 , 30;");
while($cetakobjek1=mysql_fetch_array($queryobjek1)){
?>
<input type="text" class="form-control" value"<?php echo $cetakobjek1['nama_objek']?>" readonly>
<?php }?>
</div>-->
<div class="box-footer">
<?php ?>
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="popup-overlay"></div>
</aside>
<div class="col-sm-8 col-sm-pull-4">
<div class="blog">
<div class="blog-item">
<img class="img-responsive img-blog" src="<?php echo $gambar;?>" width="100%" alt="" />
<div class="blog-content">
<h3><?php echo $namapaket;?></h3>
<h5>Harga Mulai Rp.<?php echo $cetakpesan['harga']; ?>,- Pemberangkatan dari Solo dan Sekitarnya</br></h5>
<p>
<section id="portfolio" class="container">
<ul class="portfolio-filter">
<li><a class="btn btn-default active" href="#" data-filter="*">All</a></li>
<li><a class="btn btn-default" href="#" data-filter=".objek">Objek</a></li>
<li><a class="btn btn-default" href="#" data-filter=".hotel">Hotel</a></li>
<li><a class="btn btn-default" href="#" data-filter=".bus">Bus</a></li>
</ul>
<ul class="portfolio-items col-9">
<li class="portfolio-item objek">
<?php
$queryobjek=mysql_query("SELECT *
FROM paket, objek, detail_paket_objek
WHERE objek.id_objek = detail_paket_objek.id_objek
AND paket.id_paket = detail_paket_objek.id_paket
AND paket.id_paket='$idpaket'
LIMIT 0 , 30;");
?>
<p class="lead">
<table >
<tr>
<td><h2>Objek</h2></td>
</tr>
<?php while($cetakobjek=mysql_fetch_array($queryobjek)){?>
<tr>
<td><h3><?php echo $cetakobjek['nama_objek']?></h3></td>
</tr>
<tr>
<td><h5>Alamat :</h5></td>
<td><h5><p><?php echo $cetakobjek['alamat_objek']?></p></h5></td>
</tr>
<tr>
<td><h5>Deskripsi :</h5></td>
<td><h5><textarea type="textarea" class="form-control" placeholder="<?php echo $cetakobjek['deskripsi_objek']?>" disabled></textarea></h5></td>
</tr>
<tr>
<td></td>
<td><img src="<?php echo $cetakobjek['gambar']; ?>" height="300" width="100" alt=""></td>
</tr>
<?php } ?>
</table>
</p>
</li>
<li class="portfolio-item hotel">
<?php
$queryhotel=mysql_query("SELECT *
FROM paket, hotel, detail_paket_hotel
WHERE hotel.id_hotel = detail_paket_hotel.id_hotel
AND paket.id_paket = detail_paket_hotel.id_paket
AND paket.id_paket='$idpaket'
LIMIT 0 , 30;");
?>
<p class="lead">
<table>
<tr>
<td><h2>Hotel</h2></td>
</tr>
<?php while($cetakhotel=mysql_fetch_array($queryhotel)){?>
<tr>
<td><h3><?php echo $cetakhotel['nama_hotel']?></h3></td>
</tr>
<tr>
<td><h5>Alamat :</h5></td>
<td><h5><?php echo $cetakhotel['alamat']?></h5></td>
</tr>
<tr>
<td></td>
<td><img src="<?php echo $cetakhotel['gambar']; ?>" height="300" width="100" alt=""></td>
</tr>
<?php } ?>
</table>
</p>
</li>
<li class="portfolio-item bus">
<?php
$querybus=mysql_query("SELECT *
FROM paket, bus, detail_paket_bus
WHERE bus.id_bus = detail_paket_bus.id_bus
AND paket.id_paket = detail_paket_bus.id_paket
AND paket.id_paket='$idpaket'
LIMIT 0 , 30;");
?>
<p class="lead">
<table>
<tr>
<td><h2>Bus</h2></td>
</tr>
<?php while($cetakbus=mysql_fetch_array($querybus)){?>
<tr>
<td><h3><?php echo $cetakbus['nama_bus']?></h3></td>
</tr>
<tr>
<td><h2>Fasilitas</h2></td>
</tr>
<tr>
<td><h5>Jumlah Kursi :</h5></td>
<td><h5><?php echo $cetakbus['jumlah_kursi']?></h5></td>
</tr>
<tr>
<td><h5>AC :</h5></td>
<td><h5><?php if($cetakbus['AC']>1){
echo "Tidak ada";}else{echo "ada";}?></h5></td>
</tr>
<tr>
<td><h5>Toilet :</h5></td>
<td><h5><?php if($cetakbus['toilet']>1){
echo "Tidak ada";}else{echo "ada";}?></h5></td>
</tr>
<tr>
<td><h5>Full Music :</h5></td>
<td><h5><?php if($cetakbus['full_music']>1){
echo "Tidak ada";}else{echo "ada";}?></h5></td>
</tr>
<tr>
<td><h5>Charger :</h5></td>
<td><h5><?php if($cetakbus['charger']>1){
echo "Tidak ada";}else{echo "ada";}?></h5></td>
</tr>
<tr>
<td></td>
<td><img src="<?php echo $cetakbus['gambar']; ?>" height="300" width="100" alt=""></td>
</tr>
<?php } ?>
</table>
</p>
</li>
</ul>
<hr>
<p> </p>
</div>
</div><!--/.blog-item-->
</div>
</div><!--/.col-md-8-->
</div><!--/.row-->
</section><!--/#blog-->
</body>
</html>