updated code

This commit is contained in:
Juthatip McDevitt 2024-06-18 23:29:05 -05:00
parent a6023e2979
commit 03c2db44cb
3 changed files with 19 additions and 18 deletions

View file

@ -127,7 +127,6 @@
<?php require('components/script.php') ?>
<script>
let accomm_setting_form = document.getElementById('accomm_setting_form');
let add_accomm_setting_form = document.getElementById('add_accomm_setting_form');
@ -257,16 +256,10 @@
xhr.send('remove_addiAccomm='+val);
}
window.onload = function(){
get_accomm();
get_addiAccomm();
}
</script>
</body>
</html>

View file

@ -19,6 +19,9 @@
<li class="nav-item" id="dashboard">
<a class="nav-link text-white" href="dashboard.php">Dashboard</a>
</li>
<li class="nav-item" id="rooms">
<a class="nav-link text-white" href="rooms.php">Rooms</a>
</li>
<li class="nav-item" id="accomm">
<a class="nav-link text-white" href="accomm.php">Accommodation</a>
</li>

View file

@ -160,22 +160,27 @@
<div class="my-3 mx-2">
<p class="room-title">Accommodation</p>
<div>
<p><i class='bx bx-checkbox-checked'></i> A king bed size (76" x 80").</p>
<p><i class='bx bx-checkbox-checked'></i> A bathroom with a shower or bathtub, toilet, and sink including toiletries.</p>
<p><i class='bx bx-checkbox-checked'></i> Furniture: A closet, bedside tables, a desk, and chairs.</p>
<p><i class='bx bx-checkbox-checked'></i> Electronic Devices: A television, telephone, mini-fridge, coffee maker, hairdryer.</p>
<p><i class='bx bx-checkbox-checked'></i> Heating and air conditioning</p>
<p><i class='bx bx-checkbox-checked'></i> Wi-Fi and wired internet access</p>
<p><i class='bx bx-checkbox-checked'></i> Housekeeping</p>
<?php
$res = selectAll('accommodation');
while($row = mysqli_fetch_assoc($res)){
echo<<<data
<p><i class='bx bx-checkbox-checked'></i>$row[name]</p>
data;
}
?>
</div>
</div>
<div class="my-3 mx-2">
<p class="room-title">Extra Accommodation</p>
<div>
<p><i class='bx bx-checkbox-checked'></i> Breakfast</p>
<p><i class='bx bx-checkbox-checked'></i> Swimming Pools</p>
<p><i class='bx bx-checkbox-checked'></i> Sauna (Steam sauna)</p>
<p><i class='bx bx-checkbox-checked'></i> Massage (Aromatherapy massage)</p>
<?php
$res = selectAll('additional_accomm');
while($row = mysqli_fetch_assoc($res)){
echo<<<data
<p><i class='bx bx-checkbox-checked'></i>$row[name] <span>($row[detail])</span></p>
data;
}
?>
</div>
</div>
<div class="d-flex gap-2 items-center justify-content-center m-4">