Javascript cleanup again.
[platal.git] / templates / search / quick.tpl
index acf617d..8cdeac7 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 
 {include file=search/quick.form.tpl show_js=1}
 
-{if hasPerm('user')}
-<h1>Voir le trombi d'une promotion</h1>
-
-<div id="message" style="position:absolute;"></div><br />
-
-<script type="text/javascript">
-  <!--
-  {literal}
-  function showPromo()
-  {
-      var value = document.getElementById('promo').value;
-      if (value < {/literal}{$promo_min}{literal} || value > {/literal}{$promo_max}{literal}) {
-        showTempMessage('message', "La promotion doit être entre {/literal}{$promo_min} et {$promo_max}{literal}.", false);
-        return false;
-      }
-      window.open("http://www.polytechnique.net/login/" + value + "/annuaire/trombi");
-      return false;
-  }
-  {/literal}
-  -->
-</script>
-
-<form action="" method="post" onsubmit="return showPromo();">
-<table class="tinybicol" style="width: auto; margin: auto">
-  <tr>
-    <td class="titre">Promotion&nbsp;:</td>
-    <td>
-      <input type="text" name="promo" id="promo" size="4" value="" />
-      <input type="submit" name="submit_promo" value="Voir" />
-    </td>
-  </tr>
-</table>
-</form>
-
-{/if}
-
-<h1>Comment faire une recherche ?</h1>
+<h1>Comment faire une recherche&nbsp;?</h1>
 
-<h2>Nom, Prénom, Promotion...</h2>
+<h2>Nom, Prénom, Promotion&hellip;</h2>
 
 <p>
-La ligne de recherche ci-dessus accepte non seulement des mélanges de <strong>noms</strong> et de <strong>prénoms</strong>...
+La ligne de recherche ci-dessus accepte non seulement des mélanges de <strong>noms</strong> et de <strong>prénoms</strong>&hellip;
 mais elle accepte de plus la syntaxe suivante pour les <strong>promotions</strong>&nbsp;:
 </p>
 <ul>
@@ -77,13 +41,13 @@ Ainsi, rechercher tous les "Dupont" sur les promotions 1980 à 1990 et sur la pr
 <code>Dupont 1980-1990 2000</code>
 </p>
 
-<h2>Astuce pour les noms...</h2>
+<h2>Astuce pour les noms&hellip;</h2>
 <p>
-Parfois on ne sait plus si le nom qu'on recherche s'écrit « Lenormand », « Le Normand » ou « Le-Normand »...
+Parfois on ne sait plus si le nom qu'on recherche s'écrit «&nbsp;Lenormand&nbsp;», «&nbsp;Le Normand&nbsp;» ou «&nbsp;Le-Normand&nbsp;»&hellip;
 </p>
 <p>
 Pour éviter ce genre d'écueils, il suffit de chercher&nbsp;: <code>Le Normand</code><br />
-En effet, le moteur de recherche va alors chercher tous les utilisateurs dont le nom 
+En effet, le moteur de recherche va alors chercher tous les utilisateurs dont le nom
 contient 'Le' <strong>et</strong> 'Normand' sans distinction de casse et sans tenir compte des accents.
 </p>
 <p>
@@ -92,12 +56,13 @@ notre base de données.
 </p>
 
 {if hasPerm('user')}
-<h2>Raccourcis...</h2>
+<h2>Raccourcis&hellip;</h2>
 <p>
   Un certain nombre de raccourcis permettent d'accéder plus rapidement au contenu du site&nbsp;:
 </p>
 <ul>
   <li><code>fiche:prenom.nom.promo</code> ouvre la fiche du camarade indiquée&nbsp;;</li>
+  <li><code>trombi:promo</code> affiche le trombinoscope de la promotion indiquée&nbsp;;</li>
   <li><code>ref:prenom.nom.promo</code> ouvre la fiche référent du camarade indiquée&nbsp;;</li>
   <li><code>doc:phrase</code> recherche <em>phrase</em> dans la documentation du site&nbsp;;</li>
   {if hasPerm('admin')}