forked from wuc6602fx/SocialActivityTimeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRelation.jsp
More file actions
67 lines (60 loc) · 1.69 KB
/
Copy pathRelation.jsp
File metadata and controls
67 lines (60 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<%@ page contentType = "text/html" pageEncoding = "UTF-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page import = "java.util.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8">
<title>活動社群</title>
<style>
text { font: 10px sans-serif; }
</style>
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="http://cytoscape.github.io/cytoscape.js/api/cytoscape.js-latest/cytoscape.min.js"></script>
<script src="https://cdn.rawgit.com/cpettitt/dagre/v0.7.4/dist/dagre.min.js"></script>
<script src="https://cdn.rawgit.com/cytoscape/cytoscape.js-dagre/1.1.2/cytoscape-dagre.js"></script>
<style>
#relationChart {
width: 500px;
height: 500px;
}
</style>
</head>
<body>
<div id = "relationChart"></div><hr>
<script>
$(function(){
var cy = window.cy = cytoscape(${jsonStrg});
});
</script>
<div>
<table>
<tr>
<td>Who</td>
<td>Intersection Events</td>
<td>NonIntersection Events</td>
<td>Total Events</td>
</tr>
<c:forEach var = "element" items = "${relArray}">
<tr>
<td>${element.who}</td>
<td>
 
<c:forEach var = "event" items = "${element.intersection}">
${event.name} 
</c:forEach>
</td>
<td>
 
<c:forEach var = "event" items = "${element.nointersection}">
${event.name} 
</c:forEach>
</td>
<td>${element.totalScore}</td>
</tr>
</c:forEach>
</table>
</div>
</body>
</html>