Merge fixes due to AX modifications and new M/D data (more updates coming).
[platal.git] / templates / stats / nb_by_promo.tpl
index 1c13183..80a55fb 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 <h1>Inscrits par promo</h1>
 
 <p>
-Voici le nombre d'inscrits par promo :
+Voici le nombre d'inscrits par promotion&nbsp;:
 </p>
 
 <table class="bicol" cellpadding="3" cellspacing="0" summary="Statistiques">
+  {foreach from=$nbs key=cycle item=nb_cycle}
   <tr>
-    <th></th>
+    <th>{$cycle}</th>
     <th>0</th><th>1</th><th>2</th><th>3</th><th>4</th>
     <th>5</th><th>6</th><th>7</th><th>8</th><th>9</th>
   </tr>
-  {foreach item=nb10 key=lustre from=$nbs}
+  {foreach item=nb10 key=lustre from=$nb_cycle}
   <tr>
-    <th>{$lustre}-</th>
+    <th>{$lustre}</th>
     {foreach item=nb from=$nb10}
     <td class="center">
       {if $nb && $nb.promo eq $promo}
@@ -48,12 +49,13 @@ Voici le nombre d'inscrits par promo :
     {/foreach}
   </tr>
   {/foreach}
+  {/foreach}
 </table>
 
 {if $promo}
 
 <p class='center'>
-[<a href="stats/promos">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 {$promo}</h1>
@@ -67,10 +69,18 @@ Voici le nombre d'inscrits par promo :
 <h1>Inscrits par promo en (%)</h1>
 
 <div class="center">
-  <img src="stats/graph/all" alt="[graphe du nombre d'inscrits par promo]" />
+  <img src="stats/graph/{#Profile::DEGREE_X#}" alt="[graphe du nombre d'inscrits par promotion pour les X]" />
+</div>
+
+<div class="center">
+  <img src="stats/graph/{#Profile::DEGREE_M#}" alt="[graphe du nombre d'inscrits par promotion pour les masters]" />
+</div>
+
+<div class="center">
+  <img src="stats/graph/{#Profile::DEGREE_D#}" alt="[graphe du nombre d'inscrits par promotion pour les docteurs]" />
 </div>
 
 {/if}
 
 
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}