From: x2003bruneau Date: Sat, 17 Mar 2007 21:16:04 +0000 (+0000) Subject: #627: Easy access to promotion trombi X-Git-Tag: xorg/0.9.14~200 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=70a55e686fbc45007a6a2ba5e1465db0f11b91de;p=platal.git #627: Easy access to promotion trombi git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1585 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/ChangeLog b/ChangeLog index cf56834..e843fa8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -52,6 +52,7 @@ Bug/Wish: * Search: - #132: Better french soundex -FRU - #173: Show only countries where there is a user -FRU + - #627: Link to promotion trombi -FRU * Xnet: - #639: Fix the number of pages -FRU diff --git a/modules/search.php b/modules/search.php index 2a27ceb..ed0e901 100644 --- a/modules/search.php +++ b/modules/search.php @@ -211,6 +211,12 @@ class SearchModule extends PLModule new ThrowError('il n\'existe personne correspondant à ces critères dans la base !'); } } else { + $res = XDB::query("SELECT MIN(diminutif), MAX(diminutif) + FROM groupex.asso + WHERE cat = 'Promotions'"); + list($min, $max) = $res->fetchOneRow(); + $page->assign('promo_min', $min); + $page->assign('promo_max', $max); $page->assign('formulaire',1); } diff --git a/templates/search/quick.tpl b/templates/search/quick.tpl index 49ff5a8..43162a7 100644 --- a/templates/search/quick.tpl +++ b/templates/search/quick.tpl @@ -21,6 +21,37 @@ {**************************************************************************} {include file=search/quick.form.tpl show_js=1} + +

Voir le trombi d'une promotion

+ +

+ + + + +
+ + + +
Promotion : + + +
+
+

Comment faire une recherche ?

Nom, Prenom, Promo ...

diff --git a/templates/xnetgrp/forum.tpl b/templates/xnetgrp/forum.tpl index 3108c63..e36412b 100644 --- a/templates/xnetgrp/forum.tpl +++ b/templates/xnetgrp/forum.tpl @@ -25,7 +25,7 @@ {$banana|smarty:nodefaults}

- Cette page utiliser les préférences de Polytechnique.org.
+ Cette page utilise les préférences de Polytechnique.org.
Tu peux également retrouver tous les forums en te rendant à la rubrique Forums & PA