highlight asso with web sites
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 19 Nov 2006 00:35:29 +0000 (00:35 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 19 Nov 2006 00:35:29 +0000 (00:35 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1109 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs/css/xnet.css
modules/xnet.php
templates/xnet/groupes.tpl

index e184fa3..1d73ed1 100644 (file)
@@ -313,6 +313,7 @@ td.oval2 {
 }
 
 .oval a, .oval2 a { color: #d0c198; }
+.oval a.has_site { color: white; }
 
 #content td.oval, #content td.oval2 {
     font-size: 90%;
index 2b6e9b4..5f2564f 100644 (file)
@@ -166,12 +166,12 @@ class XnetModule extends PLModule
         $page->assign('doms', $doms);
 
         if (empty($doms)) {
-            $res = XDB::query("SELECT diminutif, nom FROM groupex.asso
+            $res = XDB::query("SELECT diminutif, nom, site FROM groupex.asso
                                    WHERE FIND_IN_SET({?}, cat)
                                 ORDER BY nom", $cat);
             $page->assign('gps', $res->fetchAllAssoc());
         } elseif (!is_null($dom)) {
-            $res = XDB::query("SELECT diminutif, nom FROM groupex.asso
+            $res = XDB::query("SELECT diminutif, nom, site FROM groupex.asso
                                 WHERE FIND_IN_SET({?}, cat) AND dom={?}
                              ORDER BY nom", $cat, $dom);
             $page->assign('gps', $res->fetchAllAssoc());
index 1b6870e..eecc1e8 100644 (file)
@@ -49,7 +49,7 @@
         <tr>
         {/if}
           <td class="oval{if $doms}2{/if}">
-            <a href="{$g.diminutif}/">{$g.nom}</a>
+            <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}