X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fxnet%2Fgroupes.tpl;h=ac5f66302ae2074de7b996969b262fd0e43d95e5;hb=34ade5a639500e0a43dfb5ccff4ecbac5fbda919;hp=b7f27d026cf6af8b8d8fbdd9eede94f8d272e99e;hpb=50a40a33a496131e817df875607ea5542d096a64;p=platal.git
diff --git a/templates/xnet/groupes.tpl b/templates/xnet/groupes.tpl
index b7f27d0..ac5f663 100644
--- a/templates/xnet/groupes.tpl
+++ b/templates/xnet/groupes.tpl
@@ -1,6 +1,6 @@
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2009 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: *}
|