147 lines
3.8 KiB
HTML
147 lines
3.8 KiB
HTML
<!doctype html>
|
|
<html lang="ja">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>NJTS 会計システム - メイン</title>
|
|
<link rel="stylesheet" href="css/style.css" />
|
|
<script src="js/auth.js"></script>
|
|
<style>
|
|
body {
|
|
font-family:
|
|
system-ui,
|
|
-apple-system,
|
|
"Yu Gothic UI",
|
|
"Hiragino Kaku Gothic ProN",
|
|
"メイリオ",
|
|
sans-serif;
|
|
padding: 24px;
|
|
}
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
max-width: 980px;
|
|
margin: 0 auto;
|
|
}
|
|
.card {
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
background: #fff;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.card h2 {
|
|
margin-top: 0;
|
|
}
|
|
.card p:last-child {
|
|
margin-top: auto;
|
|
margin-bottom: 0;
|
|
padding-top: 12px;
|
|
}
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 10px 14px;
|
|
border-radius: 6px;
|
|
background: #007bff;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
header {
|
|
max-width: 980px;
|
|
margin: 0 auto 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
header h1 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
}
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
font-size: 14px;
|
|
color: #333;
|
|
}
|
|
.logout-btn {
|
|
padding: 8px 12px;
|
|
background: #dc3545;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
}
|
|
.logout-btn:hover {
|
|
background: #c82333;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>NJTS</h1>
|
|
<div class="user-info">
|
|
<span>ユーザー: <strong id="username">読み込み中...</strong></span>
|
|
<button class="logout-btn" onclick="logout()">ログアウト</button>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="grid">
|
|
<section class="card">
|
|
<h2>会計システム</h2>
|
|
<p>
|
|
会計モジュールの主要画面へ移動します。仕訳入力、試算表、元帳に移動できます。
|
|
</p>
|
|
<p>
|
|
<a class="btn" href="journal-entry.html">仕訳入力へ</a>
|
|
<a
|
|
class="btn"
|
|
href="trial-balance.html"
|
|
style="margin-left: 10px; background: #28a745"
|
|
>試算表へ</a
|
|
>
|
|
<a
|
|
class="btn"
|
|
href="opening_balance.html"
|
|
style="margin-left: 10px; background: #fd7e14"
|
|
>期首残高入力へ</a
|
|
>
|
|
</p>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<h2>給与システム</h2>
|
|
<p>給与・賞与の計算や従業員管理を行います。</p>
|
|
<p><a class="btn" href="payroll.html">給与システムを開く</a></p>
|
|
</section>
|
|
</main>
|
|
|
|
<script>
|
|
// ユーザー情報を表示
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
const user = getCurrentUser();
|
|
if (user) {
|
|
document.getElementById("username").textContent = user.username;
|
|
}
|
|
});
|
|
|
|
// dropdown toggle
|
|
const toggle = document.getElementById("accountingToggle");
|
|
const menu = document.getElementById("accountingMenu");
|
|
toggle.addEventListener("click", (e) => {
|
|
menu.style.display = menu.style.display === "block" ? "none" : "block";
|
|
});
|
|
// click outside to close
|
|
document.addEventListener("click", (e) => {
|
|
if (!toggle.contains(e.target) && !menu.contains(e.target)) {
|
|
menu.style.display = "none";
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|