Change menu layout
[platal.git] / templates / xnet / skin.tpl
index 3ba34e0..b8d11d0 100644 (file)
 
     <table id="layout" cellspacing="0" cellpadding="0">
       {if $xnet_type}
-      <tr id="top">
-        <td>
-          <a href=""><img src="images/asso-montants.png" alt="Logo Assos" /></a>
-        </td>
-        <td>
-          <img src="images/logo_{$xnet_type}.png" alt="Logo {$xnet_type}" width="106" height="96" />
-        </td>
+      <tr>
         <td colspan="2">
-          <img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" width="490" height="96" />
+        <table cellspacing="0" cellpadding="0" id="top">
+          <tr>
+            <td style="width: 150px">
+              <a href=""><img src="images/asso-montants.png" alt="Logo Assos" /></a>
+            </td>
+            <td style="width: 106px">
+              <img src="images/logo_{$xnet_type}.png" alt="Logo {$xnet_type}" width="106" height="96" />
+            </td>
+            <td style="width: 44px">
+              <img src="images/fin_logo.jpg" alt="Fin logo" width="44" height="96" />
+            </td>
+            <td style="width: auto;">
+              <img src="images/bandeau.jpg" alt="bandeau" height="96" width="100%" />
+            </td>
+            <td style="width: 280px">
+              <img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" width="280" height="96" />
+            </td>
+            {if $asso}
+            <td class="logo">
+              {if $asso.site}
+                <a href="{$asso.site}"><img src='{$platal->ns}logo' alt="LOGO" height="96" /></a>
+              {else}
+                <img src='{$platal->ns}logo' alt="LOGO" height="96"/>
+              {/if}
+            </td>
+            {/if}
+          </tr>
+        </table>
         </td>
       </tr>
       {else}
         <td>
           <img src="images/logo.png" alt="LOGO Assos" />
         </td>
-        <td colspan="3" style="text-align: right">
+        <td style="text-align: right">
           <a href="https://www.polytechnique.org/"><img src="images/logo-xorg.png" alt="LOGO X.Org" /></a>
           <img src="images/asso2.png" alt="titre_du_site" />
         </td>
       </tr>
-      <tr><td colspan="4"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
+      <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
       {/if}
 
       {if $menu}
       <tr>
         <td id="menu">
           {foreach from=$menu key=title item=submenu}
-          <h1>{$title}</h1>
+          {if $title neq 'no_title'}<h1>{$title}</h1>{/if}
           {foreach from=$submenu key=tit item=url}
           <a href="{$url}">{$tit}</a>
           {/foreach}
           {/foreach}
         </td>
-        <td colspan="3">
+        <td id="body">
           <div class="breadcrumb">
             {if $asso}
             <a href="groups/{$asso.cat}">{$asso.cat|cat_pp}</a> »
       </tr>
       {else}
       <tr>
-        <td colspan="4">
+        <td colspan="2">
           {include file="skin/common.content.tpl"}
         </td>
       </tr>
 
-      <tr><td colspan="4"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
+      <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
 
       <tr>
-        <td colspan="4">
+        <td colspan="2">
           <table class="links" summary="liens" cellspacing="0" cellpadding="0">
             <tr>
               <td> <a href="plan">PLAN DU SITE</a> </td>
       </tr>
       {/if}
 
-      <tr><td colspan="4"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
+      <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
 
       <tr>
-        <td colspan="4" id="perso">
+        <td colspan="2" id="perso">
           {list_all_my_groups}
           {if !$smarty.session.auth}
           <div>Me connecter :</div>
         </td>
       </tr>
 
-      <tr><td colspan="4"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
+      <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
 
       <tr>
-        <td colspan="4" id="credits">
+        <td colspan="2" id="credits">
           <a href="plan">liste des associations</a> -
           <a href="services">services proposés</a> -
           <a href="about">à propos de ce site</a> -