fix eomployees
This commit is contained in:
parent
7f78a61808
commit
e876cb9775
@ -319,11 +319,7 @@ $users = $stmtUsers->fetchAll(PDO::FETCH_ASSOC);
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if (empty($employees)): ?>
|
<?php if (!empty($employees)): ?>
|
||||||
<tr>
|
|
||||||
<td colspan="9" class="text-muted">No employees found</td>
|
|
||||||
</tr>
|
|
||||||
<?php else: ?>
|
|
||||||
<?php foreach ($employees as $row): ?>
|
<?php foreach ($employees as $row): ?>
|
||||||
<?php
|
<?php
|
||||||
$fullName = trim(($row['first_name'] ?? '') . ' ' . ($row['last_name'] ?? ''));
|
$fullName = trim(($row['first_name'] ?? '') . ' ' . ($row['last_name'] ?? ''));
|
||||||
@ -384,6 +380,7 @@ $users = $stmtUsers->fetchAll(PDO::FETCH_ASSOC);
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -558,10 +555,12 @@ $users = $stmtUsers->fetchAll(PDO::FETCH_ASSOC);
|
|||||||
],
|
],
|
||||||
pageLength: 25,
|
pageLength: 25,
|
||||||
language: {
|
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
|
// Select2 on user selects
|
||||||
$('#addAuthUserId, #editAuthUserId').select2({
|
$('#addAuthUserId, #editAuthUserId').select2({
|
||||||
theme: 'bootstrap-5',
|
theme: 'bootstrap-5',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user