diff --git a/php/inc_fx_fiche_audit.php b/php/inc_fx_fiche_audit.php index fa76c4d..791baaf 100644 --- a/php/inc_fx_fiche_audit.php +++ b/php/inc_fx_fiche_audit.php @@ -405,13 +405,15 @@ function fxFicheAuditAdminListEvents() return array(); } + // Pas de LIMIT : le select admin a une recherche (bootstrap-select). $sql = 'SELECT e.eve_id, e.eve_nom_fr, e.eve_date_debut,' . ' (SELECT COUNT(*) FROM inscriptions_fiche_audit_log l WHERE l.eve_id = e.eve_id) AS fal_nb' . ' FROM inscriptions_evenements e' . ' WHERE e.eve_actif = 1' . ' OR EXISTS (SELECT 1 FROM inscriptions_fiche_audit_log l2 WHERE l2.eve_id = e.eve_id)' - . ' ORDER BY e.eve_date_debut DESC, e.eve_id DESC' - . ' LIMIT 300'; + . ' ORDER BY' + . ' CASE WHEN EXISTS (SELECT 1 FROM inscriptions_fiche_audit_log lx WHERE lx.eve_id = e.eve_id) THEN 0 ELSE 1 END,' + . ' e.eve_date_debut DESC, e.eve_id DESC'; $arrRows = $objDatabase->fxGetResults($sql); return is_array($arrRows) ? $arrRows : array(); diff --git a/superadm/php/inc_fx_fiche_audit_admin.php b/superadm/php/inc_fx_fiche_audit_admin.php index 28a3afb..fd6d8b6 100644 --- a/superadm/php/inc_fx_fiche_audit_admin.php +++ b/superadm/php/inc_fx_fiche_audit_admin.php @@ -156,11 +156,19 @@ function fxFicheAuditAdminRenderPage($strFlash = '', $strError = '')

Tables absentes — impossible d'afficher les logs.

-
+ -
+
- 0 ? ' · ' . $intNb . ' log(s)' : ''); + // data-tokens : recherche aussi par #id / numéro + $strTokens = $strNomEve . ' ' . $intEveOpt; ?> - + Tape un nom ou un #id pour filtrer la liste.
-
-
+