fix eomployees
This commit is contained in:
parent
7f78a61808
commit
e876cb9775
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user