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

View File

@@ -14,35 +14,35 @@
<main>
<div class="admin-controls">
<button id="addLessonBtn">+ Добавить урок</button>
<div class="filters">
<div class="filter-group">
<label>Класс</label>
<select id="filterClass">
<option value="">Все классы</option>
</select>
</div>
<div class="filter-group">
<label>Учитель</label>
<select id="filterTeacher">
<option value="">Все учителя</option>
</select>
</div>
<div class="filter-group">
<label>Тема урока</label>
<select id="filterTopic">
<option value="">Все темы</option>
</select>
</div>
<input type="text" id="filterParallel" placeholder="Параллель (цифра)">
<button id="applyFilters">Применить</button>
<button id="resetFilters" class="reset-btn">Сбросить</button>
</div>
<div class="filters">
<div class="filter-group">
<label>Класс</label>
<select id="filterClass">
<option value="">Все классы</option>
</select>
</div>
<div class="filter-group">
<label>Учитель</label>
<select id="filterTeacher">
<option value="">Все учителя</option>
</select>
</div>
<div class="filter-group">
<label>Тема урока</label>
<select id="filterTopic">
<option value="">Все темы</option>
</select>
</div>
<input type="text" id="filterParallel" placeholder="Параллель (цифра)">
<button id="applyFilters">Применить</button>
<button id="resetFilters" class="reset-btn">Сбросить</button>
</div>
</div>
<div id="lessonsList" class="lessons-list"></div>
<!-- Импорт JSON (без даты/времени) -->
<!-- Импорт JSON / Excel -->
<div class="import-section">
<h3>Импорт уроков из JSON</h3>
<h3>Импорт уроков из JSON / Excel</h3>
<input type="file" id="jsonFileInput" accept=".json, .xlsx, .xls">
<div class="import-params">
<label>Макс. мест (сколько родителей может записаться):
@@ -54,7 +54,9 @@
<h4>Предпросмотр (первые 20 записей)</h4>
<div style="overflow-x:auto;">
<table id="previewTable" border="1" cellpadding="5">
<thead><tr><th>Класс</th><th>Предмет</th><th>Учитель</th><th>Тема</th></tr></thead>
<thead>
<tr><th>Класс</th><th>Предмет</th><th>Учитель</th><th>Тема</th></tr>
</thead>
<tbody></tbody>
</table>
</div>
@@ -76,8 +78,8 @@
<label>Учитель: <input type="text" id="teacher" required></label>
<label>Тема урока: <input type="text" id="topic"></label>
<label>Макс. мест: <input type="number" id="maxSlots" required></label>
<label>Дата: <input type="date" id="date" required></label>
<label>Время: <input type="time" id="time" required></label>
<label>Дата: <input type="date" id="date"></label>
<label>Время: <input type="time" id="time"></label>
<button type="submit">Сохранить</button>
</form>
</div>
@@ -92,7 +94,7 @@
</div>
</div>
</main>
<script src="https://cdn.sheetjs.com/xlsx-0.20.2/package/dist/xlsx.full.min.js"></script>
<!--<script src="https://cdn.sheetjs.com/xlsx-0.20.2/package/dist/xlsx.full.min.js"></script>-->
<script src="admin.js"></script>
</body>
</html>