X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fxnet%2Fgroupes.tpl;h=9c6ffaf3092b94de9f2acc0c383beb77e6d67cad;hb=0be1a4a16a7e66d2a1bf617c2ed1914fae5e91a7;hp=ac568e4b1093e2c2086b22fc49f081dd793243d3;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git
diff --git a/templates/xnet/groupes.tpl b/templates/xnet/groupes.tpl
index ac568e4..9c6ffaf 100644
--- a/templates/xnet/groupes.tpl
+++ b/templates/xnet/groupes.tpl
@@ -1,6 +1,6 @@
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2004 Polytechnique.org *}
+{* Copyright (C) 2003-2010 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@ -20,42 +20,46 @@
{* *}
{**************************************************************************}
+{include file="xnet/include/descr.tpl"}
+
-
- {include file="xnet/include/descr.tpl" cat=$smarty.get.cat}
- |
-
-
- {if !$doms || !$gps}
-
-
-
-
+
+
+
+
|
- {/if}
{if $doms}
{foreach from=$doms item=g}
- |
{/if}
- {if $gps}
-
- {iterate from=$gps item=g}
-
- {$g.nom} |
+
+ {if $gps}
+
+ {foreach from=$gps item=g name=all key=i}
+ {if $doms || $i is even}
+
+ {/if}
+
+ {$g.nom}
+ |
+ {if !$doms && $i is even && $smarty.foreach.all.last} | {/if}
+ {if $doms || $i is odd || $smarty.foreach.all.last}
+
+ {/if}
+ {/foreach}
- {/iterate}
+ {/if}
|
- {/if}
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
|