first reimport from platal
[platal.git] / templates / skin / espace.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2004 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22 <?xml version="1.0" encoding="iso-8859-1"?>
23 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
24 <html xmlns="http://www.w3.org/1999/xhtml">
25   <head>
26     <link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
27     <link rel="stylesheet" type="text/css" href="{rel}/css/espace.css" media="screen" />
28     {include file=skin/common.header.tpl}
29     {include file=skin/common.bandeau.head.tpl}
30   </head>
31   <body onload='pa_onload()'>
32     {include file=skin/common.devel.tpl}
33
34     {if $smarty.session.suid}
35     <table id="suid" cellpadding="0" cellspacing="0">
36       <tr>
37         <td>
38           {$smarty.session.suid} ({$smarty.session.forlife})
39           [<a href="{"exit.php"|url}">exit</a>]
40         </td>
41       </tr>
42     </table>
43     {/if}
44
45   {if $simple}
46
47     <div id="content">
48       {include file="skin/common.content.tpl"}
49     </div>
50
51   {else}
52
53     {include file=skin/common.bandeau.tpl}
54
55     <table id="body" cellpadding="0" cellspacing="0">
56       <tr>
57         <td id="body-logo">
58           <a href="{"login.php"|url}"><img src="{"images/sk_espace_logo.gif"|url}" alt="[ LOGO ]" /></a>
59         </td>
60         <td id="body-top">
61           <a href="{"login.php"|url}"><img src="{"images/sk_espace_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
62           <table>
63             <tr>
64               <td class="date-heure">
65                 <script type="text/javascript">
66                   <!--
67                   document.write(getNow());
68                   //-->
69                 </script>
70               </td>
71               <td class="inscrits">
72                 {insert name="getNbIns"} polytechniciens sur le web<br />
73                 {insert name="getNbNotifs"}
74               </td>
75             </tr>
76           </table>
77           <a href="{"login.php"|url}"><img src="{"images/sk_espace_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
78         </td>
79       </tr>
80       <tr>
81         <td id="body-menu">
82           {foreach key=menu_title item=menu_list from=$menu}
83           {if $menu_title}
84           <div class="menu_title">{$menu_title}</div>
85           {/if}
86           {foreach item=mi from=$menu_list}
87           <div class='menu_item'><a href="{$mi.url|url}">{$mi.text}</a></div>
88           {/foreach}
89           {/foreach}
90           {perms level=admin}
91           <table class="bicol" style="font-weight:normal;text-align:center; border-left:0px; border-right:0px; margin-top:0.5em; width:100%; margin-left: 0; font-size: smaller;">
92             <tr><th>Valid</th></tr>
93             <tr class="impair">
94               <td><a href="{"admin/valider.php"|url}">{insert name="mkStats"}</a></td>
95             </tr>
96           </table>
97           {/perms}
98         </td>
99         <td id="content">
100           {include file="skin/common.content.tpl"}
101         </td>
102       </tr>
103       <tr>
104         <td id="body-bottom" colspan="2">
105           {include file=skin/common.footer.tpl}
106         </td>
107       </tr>
108     </table>
109   {/if}
110   </body>
111 </html>
112 {* vim:set et sw=2 sts=2 sws=2: *}