Rev 18 | Rev 31 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | moos | 1 | <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %> |
2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> |
||
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> |
||
15 | moos | 4 | |
20 | moos | 5 | <c:set var="contextPath" value="${pageContext.request.contextPath}" /> |
6 | <c:set var="requestURI" value="${pageContext.request.requestURI}" /> |
||
7 | <c:set var="isUser" value="${fn:contains(requestURI, '/user/')}" /> |
||
8 | <c:set var="isAdmin" value="${fn:contains(requestURI, '/admin/')}" /> |
||
9 | |||
10 | <%@ page pageEncoding="UTF-8" %> |
||
11 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
||
12 | |||
13 | <html xmlns="http://www.w3.org/1999/xhtml"> |
||
14 | <head> |
||
15 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
||
16 | <title>Ontologie - <decorator:title /></title> |
||
17 | <link rel="stylesheet" type="text/css" href="${contextPath}/resources/css/main.css" /> |
||
18 | </head> |
||
19 | <body> |
||
20 | |||
15 | moos | 21 | <%-- Only serves as a container for the different site elements! |
20 | moos | 22 | Do not write any text directly into the page-container div! --%> |
15 | moos | 23 | <div id="page-container"> |
24 | <div id="header"> |
||
20 | moos | 25 | <table width="100%" border="0" cellspacing="0" cellpadding="0" class="header"> |
26 | <tr> |
||
27 | <td> |
||
28 | |
||
29 | </td> |
||
30 | <td style="vertical-align:top;font-size:12pt;text-align:right;"> |
||
31 | <div><strong>Semantic Web Project</strong><br /> |
||
32 | by Michael Moos<br /> |
||
33 | Thomas Lahn</div> |
||
34 | </td> |
||
35 | <td width="56" class="no_padding"><img src="${contextPath}/resources/images/ontology_logo.jpg" width="56" height="56" alt="logo" /></td> |
||
36 | </tr> |
||
37 | </table> |
||
15 | moos | 38 | </div> |
39 | |||
20 | moos | 40 | <!-- Load nav bars depending on the location --> |
41 | <c:if test="${isUser}"> |
||
42 | <div id="navbar"> |
||
43 | <%@ include file="/user/nav.jsp" %> |
||
44 | </div> |
||
45 | </c:if> |
||
46 | <c:if test="${isAdmin}"> |
||
47 | <div id="navbar"> |
||
48 | <%@ include file="/admin/nav.jsp" %> |
||
49 | </div> |
||
50 | </c:if> |
||
15 | moos | 51 | |
20 | moos | 52 | <!-- Content DIV loaded via decorator --> |
15 | moos | 53 | <div id="content"> |
20 | moos | 54 | <decorator:body /> |
15 | moos | 55 | </div> |
20 | moos | 56 | |
15 | moos | 57 | </div> |
58 | </body> |
||
20 | moos | 59 | </html> |