-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheventInfo.jsp
215 lines (196 loc) · 6.26 KB
/
eventInfo.jsp
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<%@page contentType="text/html" pageEncoding="utf-8"%>
<%@ page import="com.model.Event" %>
<html>
<meta charset="UTF-8">
<head>
<!-- TEMPLATE -->
<title>詳細資訊</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<!--[if lte IE 8]><script src="js/html5shiv.js"></script><![endif]-->
<script src="js/jquery.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/skel-layers.min.js"></script>
<script src="js/init.js"></script>
<noscript>
<link rel="stylesheet" href="css/skel.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/style-xlarge.css" />
</noscript>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="https://www.amcharts.com/lib/3/pie.js"></script>
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="https://www.amcharts.com/lib/3/pie.js"></script>
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
<script>
var chart = AmCharts.makeChart( "chartdiv", {
"type": "pie",
"theme": "light",
"dataProvider": [ {
"sex": "Male",
"value": ${sexRatio[0]}
}, {
"sex": "Female",
"value": ${sexRatio[1]}
}],
"valueField": "value",
"titleField": "sex",
"outlineAlpha": 0.4,
"depth3D": 15,
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
"angle": 30,
"export": {
"enabled": true
}
} );
</script>
<script>
var chart = AmCharts.makeChart("charts", {
"theme": "light",
"type": "serial",
"startDuration": 2,
"dataProvider": [{
"department": "資工",
"total": ${department['資工']},
"color": "#FF0F00"
}, {
"department": "應外",
"total": ${department['應外']},
"color": "#FF6600"
}, {
"department": "會計",
"total": ${department['會計']},
"color": "#FF9E01"
}, {
"department": "航管",
"total": ${department['航管']},
"color": "#FCD202"
}, {
"department": "護理",
"total": ${department['護理']},
"color": "#F8FF01"
}],
"graphs": [{
"balloonText": "[[category]]: <b>[[value]]</b>",
"fillColorsField": "color",
"fillAlphas": 1,
"lineAlpha": 0.1,
"type": "column",
"valueField": "total"
}],
"depth3D": 20,
"angle": 30,
"chartCursor": {
"categoryBalloonEnabled": false,
"cursorAlpha": 0,
"zoomable": false
},
"categoryField": "department",
"categoryAxis": {
"gridPosition": "start",
"labelRotation": 0
},
"export": {
"enabled": true
}
});
</script>
<style>
#chartdiv {
float: right;
width : 60%;
height : 435px;
font-size : 32px;
}
</style>
<style>
#charts {
float: left;
width : 40%;
height : 435px;
font-size : 32px;
}
</style>
<script>
var chart = AmCharts.makeChart( "chartdiv", {
"type": "pie",
"theme": "light",
"dataProvider": [ {
"sex": "Male",
"value": ${sexRatio[0]}
}, {
"sex": "Female",
"value": ${sexRatio[1]}
}],
"valueField": "value",
"titleField": "sex",
"outlineAlpha": 0.4,
"depth3D": 15,
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
"angle": 30,
"export": {
"enabled": true
}
} );
</script>
</head>
<body style="font-family: 微軟正黑體; font-size:22px">
<!-- Header -->
<%
Event e = (Event) request.getAttribute("event");
out.print("<div><center><img src = ImageServlet.do?ImageName=" + e.getImgPath() + "></img></center></div>");
out.println(e.getIntroduction());
%>
<header id="header" style=" font-size:18px">
<h1><strong><a href="index.html"></a></strong> <%=e.getName()%></h1>
<nav id="nav">
<ul>
<li><a href="Index.do">首頁</a></li>
<li><a href="ApplicantForm.jsp?name=${event.getName()}">報名</a></li>
</ul>
</nav>
</header>
<hr size="5" align="center" noshade width="90%" color="0000ff"><br><br>
<%
int total = (int)request.getAttribute("participatants");
out.print("<center>目前報名人數:" + total);
%>
</center><br><br>
<br><br><br><br><br>
<div id="charts"></div>
<div id="chartdiv" >
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<form action = "ApplicantForm.jsp">
<input type="hidden" name="name" value="${event.getName()}">
<center><input type="submit" value="報名"></center><br><br><br><br><br>
</form>
<%request.setAttribute("event",e);%>
<!-- Footer -->
<footer id="footer" style="background-color:#D6D6D6">
<div class="container">
<ul class="icons">
<li><a href="https://www.facebook.com/" class="icon fa-facebook"></a></li>
<li><a href="https://twitter.com/" class="icon fa-twitter"></a></li>
<li><a href="https://plus.google.com/" class="icon fa-instagram"></a></li>
</ul>
<ul class="copyright">
<li>© D3js</li>
<li>Design: <a href="http://templated.co">TEMPLATED</a></li>
<li>Images: <a href="http://unsplash.com">Unsplash</a></li>
</ul>
</div>
</footer>
</body>
</html>