質問編集履歴
3
該当ソースコードを変更しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,33 +16,143 @@
|
|
16
16
|
|
17
17
|
```ここに言語を入力
|
18
18
|
|
19
|
-
<
|
19
|
+
<%@ page session = "false" language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
20
20
|
|
21
|
-
|
21
|
+
<%@ page import="java.time.LocalDate" %>
|
22
22
|
|
23
|
-
|
23
|
+
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
24
24
|
|
25
|
-
|
25
|
+
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
|
26
26
|
|
27
|
-
|
27
|
+
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
28
28
|
|
29
|
-
|
29
|
+
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
30
30
|
|
31
|
-
|
31
|
+
<!DOCTYPE html>
|
32
32
|
|
33
|
-
|
33
|
+
<html>
|
34
34
|
|
35
|
-
|
35
|
+
<head>
|
36
36
|
|
37
|
-
|
37
|
+
<link rel="stylesheet" type="text/css" href="/sales/resources/common.css" />
|
38
38
|
|
39
|
-
|
39
|
+
<title>明細追加画面</title>
|
40
40
|
|
41
|
-
|
41
|
+
</head>
|
42
42
|
|
43
|
-
|
43
|
+
<body>
|
44
44
|
|
45
|
+
<form:form modelAttribute="salesForm" action="/sales/system">
|
46
|
+
|
47
|
+
<div class="header">
|
48
|
+
|
49
|
+
<span class="titleName">オンラインショップ</span>
|
50
|
+
|
51
|
+
<div class="date"><%= LocalDate.now() %></div>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<div class="main">
|
56
|
+
|
57
|
+
<span class="name">商品:</span>
|
58
|
+
|
59
|
+
<select name="name">
|
60
|
+
|
61
|
+
<c:forEach items="${itemList}" var="item" varStatus="status">
|
62
|
+
|
63
|
+
<option value="${item.name}">${item.name}</option>
|
64
|
+
|
65
|
+
</c:forEach>
|
66
|
+
|
67
|
+
</select>
|
68
|
+
|
69
|
+
<br>
|
70
|
+
|
71
|
+
<span class="quantity">点数:</span>
|
72
|
+
|
73
|
+
<form:input path="quantity" size="5" value="1" />
|
74
|
+
|
75
|
+
<div class="">
|
76
|
+
|
77
|
+
<input type="submit" name="add" value="明細追加">
|
78
|
+
|
79
|
+
</div>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
</form:form>
|
84
|
+
|
85
|
+
<form:form modelAttribute="salesForm" action="/sales/system">
|
86
|
+
|
87
|
+
<div class="main2">
|
88
|
+
|
89
|
+
<br>
|
90
|
+
|
91
|
+
<br>
|
92
|
+
|
93
|
+
<div class="message">
|
94
|
+
|
95
|
+
<c:out value="${message}" />
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
<br>
|
100
|
+
|
101
|
+
<br>
|
102
|
+
|
103
|
+
売上明細
|
104
|
+
|
105
|
+
<br>
|
106
|
+
|
107
|
+
<table>
|
108
|
+
|
109
|
+
<tr>
|
110
|
+
|
111
|
+
<th>削除</th><th>商品ID</th><th>商品名</th><th>単価</th><th>点数</th><th>小計</th>
|
112
|
+
|
113
|
+
</tr>
|
114
|
+
|
115
|
+
<c:forEach items="${newList}" var="newList" varStatus="status">
|
116
|
+
|
117
|
+
<tr>
|
118
|
+
|
119
|
+
<th>
|
120
|
+
|
121
|
+
<form:radiobutton path="name" label="" value="${newList.name}"/>
|
122
|
+
|
123
|
+
</th>
|
124
|
+
|
125
|
+
<th>${newList.id}</th><th>${newList.name}</th><th>${newList.price}</th>
|
126
|
+
|
127
|
+
<th>${newList.quantity}</th><th>${newList.subtotal}</th>
|
128
|
+
|
129
|
+
</tr>
|
130
|
+
|
131
|
+
</c:forEach>
|
132
|
+
|
45
|
-
</table>
|
133
|
+
</table>
|
134
|
+
|
135
|
+
合計:<fmt:formatNumber value="${total}" groupingUsed="true" />円
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
<div class="footer">
|
140
|
+
|
141
|
+
<input type="submit" name="delete" value="削除"/>
|
142
|
+
|
143
|
+
<input type="submit" name="fix" value="確定">
|
144
|
+
|
145
|
+
</div>
|
146
|
+
|
147
|
+
</form:form>
|
148
|
+
|
149
|
+
</body>
|
150
|
+
|
151
|
+
</html>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
46
156
|
|
47
157
|
```
|
48
158
|
|
2
出力したHTMLピクチャを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,6 +13,8 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
### 該当のソースコード
|
16
|
+
|
17
|
+
```ここに言語を入力
|
16
18
|
|
17
19
|
<table>
|
18
20
|
|
@@ -41,3 +43,11 @@
|
|
41
43
|
</c:forEach>
|
42
44
|
|
43
45
|
</table>
|
46
|
+
|
47
|
+
```
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
### 出力したHTML
|
52
|
+
|
53
|
+
![イメージ説明](a2919ea8d73b8549446a954536ba3d6a.png)
|
1
該当のソースコード全体を記載しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,10 +14,30 @@
|
|
14
14
|
|
15
15
|
### 該当のソースコード
|
16
16
|
|
17
|
+
<table>
|
17
18
|
|
19
|
+
<tr>
|
18
20
|
|
19
|
-
|
21
|
+
<th>削除</th><th>商品ID</th><th>商品名</th><th>単価</th><th>点数</th><th>小計</th>
|
20
22
|
|
21
|
-
<
|
23
|
+
</tr>
|
22
24
|
|
25
|
+
<c:forEach items="${newList}" var="newList" varStatus="status">
|
26
|
+
|
23
|
-
|
27
|
+
<tr>
|
28
|
+
|
29
|
+
<th>
|
30
|
+
|
31
|
+
<form:radiobutton path="name" label="" value="${newList.name}" checked="false"/>
|
32
|
+
|
33
|
+
</th>
|
34
|
+
|
35
|
+
<th>${newList.id}</th><th>${newList.name}</th><th>${newList.price}</th>
|
36
|
+
|
37
|
+
<th>${newList.quantity}</th><th>${newList.subtotal}</th>
|
38
|
+
|
39
|
+
</tr>
|
40
|
+
|
41
|
+
</c:forEach>
|
42
|
+
|
43
|
+
</table>
|