This commit is contained in:
Калугин Олег Александрович
2026-04-13 12:06:31 +00:00
committed by GitVerse
parent ae3227f127
commit 2d007d2359
8 changed files with 318 additions and 99 deletions

77
public/k.html Normal file
View File

@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Управление корпусами учителей</title>
<link rel="stylesheet" href="style.css">
<style>
.teachers-table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 1rem;
overflow: hidden;
}
.teachers-table th, .teachers-table td {
border: 1px solid #e2e8f0;
padding: 0.75rem;
text-align: left;
}
.teachers-table th {
background: #f1f5f9;
}
.campus-select {
padding: 0.4rem;
border-radius: 0.5rem;
border: 1px solid #cbd5e1;
}
.save-btn {
background: #2d6a4f;
margin: 1rem 0;
}
.message {
margin-top: 1rem;
padding: 0.5rem;
border-radius: 0.5rem;
}
.success {
background: #d1fae5;
color: #065f46;
}
.error {
background: #fee2e2;
color: #991b1b;
}
</style>
</head>
<body>
<header>
<h1>Управление корпусами учителей</h1>
<div id="userInfo"></div>
<button id="logoutBtn">Выйти</button>
</header>
<main style="padding: 2rem;">
<div class="header-actions">
<h2>Список учителей</h2>
<button id="saveAllBtn" class="save-btn">💾 Сохранить все изменения</button>
</div>
<div style="overflow-x: auto;">
<table class="teachers-table" id="teachersTable">
<thead>
<tr>
<th>Учитель</th>
<th>Предмет</th>
<th>Корпус</th>
</tr>
</thead>
<tbody id="tableBody">
<tr><td colspan="3">Загрузка...</td></tr>
</tbody>
</table>
</div>
<div id="message" class="message" style="display:none;"></div>
</main>
<script src="k.js"></script>
</body>
</html>