source: trunk/root/templates/includes/header.tt @ 279

Last change on this file since 279 was 279, checked in by nanardon, 15 years ago
  • add locale selection
  • Property svn:keywords set to Id Rev
File size: 2.0 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- $Id$ -->
3<html>
4<head>
5<title>[% page.title %]</title>
6<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7<link rel="stylesheet" href="[% c.uri_for('/static', 'vote.css') %]" type="text/css">
8<link rel="icon" href="[%- c.uri_for('/static', 'images', 'favicon.ico') -%]" type="image/x-icon">
9
10<script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype',
11    'controls.js') %]"></SCRIPT>
12<script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype',
13    'dragdrop.js') %]"></SCRIPT>
14<script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype',
15    'effects.js') %]"></SCRIPT>
16<script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype',
17    'prototype.js') %]"></SCRIPT>
18
19<link rel="stylesheet" href="[% c.uri_for('/static', 'dhtmlxCalendar', 'dhtmlxcalendar.css') %]" type="text/css">
20<script language="JavaScript" src="[% c.uri_for('/static', 'dhtmlxCalendar',
21    'dhtmlxcommon.js') %]"></SCRIPT>
22<script language="JavaScript" src="[% c.uri_for('/static', 'dhtmlxCalendar',
23    'dhtmlxcalendar.js') %]"></SCRIPT>
24
25</head>
26<body>
27<div id="header">
28    <p id="title"><b>Epoll:</b> [% l('Web voting system') %]</p>
29    <p id="now" style="float: right">[% l('Page generated the [_1]', c.model('Vote').dbtime) | html %]</p>
30        <form style="float: right">
31            <select name="locale">
32            <option>C</option>
33            [% FOREACH l = [ 'fr' ] %]
34            <option[% " selected" IF locale == l %]>[% l | html %]</option>
35            [% END %]
36        </select><input type="submit">
37        </form>
38    <p id="menu" style="clear: both;">
39    <a href="[% c.uri_for('/') %]">Acceuil</a> ::
40    <a href="[% c.uri_for('/newpoll') %]">Créer un nouveau vote</a>
41    [% IF voteid %]
42    :: <a href="[% c.uri_for('/vote', c.model('Vote').poll(voteid).uid) %]">
43        Votre vote: [% c.model('Vote').poll(voteid).info('label') | truncate(40) | html %]
44    </a>
45    [% END %]
46    </p>
47</div>
Note: See TracBrowser for help on using the repository browser.