From 1f17ab93163aacbfd5e1aa08728691270bb5c642 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Thu, 10 Aug 2006 23:27:51 +0000 Subject: [PATCH] Search UI is more coherent : * advanced and quick search have the same look * no [link] lost alone on a line && fix advanced search git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@800 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/search.php | 1 + templates/search/adv.form.tpl | 41 ++++++++++++++++++++++++----------------- templates/search/adv.links.tpl | 2 +- templates/search/index.tpl | 11 ++++------- templates/search/quick.form.tpl | 27 +++++++++++++++++++-------- 5 files changed, 49 insertions(+), 33 deletions(-) diff --git a/modules/search.php b/modules/search.php index eb7c9f1..0db2640 100644 --- a/modules/search.php +++ b/modules/search.php @@ -145,6 +145,7 @@ class SearchModule extends PLModule AND w.uid='.S::v('uid').') '.$globals->search->result_where_statement." $where + GROUP BY u.user_id ORDER BY ".($order?($order.', '):'') .implode(',',array_filter(array($fields->get_order_statement(), 'promo DESC, NomSortKey, prenom'))).' diff --git a/templates/search/adv.form.tpl b/templates/search/adv.form.tpl index 2ac5780..f35bf4e 100644 --- a/templates/search/adv.form.tpl +++ b/templates/search/adv.form.tpl @@ -20,13 +20,23 @@ {* *} {**************************************************************************} -

Recherche avancée

- -

[Recherche simple]

+

Recherche dans l'annuaire

+ + + + + + +
+ Recherche avancée [<<< Recherche simple] +
Nom @@ -300,24 +310,21 @@ Commentaire contient
+
+ +
+ {if $smarty.session.auth ge AUTH_COOKIE} + + mettre les fiches modifiées récemment en premier + {/if} +
- {if $smarty.session.auth ge AUTH_COOKIE} -

- - mettre les fiches modifiées récemment en premier -

- {/if}

- -

N.B. Le caractère joker * peut remplacer une ou plusieurs lettres dans les recherches. diff --git a/templates/search/adv.links.tpl b/templates/search/adv.links.tpl index c8bc4a8..3f6a69b 100644 --- a/templates/search/adv.links.tpl +++ b/templates/search/adv.links.tpl @@ -20,7 +20,7 @@ {* *} {**************************************************************************} -{if $do_title}

Recherche avancée

{/if} +{if $do_title}

Recherche dans l'annuaire

{/if}