Projekt

Obecné

Profil

Stáhnout (2.46 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
<c:set var="HOME_URL" value="${initParam.HOME_URL}"/>
5
<c:set var="isLoggedIn" value="${sessionScope.isLoggedIn}"/>
6
<c:set var="user" value="${sessionScope.user}"/>
7

    
8
<!DOCTYPE html>
9
<html>
10
	<head>
11
		<meta charset="utf-8">
12

    
13
		<link rel="stylesheet" href="css/main.css">
14

    
15
		<script src="js/errors/httpError.js"></script>
16
		<script src="js/utils/ajax.js"></script>
17
		<script src="js/constants.js"></script>
18
		<script src="js/uploadFiles.js"></script>
19
		<script src="js/userMenu.js"></script>
20

    
21
		<title>IMiGEr</title>
22
	</head>
23

    
24
	<body class="${isLoggedIn ? 'loggedIn' : 'loggedOut'}">
25
		<header class="header" id="header">
26
			<img src="images/logo.png" class="header-logo" alt="logo of University of West Bohemia" title="University of West Bohemia">
27

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

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

    
33
		<main>
34
			<div class="upload-form">
35
				<h3>New diagram</h3>
36

    
37
				<c:if test="${not empty errorMessage}">
38
					<p class="alert">${errorMessage}</p>
39
				</c:if>
40

    
41
				<form method="post" enctype="multipart/form-data">
42
					<div class="form-field">
43
						<label for="file">Select JSON data file:</label><br>
44
						<input type="file" name="file" id="file">
45
					</div>
46

    
47
					<div class="form-field">
48
						Select type of data file:<br>
49
						<label for="spade"><input type="radio" name="jsonFileFormat" value="spade" id="spade" checked> Spade JSON</label><br>
50
						<label for="raw"><input type="radio" name="jsonFileFormat" value="raw" id="raw"> Raw JSON</label><br>
51
					</div>
52

    
53
					<button type="submit">Start visualization</button>
54
				</form>
55
			</div>
56

    
57
			<div class="diagrams-menu loggedInOnly">
58
				<h3>My diagrams</h3>
59

    
60
				<ul id="privateDiagramList">
61
					<c:forEach items="${diagramsPrivate}" var="diagram">
62
						<li>
63
							<a href="${HOME_URL}graph?diagramId=${diagram.id}">${diagram.name}</a>
64
							<button class="remove-diagram-button" data-id="${diagram.id}" data-name="${diagram.name}"><img src="images/button_cancel.png" alt="odstranit"></button>
65
						</li>
66
					</c:forEach>
67
				</ul>
68
			</div>
69

    
70
			<div class="diagrams-menu">
71
				<h3>Public diagrams</h3>
72

    
73
				<ul id="publicDiagramList">
74
					<c:forEach items="${diagramsPublic}" var="diagram">
75
						<li>
76
							<a href="${HOME_URL}graph?diagramId=${diagram.id}">${diagram.name}</a>
77
						</li>
78
					</c:forEach>
79
				</ul>
80
			</div>
81
		</main>
82
	</body>
83
</html>
(5-5/6)