v1.9.17: database.html - modal + pagination, boutons S88

Refonte des boutons 'Consulter la base de donnée': ils ouvrent
désormais un grand modal Bootstrap (modal-xl scrollable) avec
pagination 20 lignes/page (Précédent/Suivant + indicateur de plage).
Le dropdown 'Nombre de mesures' est supprimé.

Ajout des boutons Senseair S88 dans les 3 cartes pointant sur
data_S88, et renommage du bouton MH-Z19 pour le distinguer.

Backend: sqlite/read.py accepte un OFFSET optionnel (3e argument,
défaut 0) et launcher.php endpoint table_mesure transmet ?offset=N.
Rétrocompatible.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
PaulVua
2026-06-01 16:51:49 +02:00
parent 6d157cd099
commit 0f94fda0ba
5 changed files with 196 additions and 233 deletions

View File

@@ -1020,10 +1020,11 @@ if ($type == "s88") {
if ($type == "table_mesure") {
$table=$_GET['table'];
$limit=$_GET['limit'];
$offset=(int)($_GET['offset'] ?? 0);
$download=$_GET['download'];
if ($download==="false") {
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/sqlite/read.py '.$table.' '.$limit;
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/sqlite/read.py '.$table.' '.$limit.' '.$offset;
$output = shell_exec($command);
echo $output;
} else{