first reimport from platal
[platal.git] / templates / skin / default.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="{"css/default.css"|url}" media="screen" />
27     {include file=skin/common.header.tpl}
28     {include file=skin/common.bandeau.head.tpl}
29   </head>
30   <body onload='pa_onload()'>
31     {include file=skin/common.devel.tpl}
32     {if $smarty.session.suid}
33     <table id="suid" cellpadding="0" cellspacing="0">
34       <tr>
35         <td>
36           {$smarty.session.suid} ({$smarty.session.forlife})
37           [<a href="{"exit.php"|url}">exit</a>]
38         </td>
39       </tr>
40     </table>
41     {/if}
42
43   {if $simple}
44
45     <div id="content">
46       {include file="skin/common.content.tpl"}
47     </div>
48
49   {else}
50
51     {include file=skin/common.bandeau.tpl}
52
53     <table id="body" cellpadding="0" cellspacing="0">
54       <tr>
55         <td id="body-logo">
56           <a href="{"login.php"|url}"><img src="{"images/sk_default_headlogo.jpg"|url}" alt="[ LOGO ]" /></a>
57         </td>
58         <td id="body-top">
59           <a href="{"login.php"|url}"><img src="{"images/sk_default_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
60           <table>
61             <tr>
62               <td class="date-heure">
63                 <script type="text/javascript">
64                   <!--
65                   document.write(getNow());
66                   //-->
67                 </script>
68               </td>
69               <td class="inscrits">
70                 {insert name="getNbIns"} polytechniciens sur le web<br />
71                 {insert name="getNbNotifs"}
72               </td>
73             </tr>
74           </table>
75           <a href="{"login.php"|url}"><img src="{"images/sk_default_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
76         </td>
77       </tr>
78       <tr>
79         <td id="body-menu">
80           {foreach key=menu_title item=menu_list from=$menu}
81           {if $menu_title}
82           <div class="menu_title">{$menu_title}</div>
83           {/if}
84           {foreach item=mi from=$menu_list}
85           <div class='menu_item'><a href="{$mi.url|url}">{$mi.text}</a></div>
86           {/foreach}
87           {/foreach}
88           {perms level=admin}
89           <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;">
90             <tr><th>Valid</th></tr>
91             <tr class="impair">
92               <td><a href="{"admin/valider.php"|url}">{insert name="mkStats"}</a></td>
93             </tr>
94           </table>
95           {/perms}
96         </td>
97         <td id="content">
98           {include file="skin/common.content.tpl"}
99         </td>
100       </tr>
101       <tr>
102         <td id="body-bottom" colspan="2">
103           {include file=skin/common.footer.tpl}
104         </td>
105       </tr>
106     </table>
107   {/if}
108   </body>
109 </html>
110 {* vim:set et sw=2 sts=2 sws=2: *}