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="old/js/diagram.js"></script>
|
13
|
<script src="old/js/user.js"></script>
|
14
|
|
15
|
<title>IMiGEr</title>
|
16
|
</head>
|
17
|
|
18
|
<body>
|
19
|
<div class="wrapper">
|
20
|
<header class="header" id="header">
|
21
|
<img src="images/logo.png" class="header-logo" alt="logo of University of West Bohemia" title="University of West Bohemia">
|
22
|
|
23
|
<h2 class="header-title">Interactive Multimodal Graph Explorer</h2>
|
24
|
|
25
|
<jsp:include page="logged_user.jsp" />
|
26
|
|
27
|
<nav class="navbar" id="navigation"></nav>
|
28
|
</header>
|
29
|
|
30
|
<main class="upload-content">
|
31
|
<jsp:include page="logged_user_menu.jsp" />
|
32
|
|
33
|
<div class="upload-forms">
|
34
|
<c:if test="${not empty errorMessage}">
|
35
|
<p class="errorMessage">${errorMessage}</p>
|
36
|
</c:if>
|
37
|
|
38
|
<h5>Upload SPADe data:</h5>
|
39
|
|
40
|
<form action="/" method="post" enctype="multipart/form-data">
|
41
|
<div class="form-field">
|
42
|
<input type="file" name="file">
|
43
|
</div>
|
44
|
|
45
|
<hr class="verticalSeparator">
|
46
|
|
47
|
<input type="submit" value="Start visualization">
|
48
|
</form>
|
49
|
|
50
|
<%--<c:if test="${not empty componentNames}">
|
51
|
<hr class="verticalSeparator">
|
52
|
|
53
|
<h3>Uploaded components:</h3>
|
54
|
|
55
|
<ul id="uploadedComponent">
|
56
|
<%
|
57
|
if (request.getParameter("diagram_id") == null) {
|
58
|
request.setAttribute("url_diagram_id", "");
|
59
|
%>
|
60
|
<li id="deleteAll">Delete all <a href="delete-components"><img src="images/button_cancel.png" alt="delete" class="imgDelete"/></a></li>
|
61
|
<%
|
62
|
} else {
|
63
|
request.setAttribute("url_diagram_id", "&diagram_id="+ request.getParameter("diagram_id") + "&diagram_hash="+ request.getParameter("diagram_hash"));
|
64
|
}
|
65
|
%>
|
66
|
<c:forEach items="${componentNames}" var="componentName">
|
67
|
<li id="${componentName}">${componentName}
|
68
|
<% if (request.getParameter("diagram_id") == null || ( request.getSession().getAttribute("logged_user_id") != null &&
|
69
|
request.getAttribute("diagram_user_id") != null &&
|
70
|
request.getAttribute("diagram_user_id").toString().compareTo(request.getSession().getAttribute("logged_user_id").toString()) == 0 )) { %>
|
71
|
<a href="delete-component?name=${componentName}<%= request.getAttribute("url_diagram_id") %>"><img src="images/button_cancel.png" alt="delete" class="imgDelete"/></a></li>
|
72
|
<% } %>
|
73
|
</c:forEach>
|
74
|
</ul>
|
75
|
</c:if>
|
76
|
<hr class="verticalSeparator">
|
77
|
|
78
|
<form name="diagramForm" action="graph" method="post">
|
79
|
<input type="submit" value="Start visualization" ${not empty componentNames ? "" : "disabled='disabled'"}>
|
80
|
</form>
|
81
|
--%>
|
82
|
</div>
|
83
|
</main>
|
84
|
</div>
|
85
|
</body>
|
86
|
</html>
|