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