Projekt

Obecné

Profil

Stáhnout (2 KB) Statistiky
| Větev: | Tag: | Revize:
1
<%@page contentType="text/html" pageEncoding="UTF-8"%>
2
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
3

    
4
<!DOCTYPE html>
5
<html>
6
	<head>
7
		<meta charset="utf-8">
8

    
9
		<link rel="stylesheet" href="css/main.css">
10

    
11
		<script src="js/libs/jquery-1.8.3.js"></script>
12
		<script src="js/legacy/diagram.js"></script>
13
		<script src="js/legacy/user.js"></script>
14
		<script src="js/userMenu.js"></script>
15

    
16
		<title>IMiGEr</title>
17
	</head>
18

    
19
	<body>
20
		<c:set var="HOME_URL" value="${initParam.HOME_URL}"/>
21
		<c:set var="isLoggedIn" value="${sessionScope.isLoggedIn}"/>
22
		<c:set var="user" value="${sessionScope.user}"/>
23

    
24
		<header class="header" id="header">
25
			<img src="images/logo.png" class="header-logo" alt="logo of University of West Bohemia" title="University of West Bohemia">
26

    
27
			<h2 class="header-title">Interactive Multimodal Graph Explorer</h2>
28

    
29
			<%@ include file="userMenu.jsp" %>
30
		</header>
31

    
32
		<main class="upload-content">
33
			<div class="upload-forms">
34
				<c:if test="${not empty errorMessage}">
35
					<p class="alert">${errorMessage}</p>
36
				</c:if>
37

    
38
				<strong>Upload SPADe data:</strong>
39

    
40
				<form method="post" enctype="multipart/form-data">
41
					<div class="form-field">
42
						<input type="file" name="file">
43
					</div>
44

    
45
					<input type="submit" value="Start visualization">
46
				</form>
47
			</div>
48

    
49
			<c:if test="${isLoggedIn}">
50
				<div class="diagrams-menu">
51
					<h3>My diagrams</h3>
52

    
53
					<ul>
54
						<c:forEach items="${diagramsPrivate}" var="diagram">
55
							<li>
56
								<a href="${HOME_URL}graph?diagramId=${diagram.id}">${diagram.name}</a>
57
								<button onclick="return deleteDiagram(${diagram.id});"><img src="images/button_cancel.png" alt="odstranit"></a>
58
							</li>
59
						</c:forEach>
60
					</ul>
61
				</div>
62
			</c:if>
63

    
64
			<div class="diagrams-menu">
65
				<h3>Public diagrams</h3>
66

    
67
				<ul>
68
					<c:forEach items="${diagramsPublic}" var="diagram">
69
						<li>
70
							<a href="${HOME_URL}graph?diagramId=${diagram.id}">${diagram.name}</a>
71
						</li>
72
					</c:forEach>
73
				</ul>
74
			</div>
75
		</main>
76
	</body>
77
</html>
(6-6/7)