fix eomployees

This commit is contained in:
Claudio 2025-12-11 10:48:19 +01:00
parent 7f78a61808
commit e876cb9775

View File

@ -319,11 +319,7 @@ $users = $stmtUsers->fetchAll(PDO::FETCH_ASSOC);
</tr>
</thead>
<tbody>
<?php if (empty($employees)): ?>
<tr>
<td colspan="9" class="text-muted">No employees found</td>
</tr>
<?php else: ?>
<?php if (!empty($employees)): ?>
<?php foreach ($employees as $row): ?>
<?php
$fullName = trim(($row['first_name'] ?? '') . ' ' . ($row['last_name'] ?? ''));
@ -384,6 +380,7 @@ $users = $stmtUsers->fetchAll(PDO::FETCH_ASSOC);
<?php endforeach; ?>
<?php endif; ?>
</tbody>
</table>
</div>
@ -558,10 +555,12 @@ $users = $stmtUsers->fetchAll(PDO::FETCH_ASSOC);
],
pageLength: 25,
language: {
url: 'https://cdn.datatables.net/plug-ins/1.13.6/i18n/it-IT.json'
url: 'https://cdn.datatables.net/plug-ins/1.13.6/i18n/it-IT.json',
emptyTable: 'Nessun dipendente presente'
}
});
// Select2 on user selects
$('#addAuthUserId, #editAuthUserId').select2({
theme: 'bootstrap-5',