Rework xnet skin :
[platal.git] / templates / xnet / skin.tpl
index e70598a..de34b78 100644 (file)
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
-    <base href="{#globals.baseurl#}" />
+    <base href="{#globals.baseurl#}/" />
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 
     <title>Les associations polytechniciennes</title>
     <meta name="description" content="Les associations polytechniciennes" />
     <meta name="keywords" content="Ecole polytechnique, associations polytechniciennes, groupes X, binets" />
-    <link rel="stylesheet" type="text/css" href="{rel}/css/xnet.css" media="screen" />
-    <link rel="icon" type="image/png" href="{rel}/images/favicon.png" />
+    <link rel="stylesheet" type="text/css" href="css/xnet.css" media="screen" />
+    <link rel="icon" type="image/png" href="images/favicon.png" />
 
     <link rel="bookmark" href="http://www.polytechnique.fr/"        title="| École polytechnique" />
     <link rel="bookmark" href="http://www.polytechnique.edu/"       title="| Institutionnal site" />
     <link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" />
 
     {foreach from=$xorg_css item=css}
-    <link rel="stylesheet" type="text/css" href="{rel}/css/{$css}" />
+    <link rel="stylesheet" type="text/css" href="css/{$css}" />
     {/foreach}
     {foreach from=$xorg_js item=js}
-    <script type="text/javascript" src="{rel}/{$js}"></script>
+    <script type="text/javascript" src="{$js}"></script>
     {/foreach}
-    <script type="text/javascript" src="{rel}/javascript/overlib.js"></script>
+    <script type="text/javascript" src="javascript/overlib.js"></script>
     
     {if $xorg_extra_header}
     {$xorg_extra_header|smarty:nodefaults}
 
     <table id="layout" cellspacing="0" cellpadding="0">
       {if $xnet_type}
-      <tr id="top">
-        <td>
-          <a href="{rel}/"><img src="{rel}/images/asso-montants.png" alt="Logo Assos" /></a>
-        </td>
-        <td>
-          <img src="{rel}/images/logo_{$xnet_type}.png" alt="Logo {$xnet_type}" width="106" height="96" />
-        </td>
+      <tr>
         <td colspan="2">
-          <img src="{rel}/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="white-space: nowrap">
+              <img src="images/bandeau.jpg" alt="bandeau" height="96" style="width: 100%" />
+            </td>
+            <td class="logo">
+              <img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" height="96" />
+            </td>
+            <td>
+              {if $asso}
+              {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}
+              {/if}
+            </td>
+          </tr>
+        </table>
         </td>
       </tr>
       {else}
       <tr id="top">
         <td>
-          <img src="{rel}/images/logo.png" alt="LOGO Assos" />
+          <img src="images/logo.png" alt="LOGO Assos" />
         </td>
-        <td colspan="3" style="text-align: right">
-          <a href="https://www.polytechnique.org/"><img src="{rel}/images/logo-xorg.png" alt="LOGO X.Org" /></a>
-          <img src="{rel}/images/asso2.png" alt="titre_du_site" />
+        <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="{rel}/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}
           {foreach from=$menu key=title item=submenu}
           <h1>{$title}</h1>
           {foreach from=$submenu key=tit item=url}
-          <a href="{rel}/{$url}">{$tit}</a>
+          <a href="{$url}">{$tit}</a>
           {/foreach}
           {/foreach}
         </td>
-        <td colspan="3">
+        <td>
           <div class="breadcrumb">
             {if $asso}
-            <a href="{rel}/groups/{$asso.cat}">{$asso.cat|cat_pp}</a> »
+            <a href="groups/{$asso.cat}">{$asso.cat|cat_pp}</a> »
             {if $asso.dom}
-            <a href="{rel}/groups/{$asso.cat}/{$asso.dom}">{$asso.domnom}</a> »
+            <a href="groups/{$asso.cat}/{$asso.dom}">{$asso.domnom}</a> »
             {/if}
             {$asso.nom}
             {elseif $cat}
-            <a href="{rel}/groups/{$cat}">{$cat|cat_pp}</a> »
+            <a href="groups/{$cat}">{$cat|cat_pp}</a> »
             {if $dom || !$doms}
             Choix de l'Asso
             {else}
       </tr>
       {else}
       <tr>
-        <td colspan="4">
+        <td colspan="2">
           {include file="skin/common.content.tpl"}
         </td>
       </tr>
 
-      <tr><td colspan="4"><img src="{rel}/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="{rel}/plan">PLAN DU SITE</a> </td>
-              <td> <a href="{rel}/groups/groupesx">groupes X</a> </td>
-              <td> <a href="{rel}/groups/binets">binets</a> </td>
-              <td> <a href="{rel}/groups/promotions">promotions</a> </td>
-              <td> <a href="{rel}/groups/institutions">institutions</a> </td>
+              <td> <a href="plan">PLAN DU SITE</a> </td>
+              <td> <a href="groups/groupesx">groupes X</a> </td>
+              <td> <a href="groups/binets">binets</a> </td>
+              <td> <a href="groups/promotions">promotions</a> </td>
+              <td> <a href="groups/institutions">institutions</a> </td>
             </tr>
           </table>
         </td>
       </tr>
       {/if}
 
-      <tr><td colspan="4"><img src="{rel}/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}
-          {only_public}
+          {if !$smarty.session.auth}
           <div>Me connecter :</div>
           <a class='gp' href="{$smarty.session.loginX}">polytechnicien</a>
-          {/only_public}
+          {/if}
 
-          <a href="{rel}/manuel" title="Manuel d'aide en ligne" style="float: right"><img src="{rel}/images/manuel.png" alt="manuel" /></a>
+          <a href="manuel" title="Manuel d'aide en ligne" style="float: right"><img src="images/manuel.png" alt="manuel" /></a>
         </td>
       </tr>
 
-      <tr><td colspan="4"><img src="{rel}/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">
-          <a href="{rel}/plan">liste des associations</a> -
-          <a href="{rel}/services">services proposés</a> -
-          <a href="{rel}/about">à propos de ce site</a> -
+        <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> -
           {mailto address="contact@polytechnique.org" text="nous contacter" encode="javascript"}
           <br />
           © Copyright 2000-2006 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>