Fix dialog margins, add admin-dialog__body/styles, give trash page horizontal margins

This commit is contained in:
Pontoporeia
2026-05-19 18:08:00 +02:00
parent d619d2f116
commit 2cb8d71fe9
29 changed files with 608 additions and 11 deletions

View File

@@ -473,6 +473,34 @@ try {
$trashCount = $db->countTrashedTheses();
$tab = $_GET['tab'] ?? 'list';
$trashedTheses = ($tab === 'trash') ? $db->getTrashedTheses() : [];
// ── Tmp file stats ───────────────────────────────────────────────────
$filepondDir = STORAGE_ROOT . '/tmp/filepond';
$trashDir = STORAGE_ROOT . '/tmp/_trash';
$tmpFilepondCount = 0;
$tmpTrashCount = 0;
$tmpTotalCount = 0;
if (is_dir($filepondDir)) {
$items = @scandir($filepondDir);
if ($items !== false) {
foreach ($items as $item) {
if ($item !== '.' && $item !== '..' && $item !== '.gitkeep') {
$tmpFilepondCount++;
}
}
}
}
if (is_dir($trashDir)) {
$items = @scandir($trashDir);
if ($items !== false) {
foreach ($items as $item) {
if ($item !== '.' && $item !== '..') {
$tmpTrashCount++;
}
}
}
}
$tmpTotalCount = $tmpFilepondCount + $tmpTrashCount;
} catch (Exception $e) {
error_log("Error loading theses list: " . $e->getMessage());
die("Erreur lors du chargement de la liste.");