X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fevents.php;h=c4933f7d7201b9f2dca329033df74b656fb0c265;hb=5d617d8d3d0258d8e810ebd622c9f45c3193037b;hp=36451f4357cbe4a0346017b735822539e4632c49;hpb=46e1d3ba7b97df8946513fae961b7898b6e9acdd;p=platal.git diff --git a/modules/events.php b/modules/events.php index 36451f4..c4933f7 100644 --- a/modules/events.php +++ b/modules/events.php @@ -59,6 +59,7 @@ class EventsModule extends PLModule AND (promo_min = 0 OR promo_min <= {?}) AND (promo_max = 0 OR promo_max >= {?}) AND (priorite >= {?}) + AND (state = 'active') $exclude ORDER BY RAND() LIMIT 1", @@ -244,6 +245,7 @@ class EventsModule extends PLModule $table_editor->describe('promo_min', 'promo. min (0 aucune)', false); $table_editor->describe('promo_max', 'promo. max (0 aucune)', false); $table_editor->describe('titre', 'titre', true); + $table_editor->describe('state', 'actif', true); $table_editor->describe('text', 'texte (html) de l\'astuce', false); $table_editor->describe('priorite', 'priorité (0=min, 256=max)', false); $table_editor->apply($page, $action, $id);