Изменил страницу "Кафедра", добавлена фильтрация и добавление блоков
This commit is contained in:
@@ -1,235 +1,236 @@
|
||||
.wrap{
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 6px 20px rgba(0,0,0,.06);
|
||||
}
|
||||
|
||||
.header{
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
details.table-item{
|
||||
border-top: 1px solid var(--bg-card-border);
|
||||
}
|
||||
details.table-item:first-of-type{ border-top:none; }
|
||||
|
||||
summary{
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
padding: 12px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
summary::-webkit-details-marker{ display:none; }
|
||||
|
||||
.chev{
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: 0 0 auto;
|
||||
|
||||
color: var(--text-secondary);
|
||||
background: var(--bg-input);
|
||||
|
||||
transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
|
||||
}
|
||||
|
||||
.chev-icon{
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
summary:hover .chev{
|
||||
background: var(--bg-hover);
|
||||
border-color: color-mix(in srgb, var(--accent) 22%, var(--bg-card-border));
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
details[open] .chev{
|
||||
transform: rotate(180deg);
|
||||
color: var(--accent);
|
||||
border-color: color-mix(in srgb, var(--accent) 35%, var(--bg-card-border));
|
||||
background: color-mix(in srgb, var(--accent) 10%, var(--bg-input));
|
||||
}
|
||||
|
||||
.meta{ color: var(--text-secondary); font-size: 12px; }
|
||||
|
||||
.content{ padding: 0 16px 16px 16px; }
|
||||
|
||||
.wrap table{
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-card);
|
||||
}
|
||||
|
||||
.wrap thead th{
|
||||
text-align: left;
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
background: var(--bg-input);
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.wrap tbody td{
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
font-size: 14px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.wrap tbody tr:hover{ background: var(--bg-hover); }
|
||||
|
||||
.title-multiline{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.title-multiline .title-main{
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.title-multiline .title-sub{
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.title-multiline b{
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* summary = 3 колонки: [chev] [title] [meta] */
|
||||
details.table-item > summary{
|
||||
display: grid;
|
||||
grid-template-columns: 28px 1fr auto;
|
||||
gap: 12px;
|
||||
align-items: start; /* важно: всё прижимаем к верху */
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
/* чтобы текст нормально переносился и не растягивал мету */
|
||||
details.table-item > summary .title{
|
||||
min-width: 0; /* важно для grid, иначе может распирать */
|
||||
}
|
||||
|
||||
/* "2 записи" всегда справа и сверху, аккуратно */
|
||||
details.table-item > summary .meta{
|
||||
justify-self: end;
|
||||
align-self: start;
|
||||
white-space: nowrap;
|
||||
padding-top: 4px; /* чуть опустить относительно первой строки */
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* стрелка тоже сверху */
|
||||
details.table-item > summary .chev{
|
||||
align-self: start;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.records-search{
|
||||
width: min(360px, 60vw);
|
||||
padding: 0.45rem 0.7rem;
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-primary);
|
||||
font-size: 0.9rem;
|
||||
outline: none;
|
||||
transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
|
||||
}
|
||||
|
||||
.records-search::placeholder{ color: var(--text-placeholder); }
|
||||
|
||||
.records-search:focus{
|
||||
background: var(--bg-input-focus);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-glow);
|
||||
}
|
||||
/* Таблица внутри раскрывающегося блока */
|
||||
details.table-item .content table{
|
||||
width: 100%;
|
||||
border-collapse: separate; /* нужно для красивых линий */
|
||||
border-spacing: 0;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-card);
|
||||
}
|
||||
|
||||
/* Шапка */
|
||||
details.table-item .content thead th{
|
||||
position: sticky; /* опционально: шапка прилипает при скролле */
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
|
||||
background: var(--bg-input);
|
||||
color: var(--text-secondary);
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
}
|
||||
|
||||
/* Ячейки: одинаковые отступы */
|
||||
details.table-item .content th,
|
||||
details.table-item .content td{
|
||||
padding: 0.75rem 0.85rem;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Вертикальные разделители между колонками */
|
||||
details.table-item .content th:not(:last-child),
|
||||
details.table-item .content td:not(:last-child){
|
||||
border-right: 1px solid var(--bg-card-border);
|
||||
}
|
||||
|
||||
/* Горизонтальные разделители между строками */
|
||||
details.table-item .content tbody td{
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* У последней строки нет нижней линии */
|
||||
details.table-item .content tbody tr:last-child td{
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* "Зебра" для читабельности */
|
||||
details.table-item .content tbody tr:nth-child(even){
|
||||
background: color-mix(in srgb, var(--bg-card) 70%, var(--bg-hover));
|
||||
}
|
||||
|
||||
/* Ховер по строке */
|
||||
details.table-item .content tbody tr:hover{
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
/* (Опционально) Чтобы длинный текст не ломал ширину */
|
||||
details.table-item .content td{
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* (Опционально) если таблица широкая — пусть скроллится горизонтально */
|
||||
details.table-item .content{
|
||||
overflow-x: auto;
|
||||
}
|
||||
.wrap{
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 6px 20px rgba(0,0,0,.06);
|
||||
}
|
||||
|
||||
.header{
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
details.table-item{
|
||||
border-top: 1px solid var(--bg-card-border);
|
||||
}
|
||||
details.table-item:first-of-type{ border-top:none; }
|
||||
|
||||
summary{
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
padding: 12px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
summary::-webkit-details-marker{ display:none; }
|
||||
|
||||
.chev{
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: 0 0 auto;
|
||||
|
||||
color: var(--text-secondary);
|
||||
background: var(--bg-input);
|
||||
|
||||
transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
|
||||
}
|
||||
|
||||
.chev-icon{
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
summary:hover .chev{
|
||||
background: var(--bg-hover);
|
||||
border-color: color-mix(in srgb, var(--accent) 22%, var(--bg-card-border));
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
details[open] .chev{
|
||||
transform: rotate(180deg);
|
||||
color: var(--accent);
|
||||
border-color: color-mix(in srgb, var(--accent) 35%, var(--bg-card-border));
|
||||
background: color-mix(in srgb, var(--accent) 10%, var(--bg-input));
|
||||
}
|
||||
|
||||
.meta{ color: var(--text-secondary); font-size: 12px; }
|
||||
|
||||
.content{ padding: 0 16px 16px 16px; }
|
||||
|
||||
.wrap table{
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-card);
|
||||
}
|
||||
|
||||
.wrap thead th{
|
||||
text-align: left;
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
background: var(--bg-input);
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.wrap tbody td{
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
font-size: 14px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.wrap tbody tr:hover{ background: var(--bg-hover); }
|
||||
|
||||
.title-multiline{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.title-multiline .title-main{
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.title-multiline .title-sub{
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.title-multiline b{
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* summary = 3 колонки: [chev] [title] [meta] */
|
||||
details.table-item > summary{
|
||||
display: grid;
|
||||
grid-template-columns: 28px 1fr auto;
|
||||
gap: 12px;
|
||||
align-items: start; /* важно: всё прижимаем к верху */
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
/* чтобы текст нормально переносился и не растягивал мету */
|
||||
details.table-item > summary .title{
|
||||
min-width: 0; /* важно для grid, иначе может распирать */
|
||||
}
|
||||
|
||||
/* "2 записи" всегда справа и сверху, аккуратно */
|
||||
details.table-item > summary .meta{
|
||||
justify-self: end;
|
||||
align-self: start;
|
||||
white-space: nowrap;
|
||||
padding-top: 4px; /* чуть опустить относительно первой строки */
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* стрелка тоже сверху */
|
||||
details.table-item > summary .chev{
|
||||
align-self: start;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.records-search{
|
||||
width: min(360px, 60vw);
|
||||
padding: 0.45rem 0.7rem;
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-primary);
|
||||
font-size: 0.9rem;
|
||||
outline: none;
|
||||
transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
|
||||
}
|
||||
|
||||
.records-search::placeholder{ color: var(--text-placeholder); }
|
||||
|
||||
.records-search:focus{
|
||||
background: var(--bg-input-focus);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-glow);
|
||||
}
|
||||
/* Таблица внутри раскрывающегося блока */
|
||||
details.table-item .content table{
|
||||
width: 100%;
|
||||
border-collapse: separate; /* нужно для красивых линий */
|
||||
border-spacing: 0;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-card);
|
||||
}
|
||||
|
||||
/* Шапка */
|
||||
details.table-item .content thead th{
|
||||
position: sticky; /* опционально: шапка прилипает при скролле */
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
|
||||
background: var(--bg-input);
|
||||
color: var(--text-secondary);
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
}
|
||||
|
||||
/* Ячейки: одинаковые отступы */
|
||||
details.table-item .content th,
|
||||
details.table-item .content td{
|
||||
padding: 0.75rem 0.85rem;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Вертикальные разделители между колонками */
|
||||
details.table-item .content th:not(:last-child),
|
||||
details.table-item .content td:not(:last-child){
|
||||
border-right: 1px solid var(--bg-card-border);
|
||||
}
|
||||
|
||||
/* Горизонтальные разделители между строками */
|
||||
details.table-item .content tbody td{
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* У последней строки нет нижней линии */
|
||||
details.table-item .content tbody tr:last-child td{
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* "Зебра" для читабельности */
|
||||
details.table-item .content tbody tr:nth-child(even){
|
||||
background: color-mix(in srgb, var(--bg-card) 70%, var(--bg-hover));
|
||||
}
|
||||
|
||||
/* Ховер по строке */
|
||||
details.table-item .content tbody tr:hover{
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
/* (Опционально) Чтобы длинный текст не ломал ширину */
|
||||
details.table-item .content td{
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* (Опционально) если таблица широкая — пусть скроллится горизонтально */
|
||||
details.table-item .content{
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,121 @@
|
||||
import { api } from '../api.js';
|
||||
import { escapeHtml } from '../utils.js';
|
||||
import { escapeHtml, showAlert, hideAlert } from '../utils.js';
|
||||
|
||||
export async function initDepartment() { }
|
||||
export async function initDepartment() {
|
||||
const form = document.getElementById('department-schedule-form');
|
||||
const departmentSelect = document.getElementById('filter-department');
|
||||
const container = document.getElementById('schedule-blocks-container');
|
||||
|
||||
let departments = [];
|
||||
|
||||
// Загрузка кафедр
|
||||
try {
|
||||
departments = await api.get('/api/departments');
|
||||
departmentSelect.innerHTML = '<option value="">Выберите кафедру...</option>' +
|
||||
departments.map(d => `<option value="${d.id}">${escapeHtml(d.departmentName || d.name)}</option>`).join('');
|
||||
} catch (e) {
|
||||
departmentSelect.innerHTML = '<option value="">Ошибка загрузки</option>';
|
||||
}
|
||||
|
||||
form.addEventListener('submit', async (e) => {
|
||||
e.preventDefault();
|
||||
hideAlert('schedule-form-alert');
|
||||
|
||||
const departmentId = departmentSelect.value;
|
||||
const period = document.getElementById('filter-period').value;
|
||||
const semesterType = document.querySelector('input[name="semesterType"]:checked')?.value;
|
||||
|
||||
if (!departmentId || !period || !semesterType) {
|
||||
showAlert('schedule-form-alert', 'Заполните все поля', 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
const deptName = departmentSelect.options[departmentSelect.selectedIndex].text;
|
||||
|
||||
try {
|
||||
const params = new URLSearchParams({
|
||||
departmentId,
|
||||
semesterType,
|
||||
period
|
||||
});
|
||||
|
||||
// Запрос на бэк
|
||||
const data = await api.get(`/api/department/schedule?${params.toString()}`);
|
||||
|
||||
const semesterName = semesterType === 'spring' ? 'весенний' : (semesterType === 'autumn' ? 'осенний' : semesterType);
|
||||
const periodName = period.replace('-', '/'); // Display 2024-2025 as 2024/2025
|
||||
|
||||
renderScheduleBlock(deptName, semesterName, periodName, data);
|
||||
|
||||
form.reset();
|
||||
|
||||
} catch (err) {
|
||||
showAlert('schedule-form-alert', err.message || 'Ошибка загрузки данных', 'error');
|
||||
}
|
||||
});
|
||||
|
||||
function renderScheduleBlock(deptName, semester, period, schedule) {
|
||||
const details = document.createElement('details');
|
||||
details.className = 'table-item';
|
||||
details.open = true; // Сразу открываем новый блок
|
||||
|
||||
details.innerHTML = `
|
||||
<summary>
|
||||
<div class="chev" aria-hidden="true">
|
||||
<svg viewBox="0 0 20 20" class="chev-icon" focusable="false" aria-hidden="true">
|
||||
<path d="M5.5 7.5L10 12l4.5-4.5" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="title title-multiline">
|
||||
<span class="title-main">Данные к составлению расписания</span>
|
||||
<span class="title-sub">Кафедра: <b>${escapeHtml(deptName)}</b></span>
|
||||
<span class="title-sub">Семестр: <b>${escapeHtml(semester)}</b></span>
|
||||
<span class="title-sub">Уч. год: <b>${escapeHtml(period)}</b></span>
|
||||
</div>
|
||||
<div class="meta">${schedule ? schedule.length : 0} записей</div>
|
||||
</summary>
|
||||
|
||||
<div class="content">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Специальность</th>
|
||||
<th>Курс/семестр</th>
|
||||
<th>Группа</th>
|
||||
<th>Дисциплина</th>
|
||||
<th>Вид занятий</th>
|
||||
<th>Часов в неделю</th>
|
||||
<th>Аудитория</th>
|
||||
<th>Фамилия преподавателя</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
${renderRows(schedule)}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
`;
|
||||
|
||||
container.prepend(details);
|
||||
}
|
||||
|
||||
function renderRows(schedule) {
|
||||
if (!schedule || schedule.length === 0) {
|
||||
return '<tr><td colspan="8" class="loading-row">Нет данных</td></tr>';
|
||||
}
|
||||
|
||||
return schedule.map(r => `
|
||||
<tr>
|
||||
<td>${escapeHtml(r.specialty || '-')}</td>
|
||||
<td>${escapeHtml(r.courseSemester || '-')}</td>
|
||||
<td>${escapeHtml(r.groupName || '-')}</td>
|
||||
<td>${escapeHtml(r.subjectName || '-')}</td>
|
||||
<td>${escapeHtml(r.lessonType || '-')}</td>
|
||||
<td>${escapeHtml(r.hours || '-')}</td>
|
||||
<td>${escapeHtml(r.classroom || '-')}</td>
|
||||
<td>${escapeHtml(r.teacherName || '-')}</td>
|
||||
</tr>
|
||||
`).join('');
|
||||
}
|
||||
}
|
||||
@@ -1,193 +1,46 @@
|
||||
<div class="card">
|
||||
<h2>Кафедра</h2>
|
||||
<div class="card create-card">
|
||||
<h2>Запрос расписания кафедры</h2>
|
||||
<form id="department-schedule-form">
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label for="filter-department">Кафедра</label>
|
||||
<select id="filter-department" required>
|
||||
<option value="">Загрузка...</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="filter-row" style="gap:.75rem;">
|
||||
<label for="recordsSearch">Поиск</label>
|
||||
<input
|
||||
id="recordsSearch"
|
||||
class="records-search"
|
||||
type="search"
|
||||
placeholder="Группа, дисциплина, преподаватель…"
|
||||
autocomplete="off"
|
||||
/>
|
||||
<button type="button" class="btn-delete" id="recordsSearchClear">Сброс</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Семестр</label>
|
||||
<div style="display: flex; gap: 0.2rem;">
|
||||
<label class="btn-checkbox">
|
||||
<input type="radio" name="semesterType" value="autumn" id="sem-autumn" required>
|
||||
<span class="checkbox-btn">Осенний</span>
|
||||
</label>
|
||||
<label class="btn-checkbox">
|
||||
<input type="radio" name="semesterType" value="spring" id="sem-spring" required>
|
||||
<span class="checkbox-btn">Весенний</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="filter-period">Учебный год</label>
|
||||
<select id="filter-period" required>
|
||||
<option value="">Выберите...</option>
|
||||
<option value="2022-2023">2022/2023</option>
|
||||
<option value="2023-2024">2023/2024</option>
|
||||
<option value="2024-2025">2024/2025</option>
|
||||
<option value="2025-2026">2025/2026</option>
|
||||
<option value="2026-2027">2026/2027</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn-primary" style="align-self: flex-end;">Запросить</button>
|
||||
</div>
|
||||
<div class="form-alert" id="schedule-form-alert" role="alert"></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="table-wrap">
|
||||
|
||||
<!-- Таблица 1 -->
|
||||
<details class="table-item">
|
||||
<summary>
|
||||
<div class="chev" aria-hidden="true">
|
||||
<svg viewBox="0 0 20 20" class="chev-icon" focusable="false" aria-hidden="true">
|
||||
<path d="M5.5 7.5L10 12l4.5-4.5" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="title title-multiline">
|
||||
<span class="title-main">Данные к составлению расписания</span>
|
||||
<span class="title-sub">Кафедра: <b>Информационная безопасность</b></span>
|
||||
<span class="title-sub">Факультет: <b>ФиПИ</b></span>
|
||||
<span class="title-sub">Семестр: <b>весенний</b></span>
|
||||
<span class="title-sub">Уч. год: <b>2024/2025</b></span>
|
||||
</div>
|
||||
<div class="meta">3 записи</div>
|
||||
</summary>
|
||||
|
||||
<div class="content">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Специальность</th>
|
||||
<th>Курс и семестр</th>
|
||||
<th>Группа</th>
|
||||
<th>Дисциплина</th>
|
||||
<th>Вид занятий</th>
|
||||
<th>Часов в неделю</th>
|
||||
<th>Деление на подгруппы</th>
|
||||
<th>Фамилия преподавателя</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<!-- 1 строка = 1 запись HARDCODE -->
|
||||
<tr>
|
||||
<td>09.02.07</td>
|
||||
<td>2 курс, 4 семестр</td>
|
||||
<td>ИС-21</td>
|
||||
<td>Базы данных</td>
|
||||
<td>Лабораторная</td>
|
||||
<td>2</td>
|
||||
<td>Да</td>
|
||||
<td>Иванов</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>09.02.07</td>
|
||||
<td>2 курс, 4 семестр</td>
|
||||
<td>ИС-22</td>
|
||||
<td>Операционные системы</td>
|
||||
<td>Практика</td>
|
||||
<td>1</td>
|
||||
<td>Нет</td>
|
||||
<td>Смирнов</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>09.02.07</td>
|
||||
<td>1 курс, 2 семестр</td>
|
||||
<td>ИС-12</td>
|
||||
<td>Алгоритмы</td>
|
||||
<td>Лекция</td>
|
||||
<td>2</td>
|
||||
<td>Нет</td>
|
||||
<td>Кузнецов</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<!-- Таблица 2 -->
|
||||
<details class="table-item">
|
||||
<summary>
|
||||
<div class="chev" aria-hidden="true">
|
||||
<svg viewBox="0 0 20 20" class="chev-icon" focusable="false" aria-hidden="true">
|
||||
<path d="M5.5 7.5L10 12l4.5-4.5" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="title">orders</div>
|
||||
<div class="meta">1 запись</div>
|
||||
</summary>
|
||||
|
||||
<div class="content">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Специальность</th>
|
||||
<th>Курс и семестр</th>
|
||||
<th>Группа</th>
|
||||
<th>Дисциплина</th>
|
||||
<th>Вид занятий</th>
|
||||
<th>Часов в неделю</th>
|
||||
<th>Деление на подгруппы</th>
|
||||
<th>Фамилия преподавателя</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>38.02.01</td>
|
||||
<td>1 курс, 1 семестр</td>
|
||||
<td>ЭК-11</td>
|
||||
<td>Экономика</td>
|
||||
<td>Лекция</td>
|
||||
<td>1</td>
|
||||
<td>Нет</td>
|
||||
<td>Петров</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<!-- Таблица 3 -->
|
||||
<details class="table-item">
|
||||
<summary>
|
||||
<div class="chev" aria-hidden="true">
|
||||
<svg viewBox="0 0 20 20" class="chev-icon" focusable="false" aria-hidden="true">
|
||||
<path d="M5.5 7.5L10 12l4.5-4.5" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="title">products</div>
|
||||
<div class="meta">2 записи</div>
|
||||
</summary>
|
||||
|
||||
<div class="content">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Специальность</th>
|
||||
<th>Курс и семестр</th>
|
||||
<th>Группа</th>
|
||||
<th>Дисциплина</th>
|
||||
<th>Вид занятий</th>
|
||||
<th>Часов в неделю</th>
|
||||
<th>Деление на подгруппы</th>
|
||||
<th>Фамилия преподавателя</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>15.02.08</td>
|
||||
<td>3 курс, 6 семестр</td>
|
||||
<td>МС-31</td>
|
||||
<td>Материаловедение</td>
|
||||
<td>Практика</td>
|
||||
<td>3</td>
|
||||
<td>Да</td>
|
||||
<td>Сидоров</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>15.02.08</td>
|
||||
<td>3 курс, 6 семестр</td>
|
||||
<td>МС-32</td>
|
||||
<td>Технология металлов</td>
|
||||
<td>Лабораторная</td>
|
||||
<td>2</td>
|
||||
<td>Да</td>
|
||||
<td>Орлов</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
</div>
|
||||
<div class="table-wrap" id="schedule-blocks-container">
|
||||
<!-- Сгенерированные блоки таблиц будут появляться здесь -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user