Files
dinbestehjelper.no/application/views/admin/includes/groups-form.php
T
Astral04andClaude Opus 4.8 4e1a69c8d4 Initial import of Din Beste Hjelper site
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
2026-08-04 12:52:43 +00:00

53 lines
2.5 KiB
PHP

<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<div class="form-row">
<a href="<?php echo SITEURL;?>groups/add-group" class="submitBtn">Új csoport</a>
</div>
<div class="form-row">
<table class="tableClass">
<tr>
<td></td>
<td>#</td>
<td>Profilkép</td>
<td>Név</td>
<td>Leírás</td>
<td>Képességek</td>
<td>Aktív</td>
</tr>
<?php
$skillList = '';
if(is_array($results)){
foreach($results as $resultItem){
$skillList = '<div>';
if(is_array($resultItem->skillList)){
foreach($resultItem->skillList as $skillListItem){
$skillList .= '<div>'.$skillListItem->service_name.' / '.$skillListItem->service_category.' (#'.$skillListItem->service_id.')</div>';
}
}
$skillList .= '</div>';
?>
<tr>
<td>
<a href="<?php echo SITEURL;?>groups/update-group/<?php echo $resultItem->group_id;?>"><i class="fas fa-edit"></i></a>
| <a href="<?php echo site_url().'groups/group-process?delete-group='.$resultItem->group_id;?>"><i class="fas fa-trash-alt" style="font-size: 14px;color:#585858;"></i></a>
</td>
<td>#<?php echo $resultItem->group_id;?></td>
<td><img src="<?php echo SITEURL.'assets/img/'.$resultItem->group_profile_img;?>" style="width:50px;margin:0;" /></td>
<td><?php echo $resultItem->group_name;?></td>
<td><?php echo $resultItem->group_info;?></td>
<td><?php echo $skillList;?></td>
<td><?php echo $resultItem->is_active?'igen':'nem';?></td>
</tr>
<?php
}
}
else{
echo '<tr>';
echo '<td colspan="10">Nincs találat</td>';
echo '</tr>';
}
?>
</table>
</div>
</div>