1: <%--
2: Document : header
3: Created on : Jan 2, 2010, 4:27:57 PM
4: Author : Ondrej Macoszek <macosond@fel.cvut.cz>
5: --%>
6: <%@page contentType="text/html" pageEncoding="UTF-8"%>
7: <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
8: <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
9: <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
10: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
11: <html>
12: <head>
13: <% if( request.getParameter("title") == null || request.getParameter("title").isEmpty() ) { %>
14: <title>Musico</title>
15: <% } else { %>
16: <title><%= request.getParameter("title") %> | Musico</title>
17: <% } %>
18:
19: <meta http-equiv="content-type" content="text/html; charset=utf-8">
20: <meta http-equiv="content-language" content="cs">
21:
22: <link rel="stylesheet" type="text/css" href="${initParam.baseUri}clientside/css/screen.css" media="screen">
23: <link rel="stylesheet" type="text/css" href="${initParam.baseUri}clientside/css/print.css" media="print">
24:
25: <!--[if lt IE 8]>
26: <link rel="stylesheet" href="${initParam.baseUri}clientside/css/hacks.ie.css" type="text/css" media="all" />
27: <![endif]-->
28: </head>
29: <body>
30: <div id="page" class="theme">
31:
32: <div id="header">
33: <h1><a href="${initParam.baseUri}">Musico<span></span></a></h1>
34: <p>
35: <h:form>
36: <c:choose>
37: <c:when test="${localeBack.czech}">
38: <h:commandLink value="switch to english" actionListener="#{localeBack.switchToEnglish}" action="home" immediate="true" />
39: </c:when>
40: <c:otherwise>
41: <h:commandLink value="pÅepnout do ÄeÅ¡tiny" actionListener="#{localeBack.switchToCzech}" action="home" immediate="true" />
42: </c:otherwise>
43: </c:choose>
44: </h:form>
45: </p>
46:
47: <p>
48: <h:form>
49: <c:choose>
50: <c:when test="${userAccountBack.userAccountBean.currentUser != null}">
51: <h:commandLink value="#{title.userAccountLogout}" actionListener="#{userAccountBack.logout}" />
52: </c:when>
53: </c:choose>
54: </h:form>
55: </p>
56: </div>
57:
58:
59:
60: