We can't remove the last email ==> do not show the button
[platal.git] / templates / search / quick.tpl
index 43162a7..13a4b02 100644 (file)
 
 {include file=search/quick.form.tpl show_js=1}
 
+{if $smarty.session.perms->hasFlag('user')}
 <h1>Voir le trombi d'une promotion</h1>
 
 <div id="message" style="position:absolute;"></div><br />
 
-<script type="text/javascript" src="javascript/ajax.js"></script>
 <script type="text/javascript">
+  <!--
   {literal}
   function showPromo()
   {
       return false;
   }
   {/literal}
+  -->
 </script>
 
 <form action="" method="post" onsubmit="return showPromo();">
-<table class="tinybicol" style="width: 30%; margin-right: auto; margin-left: auto">
-  <td class="titre">Promotion :</td>
-  <td>
-    <input type="text" name="promo" id="promo" size="4" value="" />
-    <input type="submit" name="submit_promo" value="Voir" />
-  </td>
+<table class="tinybicol" style="width: 35%; margin-right: auto; margin-left: auto">
+  <tr>
+    <td class="titre">Promotion :</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>
 
 <h2>Nom, Prenom, Promo ...</h2>
@@ -88,7 +94,7 @@ notre base de donnĂ©es.
 <div id="searchbar" style="display: none">
 <h2>Barre de recherche pour ton navigateur</h2>
 <p>
-  Si tu utilises un navigateur moderne tel que Firefox ou Internet Explore 7, tu peux ajouter un module de recherche
+  Si tu utilises un navigateur moderne tel que Firefox ou Internet Explorer 7, tu peux ajouter un module de recherche
   directement dans ton navigateur. Pour ceci, <a href="javascript:addSearchEngine()">installe</a> la barre de recherche
   rapide.
 </p>