1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
6 {* This program is free software; you can redistribute it and/or modify *}
7 {* it under the terms of the GNU General Public License as published by *}
8 {* the Free Software Foundation; either version 2 of the License, or *}
9 {* (at your option) any later version. *}
11 {* This program is distributed in the hope that it will be useful, *}
12 {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13 {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14 {* GNU General Public License for more details. *}
16 {* You should have received a copy of the GNU General Public License *}
17 {* along with this program; if not, write to the Free Software *}
18 {* Foundation, Inc., *}
19 {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
21 {**************************************************************************}
26 Cette page de recherche fonctionne grâce au moteur développé par <a href="http://www.exalead.com/">Exalead</a>.
31 Ce moteur est capable de dégager des catégories à partir des résultats qu'il a trouvé, tu peux alors
32 affiner ta recherche et éliminer les résultats d'une catégorie particulière
33 (<img style="vertical-align: text-bottom;" src="images/moins.png" alt="[-]"/>)
34 ou ne demander que les résultats appartenant à une catégorie particulière
35 (<img style="vertical-align: text-bottom;" src="images/select.png" alt="[+]"/>).
39 Ce moteur sait aussi détecter des mots clés qu'il a pu rencontrer parmi les résultats, et permet
40 d'affiner la recherche sur ces critères, suivant le même fonctionnement que les catégories.
43 <span><a href="http://www.exalead.com">Powered by <img src="images/Exalead-logo-Carved-100.gif" alt="Logo Exalead" /></a></span>
45 {if $exalead_data && $exalead_data->hits}
46 <table class="exa_data">
49 <form method="post" action="{$smarty.server.PHP_SELF}">
50 <div class="exa_form">
52 <div><input type="text" name="query" value="{$exalead_data->query->query}" size="30" /></div>
53 <div><input type="submit" name="chercher" value="Chercher" /></div>
58 {if !$exalead_data->hits}
59 <p class="erreur">Il n'y a aucun résultat...</p>
62 {if $exalead_data->estimated}
63 <div class="nb_results">Votre recherche a retourné <strong>environ {$exalead_data->nmatches}</strong> résultats.</div>
65 <div class="nb_results">Votre recherche a retourné <strong>{$exalead_data->nmatches}</strong> résultats.</div>
71 //Correction orthographique
72 {if $exalead_data->spellings|@count > 0}
73 <div class="exa_groupe">
74 <div class="titre">Voulais-tu dire :</div>
75 {foreach from=$exalead_data->spellings item="spelling"}
76 <div class="exa_categorie"><a href="exalead.php?query={$spelling->query_href}">{$spelling->display}</a></div>
82 {if $exalead_data->groups|@count > 0}
83 {foreach from=$exalead_data->groups item="group"}
84 <div class="exa_groupe">
85 <div class="titre">{$group->title} :</div>
86 {foreach from=$group->categories item="categorie"}
87 {if $categorie->reset_href}
88 {if $categorie->count == 0}
89 <div class="exa_categorie" style="background-color: {cycle values="inherit,inherit"}"><span style="text-decoration: line-through;">
90 <a href="?_C={$exalead_data->query->context}/{$categorie->reset_href}&_f=xml2"><img style="vertical-align: text-bottom;" src="images/select.png" alt="[+]" /> {$categorie->display}</a></span>
93 <div class="exa_categorie" style="background-color: {cycle values="inherit,inherit"}"><strong>{$categorie->display}</strong>
94 <a href="?_C={$exalead_data->query->context}/{$categorie->reset_href}&_f=xml2"><img style="vertical-align: text-bottom;" src="images/moins.png" alt="[-]"/></a>
98 <div class="exa_categorie" style="background-color: {cycle values="inherit,inherit"}">
99 <a style="text-decoration: none;" href="?_C={$exalead_data->query->context}/{$categorie->refine_href}&_f=xml2"><img style="vertical-align: text-bottom;" src="images/select.png" alt="[+]" />{$categorie->display} ({$categorie->count})</a>
100 <a href="?_C={$exalead_data->query->context}/{$categorie->exclude_href}&_f=xml2"><img style="vertical-align: text-bottom;" src="images/moins.png" alt="[-]"/></a>
111 {if $exalead_data->keywords}
112 <div class="exa_groupe">
113 <div class="titre">Affiner la recherche par mot-clés :</div>
114 {foreach from=$exalead_data->keywords item=keyword}
115 {if !$keyword->is_normal()}
116 {if $keyword->is_excluded()}
117 <div class="exa_categorie">
118 <span style="text-decoration: line-through;">
119 <a href="?_C={$exalead_data->query->context}/{$keyword->reset_href}&_f=xml2"><img style="vertical-align: text-bottom;" src="images/select.png" alt="[+]" />
120 {$keyword->display}</a>
124 <div class="exa_categorie">
125 <strong>{$keyword->display}</strong>
126 <a href="?_C={$exalead_data->query->context}/{$keyword->reset_href}&_f=xml2"><img style="vertical-align: text-bottom;" src="images/moins.png" alt="[-]"/></a>
130 <div class="exa_categorie">
131 <a href="?_C={$exalead_data->query->context}/{$keyword->refine_href}&_f=xml2"><img style="vertical-align: text-bottom;" src="images/select.png" alt="[+]" />
132 {$keyword->display} ({$keyword->count})</a>
133 <a href="?_C={$exalead_data->query->context}/{$keyword->exclude_href}&_f=xml2"><img style="vertical-align: text-bottom;" src="images/moins.png" alt="[-]"/></a>
140 <td class="exa_right">
141 {if $exalead_data->start > 0}
142 {if $exalead_data->start < 9}
143 <a href=?_C={$exalead_data->query->context}&_s=0">[1-10]</a>
145 <a href="?_C={$exalead_data->query->context}&_s={$exalead_data->start-10}">[{$exalead_data->start-9}-{$exalead_data->end-9}]</a>
150 <a href="?_C={$exalead_data->query->context}/_sf=-date&_f=xml2">[par date]</a>
151 <a href="?_C={$exalead_data->query->context}/_sf=relevance&_f=xml2">[par pertinence]</a>
153 {if $exalead_data->end + 1 < $exalead_data->nhits}
154 {if $exalead_data->end + 11 > $exalead_data->nhits}
155 <a href="?_C={$exalead_data->query->context}&_s={$exalead_data->start+10}">[{$exalead_data->start+11}-{$exalead_data->nhits}]</a>
157 <a href="?_C={$exalead_data->query->context}&_s={$exalead_data->start+10}">[{$exalead_data->start+11}-{$exalead_data->end+11}]</a>
161 {foreach from=$exalead_data->hits item=hit}
162 <div class="exa_result">
164 <a href="{$hit->url|regex_replace:"!(\?|\&|&)PHPSESSID=.*$!":""}">{$hit->url|regex_replace:"!(\?|\&|&)PHPSESSID=.*$!":""}</a>
166 {foreach from=$hit->hitgroups item=hitgroup}
169 {if $hitgroup->hitcategories[0]->browsehref}
170 <a href="?_C={$exalead_data->query->context}/{$hitgroup->hitcategories[0]->browsehref}">{$hitgroup->hitcategories[0]->display}</a>
172 {$hitgroup->hitcategories[0]->display}
184 {* vim:set et sw=2 sts=2 sws=2: *}