40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns:th="http://www.thymeleaf.org">
|
||
|
||
<head>
|
||
|
||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||
<!-- 外部のスクリプトファイルを読み込む -->
|
||
<script th:src="@{/js/common.js}"></script>
|
||
<!-- CSSの読み込み -->
|
||
<link rel="stylesheet" th:href="@{/css/all.css}">
|
||
<link rel=stylesheet th:href="@{/css/style.css}" type="text/css">
|
||
<title>社員登録完了</title>
|
||
</head>
|
||
|
||
<body>
|
||
<h2>社員登録が完了しました</h2>
|
||
<br/>
|
||
<a href="javascript:insertSubmit()">続けて登録する</a> | <a href="showMenu">メニューに戻る</a>
|
||
</body>
|
||
<script type="text/javascript">
|
||
function insertSubmit() {
|
||
const form = document.createElement('form');
|
||
form.setAttribute('method', 'post');
|
||
form.setAttribute('action', 'insertEmployeeInput');
|
||
|
||
// 動的送信用の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> |