質問編集履歴
3
app.jspノ追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -153,3 +153,55 @@
|
|
153
153
|
}
|
154
154
|
|
155
155
|
```
|
156
|
+
|
157
|
+
```app.jsp
|
158
|
+
|
159
|
+
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
160
|
+
|
161
|
+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
162
|
+
|
163
|
+
<!DOCTYPE html>
|
164
|
+
|
165
|
+
<html lang="ja">
|
166
|
+
|
167
|
+
<head>
|
168
|
+
|
169
|
+
<meta charset="UTF-8">
|
170
|
+
|
171
|
+
<title>健康チェック</title>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<link rel="stylesheet" href="<c:url value='/CSS/style.css' />">
|
176
|
+
|
177
|
+
</head>
|
178
|
+
|
179
|
+
<body>
|
180
|
+
|
181
|
+
<div id="wrapper">
|
182
|
+
|
183
|
+
<div id="header">
|
184
|
+
|
185
|
+
<h1>健康チェック</h1>
|
186
|
+
|
187
|
+
</div>
|
188
|
+
|
189
|
+
<div id="content">
|
190
|
+
|
191
|
+
${param.content}
|
192
|
+
|
193
|
+
</div>
|
194
|
+
|
195
|
+
<div id="footer">
|
196
|
+
|
197
|
+
by Yuki shiroma.
|
198
|
+
|
199
|
+
</div>
|
200
|
+
|
201
|
+
</div>
|
202
|
+
|
203
|
+
</body>
|
204
|
+
|
205
|
+
</html>
|
206
|
+
|
207
|
+
```
|
2
cssの提示
test
CHANGED
File without changes
|
test
CHANGED
@@ -116,110 +116,40 @@
|
|
116
116
|
|
117
117
|
```css
|
118
118
|
|
119
|
-
|
119
|
+
table, tr, th, td {
|
120
120
|
|
121
|
-
|
121
|
+
border: 1px solid #cccccc;
|
122
122
|
|
123
|
-
<c:import url="../layout/app.jsp">
|
124
|
-
|
125
|
-
<c:param name="content">
|
126
|
-
|
127
|
-
<c:if test="${flush != null}">
|
128
|
-
|
129
|
-
<div id="flush_success">
|
130
|
-
|
131
|
-
<c:out value="${flush}"></c:out>
|
132
|
-
|
133
|
-
</div>
|
134
|
-
|
135
|
-
</c:if>
|
136
|
-
|
137
|
-
<h2>生徒一覧</h2>
|
138
|
-
|
139
|
-
<table id="student_list">
|
140
|
-
|
141
|
-
<tbody>
|
142
|
-
|
143
|
-
<tr>
|
144
|
-
|
145
|
-
<th>学籍番号</th>
|
146
|
-
|
147
|
-
<th>氏名</th>
|
148
|
-
|
149
|
-
<th>操作</th>
|
150
|
-
|
151
|
-
</tr>
|
152
|
-
|
153
|
-
<c:forEach var="student" items="${students}" varStatus="status">
|
154
|
-
|
155
|
-
<tr class="row${status.count % 2}">
|
156
|
-
|
157
|
-
<td><c:out value="${employee.code}" /></td>
|
158
|
-
|
159
|
-
<td><c:out value="${employee.name}" /></td>
|
160
|
-
|
161
|
-
<td>
|
162
|
-
|
163
|
-
<c:choose>
|
164
|
-
|
165
|
-
<c:when test="${employee.delete_flag == 1}">
|
166
|
-
|
167
|
-
|
123
|
+
}
|
168
|
-
|
169
|
-
</c:when>
|
170
|
-
|
171
|
-
<c:otherwise>
|
172
|
-
|
173
|
-
<a href="<c:url value='/employees/show?id=${employee.id}' />">詳細を表示</a>
|
174
|
-
|
175
|
-
</c:otherwise>
|
176
|
-
|
177
|
-
</c:choose>
|
178
|
-
|
179
|
-
</td>
|
180
|
-
|
181
|
-
</tr>
|
182
|
-
|
183
|
-
</c:forEach>
|
184
|
-
|
185
|
-
</tbody>
|
186
|
-
|
187
|
-
</table>
|
188
124
|
|
189
125
|
|
190
126
|
|
191
|
-
|
127
|
+
table {
|
192
128
|
|
193
|
-
|
129
|
+
width: 100%;
|
194
130
|
|
195
|
-
|
131
|
+
table-layout: fixed;
|
196
132
|
|
197
|
-
|
133
|
+
}
|
198
|
-
|
199
|
-
<c:when test="${i == page}">
|
200
|
-
|
201
|
-
<c:out value="${i}" />
|
202
|
-
|
203
|
-
</c:when>
|
204
|
-
|
205
|
-
<c:otherwise>
|
206
|
-
|
207
|
-
<a href="<c:url value='/health/index?page=${i}' />"><c:out value="${i}" /></a>
|
208
|
-
|
209
|
-
</c:otherwise>
|
210
|
-
|
211
|
-
</c:choose>
|
212
|
-
|
213
|
-
</c:forEach>
|
214
|
-
|
215
|
-
</div>
|
216
|
-
|
217
|
-
<p><a href="<c:url value='/employees/new' />">新規従業員の登録</a></p>
|
218
134
|
|
219
135
|
|
220
136
|
|
221
|
-
|
137
|
+
th {
|
222
138
|
|
139
|
+
width: 26%;
|
140
|
+
|
223
|
-
|
141
|
+
padding: 10px 2%;
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
td {
|
148
|
+
|
149
|
+
width: 66%;
|
150
|
+
|
151
|
+
padding: 10px 2%;
|
152
|
+
|
153
|
+
}
|
224
154
|
|
225
155
|
```
|
1
コードの場所修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
```
|
7
|
+
``` jsp
|
8
8
|
|
9
9
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
10
10
|
|