X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fxnet%2Fgroupes.tpl;h=a75ad852db074829e9506382658c68a26171f633;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=a158168434dea03452bb68da25f4eb1f5fd507b0;hpb=0e02493eeb0714d750f9b9ceb0d566ac7d9dd2d4;p=platal.git
diff --git a/templates/xnet/groupes.tpl b/templates/xnet/groupes.tpl
index a158168..a75ad85 100644
--- a/templates/xnet/groupes.tpl
+++ b/templates/xnet/groupes.tpl
@@ -1,6 +1,6 @@
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 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"}
- |
-
-
- {if !$doms || !$gps}
-
-
-
-
+
+
+
+
|
- {/if}
-
+
{if $doms}
{foreach from=$doms item=g}
{/foreach}
|
{/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: *}
|