add all files
This commit is contained in:
+94
@@ -0,0 +1,94 @@
|
||||
<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">
|
||||
<select id="booking-filter" class="formDropdownBox" style="padding:0">
|
||||
<option value="">Minden</option>
|
||||
<?php
|
||||
foreach($workers as $workerItem){
|
||||
echo '<option value="'.$workerItem->worker_id.'" '.(isset($_GET['worker']) && $_GET['worker'] == $workerItem->worker_id?' selected':'').'>'.$workerItem->worker_name.'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</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>Dolgozó</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;?>" onclick="return confirm('Valóban törölni szeretnéd?');"><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->worker_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>Típus</td>';
|
||||
echo '<td>Szolgáltalás neve</td>';
|
||||
echo '<td>Ár</td>';
|
||||
echo '<td>Időtartam</td>';
|
||||
echo '</tr>';
|
||||
foreach($resultItem->services as $serviceItem){
|
||||
echo '<tr>';
|
||||
echo '<td>'.$serviceItem->service_type.'</td>';
|
||||
echo '<td>'.$serviceItem->service_name.'</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>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#booking-filter').change(function(){
|
||||
if($('#booking-filter').val() != ''){
|
||||
$(location).attr('href', '<?php SITEURL;?>bookings?worker='+$('#booking-filter').val());
|
||||
}
|
||||
else{
|
||||
$(location).attr('href', '<?php SITEURL;?>bookings');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user