SHOW:
|
|
- or go back to the newest paste.
| 1 | <!DOCTYPE html> | |
| 2 | <html> | |
| 3 | <head> | |
| 4 | <title>Checkout</title> | |
| 5 | </head> | |
| 6 | <body> | |
| 7 | <?php | |
| 8 | $kode_biling=antihtml(decode_autonumber($_GET['kode_biling'],"TRK")); | |
| 9 | $data_reservasi=detail_reservasi_kamar($kode_biling); | |
| 10 | $data_member=detail_member($data_reservasi[0]['id_member']); | |
| 11 | ?> | |
| 12 | <?php | |
| 13 | //include "../lib/librari.php"; | |
| 14 | //include "../lib/koneksi.php"; | |
| 15 | ||
| 16 | ?> | |
| 17 | <?php | |
| 18 | ||
| 19 | $sekarang=date('Y-m-d H:i:s');
| |
| 20 | $comax12=$data_reservasi[0]['tanggal_checkout'].' 12:00:00'; | |
| 21 | $comax17=$data_reservasi[0]['tanggal_checkout'].' 17:00:00'; | |
| 22 | ||
| 23 | //mengetahui detik berjalan | |
| 24 | $detik_sekarang=strtotime($sekarang); | |
| 25 | $detik_kcomax12=strtotime($comax12); | |
| 26 | $detik_comax17=strtotime($comax17); | |
| 27 | ||
| 28 | if($detik_sekarang>$detik_kcomax12 AND $detik_sekarang < $detik_comax17){
| |
| 29 | $tambah=50; | |
| 30 | }else if( $detik_sekarang > $detik_comax17){
| |
| 31 | $tambah=100; | |
| 32 | }else | |
| 33 | {
| |
| 34 | $tambah=0; | |
| 35 | } | |
| 36 | /* | |
| 37 | $query=mysql_query("SELECT * from tb_data_penghuni_kamar tdpk join tb_reservasi_kamar_detail trkd on tdpk.id_pemesanan_kamar_detail=trkd.id_pemesanan_kamar_detail where no_pemesanan='".decode_autonumber($data_reservasi[0]['no_pemesanan'],"TRK")."'");
| |
| 38 | while($data = mysql_fetch_array($query)) {
| |
| 39 | */ | |
| 40 | ||
| 41 | $totalseluruh=0; | |
| 42 | foreach ($data_reservasi as $reserv): | |
| 43 | ?> | |
| 44 | <?php | |
| 45 | $data_member=detail_member($reserv['id_member']); | |
| 46 | $data_kamar=detail_kamar($reserv['no_kamar']); | |
| 47 | ||
| 48 | ?> | |
| 49 | <table border="1"> | |
| 50 | <tr> | |
| 51 | <td> | |
| 52 | <img src="../image/header_checkout.jpg"> | |
| 53 | </td> | |
| 54 | <td colspan="5"> <strong>Jalan Pacitan Solo KM.02</strong> | |
| 55 | <br>Tamperan Pacitan | |
| 56 | <br>Telp.0357 882915 | |
| 57 | </td> | |
| 58 | </tr> | |
| 59 | <tr> | |
| 60 | <td colspan="6" style="text-align:center;"><strong>GUEST BILL <?php echo "No".decode_autonumber($data_reservasi[0]['no_pemesanan'],"TRK"); ?></strong></td> | |
| 61 | </tr> | |
| 62 | <tr> | |
| 63 | <td colspan="6"> | |
| 64 | <?php echo "NAME : ".$data['nama']; ?><br> | |
| 65 | <?php echo "ROOM : ".$reserv['no_kamar'];?><br> | |
| 66 | <?php echo "dicetak pada : ".tgl_indo(date('Y-m-d'));?>
| |
| 67 | </td> | |
| 68 | ||
| 69 | </tr> | |
| 70 | <tr> | |
| 71 | <td>No</td> | |
| 72 | <td>Nama Layanan</td> | |
| 73 | <td>Jumlah</td> | |
| 74 | <td>Tarif</td> | |
| 75 | <td>Tanggal Pesan Layanan</td> | |
| 76 | <td>Subtotal</td> | |
| 77 | <?php $no=1; | |
| 78 | $total=0; | |
| 79 | $total_tambahan=0; | |
| 80 | $total_tambahan+=$tambah/100*$data_kamar['harga']; ?> | |
| 81 | </tr> | |
| 82 | <?php | |
| 83 | foreach (detail_transaksi_layanan($kode_biling,$reserv['no_kamar']) as $transaksi): | |
| 84 | ?> | |
| 85 | <tr> | |
| 86 | <td><?php echo $no++;?></td> | |
| 87 | <td><?php echo $transaksi['nama_layanan'];?></td> | |
| 88 | <td><?php echo $transaksi['jumlah']; ?></td> | |
| 89 | <td><?php echo $transaksi['harga']; ?></td> | |
| 90 | <td><?php echo tgl_indo($transaksi['tanggal']); ?></td> | |
| 91 | <td><?php echo $transaksi['harga']*$transaksi['jumlah']; ?></td> | |
| 92 | </tr> | |
| 93 | ||
| 94 | ||
| 95 | ||
| 96 | <?php endforeach; ?> | |
| 97 | <tr> | |
| 98 | ||
| 99 | <th colspan="5">Tambahan Biaya</th> | |
| 100 | ||
| 101 | <th><?php echo $total_tambahan; ?></th> | |
| 102 | </tr> | |
| 103 | <?php $total+=$total_tambahan; ?> | |
| 104 | ||
| 105 | <?php $total+=$transaksi['harga']*$transaksi['jumlah']; | |
| 106 | $total= hitung_layanan_kamar($reserv['no_kamar'],$kode_biling); | |
| 107 | ?> | |
| 108 | <tr> | |
| 109 | <td>-</td> | |
| 110 | <td colspan="4">Total biaya seluruh layanan</td> | |
| 111 | <td><?php echo $total; ?></td> | |
| 112 | </tr> | |
| 113 | <tr> | |
| 114 | <td colspan="3">Signature</td> | |
| 115 | <td colspan="3">No kamar</td> | |
| 116 | </tr> | |
| 117 | <tr> | |
| 118 | <td colspan="3" height="100px;"></td> | |
| 119 | - | <?php } ?> |
| 119 | + | |
| 120 | </tr> | |
| 121 | </table> | |
| 122 | <?php endforeach; ?> | |
| 123 | <?php | |
| 124 | /* | |
| 125 | } | |
| 126 | */ | |
| 127 | ?> | |
| 128 | <br> | |
| 129 | <strong><u>ROOM KWITANSI</u></strong> <?php echo ""; ?><?php echo "No Seri ".autonumber($data_reservasi[0]['no_pemesanan'],"TRK"); ?> | |
| 130 | <br> | |
| 131 | <table border="1"> | |
| 132 | <?php | |
| 133 | $total_tambahan=0; | |
| 134 | $total=0; | |
| 135 | $total= hitung_layanan_kamar($reserv['no_kamar'],$kode_biling); ?> | |
| 136 | <tr> | |
| 137 | <td>Terima uang Dari</td><td>:</td><td><?php echo $data_member['nama_member']; ?></td> | |
| 138 | </tr> | |
| 139 | <tr> | |
| 140 | <td>Jumlah uang Yang disetor</td><td>:</td><td><?php echo $total+$total_tambahan;?></td> | |
| 141 | </tr> | |
| 142 | <tr> | |
| 143 | <td colspan="3" height="20px;"></td> | |
| 144 | </tr> | |
| 145 | <tr> | |
| 146 | <td></td><td></td><td> Pacitan , <?php echo tgl_indo(date('Y-m-d')); ?></td>
| |
| 147 | </tr> | |
| 148 | <tr> | |
| 149 | <td>Receptionist</td><td colspan="2">To Cashier</td> | |
| 150 | </tr> | |
| 151 | <tr> | |
| 152 | <td height="100px;"></td><td colspan="2" height="100px;"></td> | |
| 153 | </tr> | |
| 154 | <tr> | |
| 155 | <td colspan=""><?php echo $_SESSION['ses_admin_nama'];?></td><td colspan="2">___________________</td> | |
| 156 | </tr> | |
| 157 | </table> | |
| 158 | ||
| 159 | </body> | |
| 160 | </html> |