fixes
[platal.git] / templates / xnet / groupes.tpl
index ac568e4..e45f450 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2004 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 <table id="content" cellspacing="0" cellpadding="4">
   <tr>
     <td colspan="2">
-      {include file="xnet/include/descr.tpl" cat=$smarty.get.cat}
+      {include file="xnet/include/descr.tpl"}
     </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="{rel}/groups/groupesx">Groupes X</a></div>
+      <div class="cat {if $cat eq binets}sel{/if}"><a href="{rel}/groups/binets">Binets</a></div>
+      <div class="cat {if $cat eq institutions}sel{/if}"><a href="{rel}/groups/institutions">Institutions</a></div>
+      <div class="cat {if $cat eq promotions}sel{/if}"><a href="{rel}/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="{rel}/groups/{$cat}/{$g.id}">{$g.nom}</a>
       </div>
       {/foreach}
     </td>
@@ -50,7 +50,7 @@
     <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>
+        <tr><td class="oval{if $doms}2{/if}"><a href="{rel}/{$g.diminutif}/">{$g.nom}</a></td></tr>
       </table>
       {/iterate}
     </td>