Enable clicking on text to select messages in the mailing list moderation page
[platal.git] / templates / xnet / groupes.tpl
index ac568e4..c706a8f 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2004 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
+{include file="xnet/include/descr.tpl"}
+
 <table id="content" cellspacing="0" cellpadding="4">
   <tr>
-    <td colspan="2">
-      {include file="xnet/include/descr.tpl" cat=$smarty.get.cat}
-    </td>
-  </tr>
-  <tr>
-    {if !$doms || !$gps}
     <td style="vertical-align: top">
-      <div class="cat {if $smarty.get.cat eq groupesx}sel{/if}"><a href="?cat=groupesx">Groupes X</a></div>
-      <div class="cat {if $smarty.get.cat eq binets}sel{/if}"><a href="?cat=binets">Binets</a></div>
-      <div class="cat {if $smarty.get.cat eq institutions}sel{/if}"><a href="?cat=institutions">Institutions</a></div>
-      <div class="cat {if $smarty.get.cat eq promotions}sel{/if}"><a href="?cat=promotions">Promotions</a></div>
+      <div class="cat {if $cat eq groupesx}sel{/if}"><a href="groups/groupesx">Groupes X</a></div>
+      <div class="cat {if $cat eq binets}sel{/if}"><a href="groups/binets">Binets</a></div>
+      <div class="cat {if $cat eq institutions}sel{/if}"><a href="groups/institutions">Institutions</a></div>
+      <div class="cat {if $cat eq promotions}sel{/if}"><a href="groups/promotions">Promotions</a></div>
     </td>
-    {/if}
     
     {if $doms}
     <td style="vertical-align: top">
       {foreach from=$doms item=g}
-      <div class="cat {if $g.id eq $smarty.get.dom}sel{/if}">
-        <a href="?cat={$smarty.get.cat}&amp;dom={$g.id}">{$g.nom}</a>
+      <div class="cat {if $g.id eq $dom}sel{/if}">
+        <a href="groups/{$cat}/{$g.id}">{$g.nom}</a>
       </div>
       {/foreach}
     </td>
     {/if}
 
-    {if $gps}
-    <td style="text-align:right;">
-      {iterate from=$gps item=g}
-      <table style="float: left;" cellspacing="2" cellpadding="0">
-        <tr><td class="oval{if $doms}2{/if}"><a href="{rel}/{$g.diminutif}/asso.php">{$g.nom}</a></td></tr>
+    <td style="text-align:right;{if $doms} width: 180px{/if}">
+      {if $gps}
+      <table style="width: 100%">
+        {foreach from=$gps item=g name=all key=i}
+        {if $doms || $i is even}
+        <tr>
+        {/if}
+          <td class="oval{if $doms}2{/if} {if $cat eq promotions}{if $g.diminutif is odd}jone{else}rouje{/if}{/if}">
+            <a href="{$g.diminutif}/" {if $g.site}class="has_site"{/if}>{$g.nom}</a>
+          </td>
+        {if !$doms && $i is even && $smarty.foreach.all.last}<td></td>{/if}
+        {if $doms || $i is odd || $smarty.foreach.all.last}
+        </tr>
+        {/if}
+      {/foreach}
       </table>
-      {/iterate}
+      {/if}
     </td>
-    {/if}
   </tr>
 </table>
 
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}