Fix auth issues with Ajax
[platal.git] / templates / xnet / skin.tpl
index 3ba34e0..61d4401 100644 (file)
@@ -23,7 +23,7 @@
 <!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>
@@ -43,7 +43,7 @@
     <link rel="stylesheet" type="text/css" href="css/{$css}" />
     {/foreach}
     {foreach from=$xorg_js item=js}
-    <script type="text/javascript" src="{$js}"></script>
+    <script type="text/javascript" src="javascript/{$js}"></script>
     {/foreach}
     <script type="text/javascript" src="javascript/overlib.js"></script>
     
     {include file=skin/common.bandeau.tpl}
 
     <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" />
-        </td>
-      </tr>
-      {else}
-      <tr id="top">
-        <td>
-          <img src="images/logo.png" alt="LOGO Assos" />
-        </td>
-        <td colspan="3" 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" />
+        <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">
+              {if $xnet_type}
+              <img src="images/logo_{$xnet_type}.png" alt="Logo {$xnet_type}" width="106" height="96" />
+              {else}
+              <img src="images/logo_institutions.png" alt="Logo {$xnet_type}" width="106" height="96" />
+              {/if}
+            </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>
+            {if $xnet_type}
+            <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="80" /></a>
+              {else}
+                <img src='{$platal->ns}logo' alt="LOGO" height="80"/>
+              {/if}
+            </td>
+            {/if}
+            {else}
+            <td class="logo">
+              <img src="images/asso.png" alt="Le serveur des activés associative des X" />
+              <a href="http://www.polytechnique.org">
+                <img src="images/logo-xorg.png" alt="Polytechnique.org" height="80" />
+              </a>
+            </td>
+            {/if}
+          </tr>
+        </table>
         </td>
       </tr>
-      <tr><td colspan="4"><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="100%" /></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>
-              <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>
+              <td class="left">   <a href="groups/groupesx">Groupes X</a> </td>
+              <td class="left"> <a href="groups/binets">Binets</a> </td>
+              <td class="center"> <a href="groups/promotions">Promotions</a> </td>
+              <td class="center"> <a href="groups/institutions">Institutions</a> </td>
+              <td class="right">  <a href="plan">Tous</a> </td>
             </tr>
           </table>
         </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="100%" /></td></tr>
 
       <tr>
-        <td colspan="4" id="perso">
-          {list_all_my_groups}
-          {if !$smarty.session.auth}
-          <div>Me connecter :</div>
-          <a class='gp' href="{$smarty.session.loginX}">polytechnicien</a>
-          {/if}
-
-          <a href="manuel" title="Manuel d'aide en ligne" style="float: right"><img src="images/manuel.png" alt="manuel" /></a>
+        <td colspan="2">
+        <table style="width: 100%">
+          <tr>
+            <td id="perso">
+              {list_all_my_groups}
+              {if !$smarty.session.auth}
+              <div>Me connecter :</div>
+              <a class='gp' href="{$smarty.session.loginX}">polytechnicien</a>
+              {/if}
+            </td>
+            <td class="right" style="vertical-align: middle">
+              {if $smarty.session.perms eq admin}
+              <a href="admin" title="Administration des groupes">
+                Gérer les groupes
+                {icon name=wrench title="Administration"}
+              </a><br />
+              {/if}
+              <a href="Xnet" title="Manuel d'aide en ligne">
+                Manuel de l'utilisateur
+                {icon name=lightbulb title="Documentation"}
+              </a>
+            </td>
+          </tr>
+        </table>
         </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="100%" /></td></tr>
 
       <tr>
-        <td colspan="4" id="credits">
-          <a href="plan">liste des associations</a> -
-          <a href="services">services proposés</a> -
-          <a href="about">à propos de ce site</a> -
+        <td colspan="2" id="credits">
+          <a href="plan">plan du site</a> -
+          <a href="Xnet/Services">services proposés</a> -
+          <a href="Xnet/APropos">à propos de ce site</a> -
           {mailto address="contact@polytechnique.org" text="nous contacter" encode="javascript"}
+          {if $smarty.session.auth}
+            - <a href="send_bug" onclick="send_bug();return false">signaler un bug</a>
+            {include file=skin/common.bug.tpl}
+          {/if}
           <br />
           © Copyright 2000-2006 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>
         </td>