Really reactive address.
[platal.git] / templates / stats / nb_by_promo.tpl
index e95e816..91e7aca 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
-
-<h1>
-  Inscrits par promo
-</h1>
+<h1>Inscrits par promo</h1>
 
 <p>
 Voici le nombre d'inscrits par promo :
@@ -40,10 +37,10 @@ Voici le nombre d'inscrits par promo :
     <th>{$lustre}-</th>
     {foreach item=nb from=$nb10}
     <td class="center">
-      {if $nb && $nb.promo eq $smarty.request.promo}
+      {if $nb && $nb.promo eq $promo}
       <span class='erreur'>{$nb.nb}</span>
       {elseif $nb}
-      <a href="?promo={$nb.promo}">{$nb.nb}</a>
+      <a href="stats/promos/{$nb.promo}">{$nb.nb}</a>
       {else}
       -
       {/if}
@@ -53,16 +50,16 @@ Voici le nombre d'inscrits par promo :
   {/foreach}
 </table>
 
-{if $smarty.request.promo}
+{if $promo}
 
 <p class='center'>
-[<a href="{$smarty.server.PHP_SELF}">répartition des inscrits par promo</a>]
+[<a href="stats/promos">répartition des inscrits par promo</a>]
 </p>
 
-<h1>Courbe d'inscription de la promo {$smarty.request.promo}</h1>
+<h1>Courbe d'inscription de la promo {$promo}</h1>
 
 <div class="center">
-  <img src="{"stats/graph_promo.php"|url}?promo={$smarty.request.promo}" alt=" [ INSCRITS ] " />
+  <img src="stats/graph/{$promo}" alt=" [ INSCRITS ] " />
 </div>
 
 {else}
@@ -70,10 +67,10 @@ Voici le nombre d'inscrits par promo :
 <h1>Inscrits par promo en (%)</h1>
 
 <div class="center">
-  <img src="{"stats/graph_by_promo.php"|url}" alt="[graphe du nombre d'inscrits par promo]" />
+  <img src="stats/graph/all" alt="[graphe du nombre d'inscrits par promo]" />
 </div>
 
 {/if}
 
 
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}