add sticky thead to index, langues, and mots-clés tables

This commit is contained in:
Pontoporeia
2026-05-19 21:00:40 +02:00
parent bcf3140aa2
commit c6199525f9
10 changed files with 155 additions and 21 deletions

View File

@@ -54,6 +54,16 @@ try {
$db->deleteLanguage($id);
break;
case 'delete_bulk':
$sourceIds = isset($_POST['selected_langs']) && is_array($_POST['selected_langs'])
? array_map('intval', $_POST['selected_langs'])
: [];
if (empty($sourceIds)) throw new Exception("Aucune langue sélectionnée.");
foreach ($sourceIds as $sid) {
$db->deleteLanguage($sid);
}
break;
default:
throw new Exception("Action inconnue.");
}

View File

@@ -58,6 +58,17 @@ try {
$logger->logTagAction('delete', ['tag_id' => $id]);
break;
case 'delete_bulk':
$sourceIds = isset($_POST['selected_tags']) && is_array($_POST['selected_tags'])
? array_map('intval', $_POST['selected_tags'])
: [];
if (empty($sourceIds)) throw new Exception("Aucun mot-clé sélectionné.");
foreach ($sourceIds as $sid) {
$db->deleteTag($sid);
$logger->logTagAction('delete', ['tag_id' => $sid]);
}
break;
default:
throw new Exception("Action inconnue.");
}