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

Last change on this file since 343 was 343, checked in by misc, 14 years ago
  • refactoring, and fix html 4.1 compliance for script
  • Property svn:keywords set to Id Rev
File size: 1.7 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[% FOREACH file = [ 'controls.js', 'dragdrop.js', 'effects.js', 'prototype.js' ] %]
10<script type="text/javascript" language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype',
11    file) %]"></script>
12[% END %]
13
14<link rel="stylesheet" href="[% c.uri_for('/static', 'dhtmlxCalendar', 'dhtmlxcalendar.css') %]" type="text/css">
15[% FOREACH file = [ 'dhtmlxcommon.js', 'dhtmlxcalendar.js' ] %]
16<script type="text/javascript" language="JavaScript" src="[% c.uri_for('/static', 'dhtmlxCalendar',
17    'dhtmlxcommon.js') %]"></script>
18[% END %]
19
20</head>
21<body>
22<div id="header">
23    <p id="title"><b>Epoll:</b> [% l('Web voting system') %]</p>
24    <p id="now" style="float: right">[% l('Page generated the [_1]', c.model('Vote').dbtime) | html %]</p>
25        <form style="float: right">
26        [% INCLUDE 'includes/locale_select.tt' %]
27        <input type="submit">
28        </form>
29    <p id="menu" style="clear: both;">
30    <a href="[% c.uri_for('/') %]">[% l('Welcome') %]</a> ::
31    <a href="[% c.uri_for('/newpoll') %]">[% l('Create a new poll') %]</a>
32    [% IF voteid %]
33    :: <a href="[% c.uri_for('/vote', c.model('Vote').poll(voteid).uid) %]">
34        [% l('Your poll:') _ ' ' %][% c.model('Vote').poll(voteid).info('label') | truncate(40) | html %]
35    </a>
36    [% END %]
37    </p>
38</div>
Note: See TracBrowser for help on using the repository browser.