Projekt

Obecné

Profil

Stáhnout (8.81 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
<%@page import="java.util.Map"%>
4
<%@page import="com.google.gson.Gson"%>
5
<%@page import="com.google.gson.GsonBuilder"%>
6

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

    
12
		<link rel="stylesheet" href="css/main.css">
13
		<link rel="stylesheet" href="css/jstree/themes/default/style.min.css">
14

    
15
		<script id="htmlTags" type="application/json"><%@ include file="node_modules/html-tags/html-tags.json" %></script>
16
		<script id="svgTags" type="application/json"><%@ include file="node_modules/svg-tags/lib/svg-tags.json" %></script>
17

    
18
		<script src="js/libs/jquery-1.8.3.js"></script>
19
		<script src="js/libs/spin.js"></script>
20
		<script src="js/libs/saveSvgAsPng.js"></script>
21
		<script src="js/libs/jstree.min.js"></script>
22

    
23
		<script src="js/components/attribute.js"></script>
24
		<script src="js/components/edge.js"></script>
25
		<script src="js/components/edgePopover.js"></script>
26
		<script src="js/components/floatingPoint.js"></script>
27
		<script src="js/components/group.js"></script>
28
		<script src="js/components/groupVertexList.js"></script>
29
		<script src="js/components/minimap.js"></script>
30
		<script src="js/components/sidebar.js"></script>
31
		<script src="js/components/sidebarExcludedNodeList.js"></script>
32
		<script src="js/components/sidebarUnconnectedNodeList.js"></script>
33
		<script src="js/components/statusBar.js"></script>
34
		<script src="js/components/vertex.js"></script>
35
		<script src="js/components/vertexContextMenuList.js"></script>
36
		<script src="js/components/vertexPopover.js"></script>
37
		<script src="js/components/vertexSymbolList.js"></script>
38
		<script src="js/components/viewport.js"></script>
39

    
40
		<script src="js/exceptions/invalidArgumentException.js"></script>
41

    
42
		<script src="js/constants.js"></script>
43
		<script src="js/coordinates.js"></script>
44
		<script src="js/forceDirected.js"></script>
45
		<script src="js/graphLoader.js"></script>
46
		<script src="js/graphExporter.js"></script>
47
		<script src="js/graphHistory.js"></script>
48
		<script src="js/loader.js"></script>
49
		<script src="js/markSymbol.js"></script>
50
		<script src="js/utils/cookies.js"></script>
51
		<script src="js/utils/dom.js"></script>
52
		<script src="js/utils/utils.js"></script>
53
		<script src="js/zoom.js"></script>
54
		<script src="js/app.js"></script>
55

    
56
		<title>IMiGEr</title>
57
	</head>
58

    
59
	<body>
60
		<%
61
		String getProtocol = request.getScheme();
62
		String getDomain = request.getServerName();
63
		String getPort = Integer.toString(request.getServerPort());
64
		String getPath = getProtocol + "://" + getDomain + ":" + getPort + "/";
65
		String getURI = request.getRequestURI();
66

    
67
		// logged-in user
68
		boolean logged_user = false;
69
		if (request.getSession().getAttribute("logged_user") == "1") {
70
			logged_user = true;
71
		}
72

    
73
		// saved diagram
74
		boolean diagram_id_hash_set = false;
75
		if (request.getParameter("diagram_id") != null && request.getParameter("diagram_hash") != null) {
76
			diagram_id_hash_set = true;
77
		}
78

    
79
		String diagram_url = "";
80
		if (logged_user && diagram_id_hash_set) {
81
			diagram_url = "?diagram_id=" + request.getParameter("diagram_id") + "&diagram_hash=" + request.getParameter("diagram_hash");
82
		}
83
		%>
84

    
85
		<div class="wrapper">
86
			<header class="header" id="header">
87
				<img src="images/logo.png" class="header-logo" alt="logo of University of West Bohemia" title="University of West Bohemia">
88

    
89
				<h2 class="header-title">Interactive Multimodal Graph Explorer</h2>
90

    
91
				<jsp:include page="logged_user.jsp" />
92

    
93
				<nav class="navbar" id="navigation">
94
					<ul>
95
						<li>
96
							<button class="btn zoom" id="zoomOut" title="zoom-"><img src="images/zoom_out.png" alt="zoom-"></button>
97
							<span class="zoom-value" id="zoomValue"></span>
98
							<button class="btn zoom" id="zoomIn" title="zoom+"><img src="images/zoom_in.png" alt="zoom+"></button>
99
						</li>
100
						<li>
101
							<hr class="navbar-separator">
102
						</li>
103
						<li>
104
							<button class="btn toggle-filters" id="toggleFilters">Filters</button>
105
						</li>
106
						<li>
107
							<hr class="navbar-separator">
108
						</li>
109
						<li>
110
							<input class="search-text" id="searchText" type="text" placeholder="Search components...">
111
							<button class="btn search" id="search"><img src="images/search.png" title="search" alt="search"></button>
112
							<span class="search-count" id="countOfFound" title="Count of components found">0</span>
113
						</li>
114
						<li>
115
							<hr class="navbar-separator">
116
						</li>
117
						<li>
118
							<form name="actionForm">
119
								<label for="move">
120
									<input type="radio" name="actionMove" value="move" id="move" checked>
121
									move
122
									<img class="navbar-image" src="images/move.png" alt="move">
123
								</label>
124
								<label for="remove">
125
									<input type="radio" name="actionMove" value="exclude" id="remove">
126
									exclude
127
									<img class="navbar-image" src="images/remove2.png" alt="remove">
128
								</label>
129
							</form>
130
						</li>
131
						<li>
132
							<hr class="navbar-separator">
133
						</li>
134
						<li>
135
							<button id="mostEdge" class="btn exclude-separately" title="Exclude components with the most count of edges separately.">
136
								<img src="images/excludeSeparately.png" alt="excludeSeparately">
137
							</button>
138
						</li>
139
						<li>
140
							<hr class="navbar-separator">
141
						</li>
142
						<li>
143
							<button id="vertexToGroup" class="btn exclude-to-group" title="Exclude components with the most count of edges to group.">
144
								<img src="images/package.png" alt="Exclude components to group">
145
							</button>
146
						</li>
147
						<li>
148
							<hr class="navbar-separator">
149
						</li>
150
						<li>
151
							<a href="<%=getServletContext().getInitParameter("HOME_URL")%><%=diagram_url%>" class="btn btn-block back-to-upload" id="view_back_to_upload" title="Back to upload"></a>
152
						</li>
153
						<li>
154
							<hr class="navbar-separator">
155
						</li>
156
						<li>
157
							<button class="btn" id="applyLayout" title="Apply layout to current graph.">
158
								<img src="images/layout_off.png" id="applyLayoutImg" alt="Apply layout to current graph.">
159
							</button>
160
						</li>
161
						<li>
162
							<hr class="navbar-separator">
163
						</li>
164
						<li>
165
							<button class="btn save-diagram" id="btnSaveDiagram" title="Save diagram as PNG.">
166
								<img src="images/png_save.png" id="applyLayoutImg" alt="Save diagram as PNG.">
167
							</button>
168
						</li>
169
						<c:if test="${show_icon_save}">
170
							<li>
171
								<button class="btn save-diagram" id="btnSaveDiagramToDb" title="Save diagram.">
172
									<img src="images/icon_save.png" id="applyLayoutImg" alt="Save diagram">
173
								</button>
174
							</li>
175
						</c:if>
176
						<li>
177
							<hr class="navbar-separator">
178
						</li>
179
						<li>
180
							<a href="<%=getServletContext().getInitParameter("HOME_URL")%>graph<%=diagram_url%>" class="btn btn-block view-refresh-diagram" id="view_refresh_diagram" title="Refresh diagram"></a>
181
						</li>
182
						<li>
183
							<hr class="navbar-separator">
184
						</li>
185
						<li>
186
							<a href="<%=getServletContext().getInitParameter("HOME_URL")%>graph<%=diagram_url%>" class="btn btn-block view-refresh-reset-diagram" id="view_refresh_reset_diagram" onclick="reset_diagram(<%=request.getParameter("diagram_id")%>,'<%=request.getParameter("diagram_hash")%>'); return false;" title="Refresh diagram - reset position"></a>
187
						</li>
188
					</ul>
189
				</nav>
190
			</header>
191

    
192
			<div class="filterBar hidden" id="filters">
193
				<div class="filterbar-nav">
194
					<button class="button buttonClassic" id="addFilter">Add filter</button>
195
					<button class="button buttonClassic" id="deleteFilter">Delete filter</button>
196
					<select id="filterTypeSelection">
197
						<option value="Archetype"> Archetype </option>
198
						<option value="Atribute"> Atribute </option>
199
						<option value="Logical"> Logical </option>
200
					</select>
201
					<select id="logicOperationSelection" disabled="disabled">
202
						<option value="And"> And </option>
203
						<option value="Or"> Or </option>
204
						<option value="Xor"> Xor </option>
205
					</select>
206
					<select id="attributeTypeSelection" disabled="disabled">
207
						<option value="Enum"> Enum </option>
208
						<option value="String"> String </option>
209
						<option value="Number"> Number </option>
210
						<option value="Date"> Date </option>
211
					</select>
212
				</div>
213

    
214
				<div class="vertex-tree" id="vertexTree">
215
					<ul class="vertexTreeList">
216
						<li class="vertexTreeItem" id="1">
217
							<span>
218
								Vertex Filters
219
							</span>
220
						</li>
221
					</ul>
222
				</div>
223
			</div>
224

    
225
			<main class="graph-content" id="content"></main>
226
		</div>
227

    
228
		<div class="loader" id="loader">
229
			<div class="loader-content" id="spinLoader">
230
				<p>Loading graph...</p>
231
			</div>
232
		</div>
233

    
234
		<script>
235
		var app = new App;
236
		app.HOME_URL = '<%=getPath%>imiger/';
237

    
238
		$(document).ready(function() {
239
			var loaderFn = app.diagramLoader('<%=request.getParameter("diagramId")%>', '<%=request.getParameter("diagram_hash")%>');
240

    
241
			app.run(loaderFn);
242
		});
243
		</script>
244
	</body>
245
</html>
(6-6/7)