修正版です
This commit is contained in:
@@ -5,30 +5,13 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>書籍貸出承認画面</title>
|
<title>書籍貸出承認画面</title>
|
||||||
</head>
|
</head>
|
||||||
|
<div style="text-align: right;">
|
||||||
|
<button class="logoutButton" onclick="logoutSubmit()">ログアウト</button>
|
||||||
|
</div>
|
||||||
<body>
|
<body>
|
||||||
<h2>書籍貸出申請を承認しました。</h2>
|
<h2>書籍貸出申請を承認しました。</h2>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="javascript:insertSubmit()">承認待ち一覧に戻る</a> | <a href="showMenu">メニューに戻る</a>
|
<a href="javascript:insertSubmit()">承認待ち一覧に戻る</a> | <a href="showMenu">メニューに戻る</a>
|
||||||
</body>
|
</body>
|
||||||
<script type="text/javascript">
|
|
||||||
function insertSubmit() {
|
|
||||||
const form = document.createElement('form');
|
|
||||||
form.setAttribute('method', 'post');
|
|
||||||
form.setAttribute('action', 'approvalConfirm');
|
|
||||||
|
|
||||||
// 動的送信用のHidden
|
|
||||||
// 動的にFormを作成する場合は何かしら送信しないと、正しく動作しない
|
|
||||||
const inputField = document.createElement("input");
|
|
||||||
inputField.setAttribute("type", "hidden");
|
|
||||||
inputField.setAttribute("value", "select");
|
|
||||||
|
|
||||||
form.appendChild(inputField);
|
|
||||||
|
|
||||||
// フォームをDOMに追加
|
|
||||||
document.body.appendChild(form);
|
|
||||||
|
|
||||||
form.submit();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</html>
|
</html>
|
||||||
@@ -123,13 +123,13 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="btnArea" colspan="2">
|
<td class="btn" colspan="2">
|
||||||
<input type="submit" value="承認"/>
|
<input type="submit" name="action" formaction="approvalComplete" value="承認"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="btnArea" colspan="2">
|
<td class="btn" colspan="2">
|
||||||
<input type="submit" value="却下"/>
|
<input type="submit" name="action" formaction="approvalRejected" value="却下"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -5,30 +5,12 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>書籍貸出却下画面</title>
|
<title>書籍貸出却下画面</title>
|
||||||
</head>
|
</head>
|
||||||
|
<div style="text-align: right;">
|
||||||
|
<button class="logoutButton" onclick="logoutSubmit()">ログアウト</button>
|
||||||
|
</div>
|
||||||
<body>
|
<body>
|
||||||
<h2>書籍貸出申請を却下しました。</h2>
|
<h2>書籍貸出申請を却下しました。</h2>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="javascript:insertSubmit()">承認待ち一覧に戻る</a> | <a href="showMenu">メニューに戻る</a>
|
<a href="javascript:insertSubmit()">承認待ち一覧に戻る</a> | <a href="showMenu">メニューに戻る</a>
|
||||||
</body>
|
</body>
|
||||||
<script type="text/javascript">
|
|
||||||
function insertSubmit() {
|
|
||||||
const form = document.createElement('form');
|
|
||||||
form.setAttribute('method', 'post');
|
|
||||||
form.setAttribute('action', 'approvalConfirm');
|
|
||||||
|
|
||||||
// 動的送信用のHidden
|
|
||||||
// 動的にFormを作成する場合は何かしら送信しないと、正しく動作しない
|
|
||||||
const inputField = document.createElement("input");
|
|
||||||
inputField.setAttribute("type", "hidden");
|
|
||||||
inputField.setAttribute("value", "select");
|
|
||||||
|
|
||||||
form.appendChild(inputField);
|
|
||||||
|
|
||||||
// フォームをDOMに追加
|
|
||||||
document.body.appendChild(form);
|
|
||||||
|
|
||||||
form.submit();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user