CodeIgniter 3 app for dinbestehjelper.no. Excludes vendor/, local backup folders (new/, archive/, archived/) and DB dumps (*.sql) via .gitignore. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P16ttGUge8zj91dm6WrmEb
72 lines
3.6 KiB
PHP
72 lines
3.6 KiB
PHP
<div class="mainContentContainer" style="top:100px">
|
|
<div class="pageTitle"><?php echo $pageTitle;?></div>
|
|
<div class="form-row">
|
|
<a href="<?php echo SITEURL;?>bookings/add-booking" class="submitBtn">Új foglalás</a>
|
|
</div>
|
|
<div class="form-row">
|
|
<table class="tableClass">
|
|
<tr>
|
|
<td></td>
|
|
<td>#</td>
|
|
<td>Vendég neve</td>
|
|
<td>Email</td>
|
|
<td>Telefon</td>
|
|
<td>Csoport</td>
|
|
<td>Foglalási dátum</td>
|
|
<td>Szolg. kezdete</td>
|
|
<td>Szolg. vége</td>
|
|
<td>Szolgáltatások</td>
|
|
</tr>
|
|
<?php
|
|
if(is_array($results)){
|
|
foreach($results as $resultItem){
|
|
?>
|
|
<tr>
|
|
<td>
|
|
<a href="<?php echo SITEURL;?>bookings/update-booking/<?php echo $resultItem->booking_id ;?>"><i class="fas fa-edit"></i></a>
|
|
| <a href="<?php echo site_url().'bookings/booking-process?delete-booking='.$resultItem->booking_id;?>"><i class="fas fa-trash-alt" style="font-size: 14px;color:#585858;"></i></a>
|
|
</td>
|
|
<td>#<?php echo $resultItem->booking_id;?></td>
|
|
<td><?php echo $resultItem->guest_name;?></td>
|
|
<td><?php echo $resultItem->guest_email;?></td>
|
|
<td><?php echo $resultItem->guest_phone;?></td>
|
|
<td><?php echo $resultItem->group_name;?></td>
|
|
<td style="min-width:85px;"><?php echo $resultItem->booking_date;?></td>
|
|
<td><?php echo $resultItem->booking_start_time;?></td>
|
|
<td><?php echo $resultItem->booking_finish_time;?></td>
|
|
<td><?php
|
|
if(!empty($resultItem->services)){
|
|
echo '<table class="tableInTable">';
|
|
echo '<tr>';
|
|
echo '<td>Szolgáltalás neve</td>';
|
|
echo '<td>Mennyiség</td>';
|
|
echo '<td>Ár</td>';
|
|
echo '<td>Időtartam</td>';
|
|
echo '</tr>';
|
|
|
|
foreach($resultItem->services as $serviceItem){
|
|
echo '<tr>';
|
|
echo '<td>'.$serviceItem->service_name.'</td>';
|
|
echo '<td>'.$serviceItem->quantity.'</td>';
|
|
echo '<td>'.$serviceItem->service_price.'</td>';
|
|
echo '<td>'.$serviceItem->service_time.'</td>';
|
|
echo '</tr>';
|
|
}
|
|
echo '</table>';
|
|
}
|
|
|
|
?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
else{
|
|
echo '<tr>';
|
|
echo '<td colspan="10">Nincs bejegyzett foglalás</td>';
|
|
echo '</tr>';
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|