From: x2000habouzit
Date: Fri, 29 Oct 2004 10:42:14 +0000 (+0000)
Subject: quite nicer
X-Git-Tag: xorg/old~1137
X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9226379d90ee2508e7836c021418903f4fcc83eb;p=platal.git
quite nicer
---
diff --git a/templates/stats/nb_by_promo.tpl b/templates/stats/nb_by_promo.tpl
index a0f2402..5ebd240 100644
--- a/templates/stats/nb_by_promo.tpl
+++ b/templates/stats/nb_by_promo.tpl
@@ -17,7 +17,7 @@
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: nb_by_promo.tpl,v 1.5 2004-10-24 14:41:17 x2000habouzit Exp $
+ $Id: nb_by_promo.tpl,v 1.6 2004-10-29 10:42:14 x2000habouzit Exp $
***************************************************************************}
@@ -29,20 +29,22 @@
Voici le nombre d'inscrits par promo :
+{dynamic}
|
0 | 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 |
-{dynamic}
{foreach item=nb10 key=lustre from=$nbs}
{$lustre}- |
{foreach item=nb from=$nb10}
- {if $nb}
- {$nb.nb}
+ {if $nb && $nb.promo eq $smarty.request.promo}
+ {$nb.nb}
+ {elseif $nb}
+ {$nb.nb}
{else}
-
{/if}
@@ -50,13 +52,30 @@ Voici le nombre d'inscrits par promo :
{/foreach}
|
{/foreach}
-{/dynamic}
-
- Inscrits par promo en (%)
-
+{if $smarty.request.promo}
+
+
+[répartition des inscrits par promo]
+
-
+Courbe d'inscription de la promo {$smarty.request.promo}
+
+
+
![[ INSCRITS ]]({)
+
+
+{else}
+
+Inscrits par promo en (%)
+
+
+
![[graphe du nombre d'inscrits par promo]](/stats/graph-promo2.png)
+
+
+{/if}
+
+{/dynamic}
{* vim:set et sw=2 sts=2 sws=2: *}