-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
184 lines (140 loc) · 6.29 KB
/
footer.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
<!-- Footer Section Begin -->
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="footer__about">
<div class="footer__logo">
<a href="#"><img src="gambar/sistem/logo4.png" alt=""></a>
</div>
<p>Cari kamar terbaik dengan harga termurah. mewah kamar nya, murah harganya.</p>
</div>
</div>
<div class="col-lg-2 offset-lg-1 col-md-3 col-sm-6">
<div class="footer__widget">
<h6>Informasi</h6>
<ul>
<li><a href="tentang.php">Tentang</a></li>
<li><a href="kontak.php">Kontak Kami</a></li>
<li><a href="masuk.php">Login Customer</a></li>
<li><a href="daftar.php">Daftar Customer</a></li>
</ul>
</div>
</div>
<div class="col-lg-2 col-md-3 col-sm-6">
<div class="footer__widget">
<h6>Kamar</h6>
<ul>
<?php
$data = mysqli_query($koneksi,"SELECT * FROM kamar ");
while($d = mysqli_fetch_object($data)){
?>
<li><a href="kategori.php?id=<?php echo $d->kamar_id; ?>"><?php echo $d->kamar_nama; ?></a></li>
<?php
}
?>
<li><a href="kamar.php">Semua Kamar</a></li>
</ul>
</div>
</div>
<div class="col-lg-3 offset-lg-1 col-md-6 col-sm-6">
<div class="footer__widget">
<div class="footer__newslatter text-white">
<br>
<h6 class="m-0">Fasilitas Hotel</h6>
<a><i class="fa fa-taxi"> Antar Jemput Bandara</i></a>
<a><i class="fa fa-heart"> Nyaman </i></a>
<a><i class="fa fa-automobile"> Parkir </i></a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 text-center">
<div class="footer__copyright__text">
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
<p>Copyright © <?php echo date('Y'); ?> All rights reserved | This template is made with by <a href="https://colorlib.com" target="_blank">Hotel Al-Huriah</a></p>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
</div>
</div>
</div>
</div>
</footer>
<!-- Footer Section End -->
<!-- Search Begin -->
<div class="search-model">
<div class="h-100 d-flex align-items-center justify-content-center">
<div class="search-close-switch">+</div>
<form action="kamar.php" method="get" class="search-model-form">
<input type="text" name="cari" placeholder="Masukkan Pencarian .." id="search-input" placeholder="Search here.....">
</form>
</div>
</div>
<!-- Search End -->
<!-- Js Plugins -->
<script src="frontend/js/jquery-3.3.1.min.js"></script>
<script src="frontend/js/bootstrap.min.js"></script>
<script src="frontend/js/jquery.nice-select.min.js"></script>
<script src="frontend/js/jquery.nicescroll.min.js"></script>
<script src="frontend/js/jquery.magnific-popup.min.js"></script>
<script src="frontend/js/jquery.countdown.min.js"></script>
<script src="frontend/js/jquery.slicknav.js"></script>
<script src="frontend/js/mixitup.min.js"></script>
<script src="frontend/js/owl.carousel.min.js"></script>
<script src="assets/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="frontend/js/main.js"></script>
</body>
<script>
$(document).ready(function(){
$(document).on("click",".rating_bintang", function(){
var ke = $(this).attr("ke");
var angka = $(this).attr("id");
$(".rating_"+ke+"_1").removeClass("fa-star").addClass("fa-star-o");
$(".rating_"+ke+"_2").removeClass("fa-star").addClass("fa-star-o");
$(".rating_"+ke+"_3").removeClass("fa-star").addClass("fa-star-o");
$(".rating_"+ke+"_4").removeClass("fa-star").addClass("fa-star-o");
$(".rating_"+ke+"_5").removeClass("fa-star").addClass("fa-star-o");
for(a = 1; a <= angka; a++){
var xxx = ".rating_"+ke+"_"+a;
$(xxx).toggleClass("fa-star","addOrRemove");
$(xxx).toggleClass("fa-star-o","addOrRemove");
}
$(".form_rating_"+ke).val(angka);
});
function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
$('.jumlah').on("keyup",function(){
var nomor = $(this).attr('nomor');
var jumlah = $(this).val();
var harga = $("#harga_"+nomor).val();
var total = jumlah*harga;
var t = numberWithCommas(total);
$("#total_"+nomor).text("Rp. "+t+" ,-");
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
$('input:checkbox').change(function (){
var total = 0;
$('input:checkbox:checked').each(function(){
total += isNaN(parseInt($(this).attr('id'))) ? 0 : parseInt($(this).attr('id'));
});
$("#total").text("Rp. " + numberWithCommas(total) + ",-");
var harga = $("#harga_per_malam").val();
var x_total = parseInt(harga) + parseInt(total);
$("#total_harga").val( x_total );
$(".total_bayar").text("Rp. " + numberWithCommas(x_total) + ",-");
});
$('.datepicker').datepicker({
format: 'dd-mm-yyyy',
startDate: '0d',
autoclose: true
});
});
</script>
</html>