79 lines
4.4 KiB
PHP
Executable File
79 lines
4.4 KiB
PHP
Executable File
<div class="mainContentContainer" style="top:100px">
|
|
<div class="pageTitle"><?php echo $pageTitle;?></div>
|
|
<div class="form-row">
|
|
<a href="<?php echo SITEURL;?>services/add-service" class="submitBtn">Új szolgáltatás</a>
|
|
</div>
|
|
<div class="form-row">
|
|
<input type="text" id="service-search" class="formInputBox" placeholder="Keresés..." style="padding:6px 10px;" autocomplete="off">
|
|
</div>
|
|
<div class="form-row">
|
|
<table class="tableClass" id="services-table">
|
|
<tr>
|
|
<td style="min-width:55px;"></td>
|
|
<td>#</td>
|
|
<td>Típus</td>
|
|
<td>Kategória (NO)</td>
|
|
<td>Kategória (EN)</td>
|
|
<td>Kategória (HU)</td>
|
|
<td>Megnevezés (NO)</td>
|
|
<td>Megnevezés (EN)</td>
|
|
<td>Megnevezés (HU)</td>
|
|
<td>Leírás (NO)</td>
|
|
<td>Leírás (EN)</td>
|
|
<td>Leírás (HU)</td>
|
|
<td>Ár</td>
|
|
<td>Időtartam</td>
|
|
<td>Kategória</td>
|
|
<td>Aktív</td>
|
|
</tr>
|
|
<?php
|
|
if(is_array($results)){
|
|
foreach($results as $resultItem){
|
|
?>
|
|
<tr>
|
|
<td>
|
|
<a href="<?php echo SITEURL;?>services/update-service/<?php echo htmlspecialchars($resultItem->service_id, ENT_QUOTES, 'UTF-8');?>"><i class="fas fa-edit"></i></a>
|
|
| <a href="<?php echo site_url().'services/service-process?delete-service='.$resultItem->service_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 htmlspecialchars($resultItem->service_id, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_type, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_category_no, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_category_en, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_category_hu, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_name_no, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_name_en, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_name_hu, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_description_no, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_description_en, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_description_hu, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_price, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->service_time, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo htmlspecialchars($resultItem->serv_cat_name, ENT_QUOTES, 'UTF-8');?></td>
|
|
<td><?php echo $resultItem->is_enabled?'igen':'nem';?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
else{
|
|
echo '<tr>';
|
|
echo '<td colspan="10">Nincs találat</td>';
|
|
echo '</tr>';
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function(){
|
|
$('#service-search').on('keyup', function(){
|
|
var q = $(this).val().toLowerCase().trim();
|
|
$('#services-table tr').each(function(idx){
|
|
if(idx === 0) return;
|
|
var text = $(this).text().toLowerCase();
|
|
$(this).toggle(q === '' || text.indexOf(q) !== -1);
|
|
});
|
|
});
|
|
});
|
|
</script>
|