- Implemented `stage_parse_schedule.py` to normalize and prepare university schedule data. - Created `stage_process_logs.py` for processing authentication logs and generating session records. - Added necessary classes and methods for log entry parsing, session extraction, and CSV output. - Updated `settings.yaml` with new schedule and processing configurations. - Introduced new templates and styles for report generation, including HTML and CSS files. - Added main entry point `run.py` to execute the attendance processing pipeline. - Included `.gitkeep` files in `output` and `result` directories to maintain structure.
78 lines
1.6 KiB
HTML
78 lines
1.6 KiB
HTML
<!doctype html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{ title }}</title>
|
|
<style>
|
|
{{ css_text | safe }}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="page">
|
|
<header class="header">
|
|
<div class="title">
|
|
<h1>{{ title }}</h1>
|
|
<p>{{ hint }}</p>
|
|
</div>
|
|
<div class="actions">
|
|
<button class="btn primary" onclick="printReport()">Печать / PDF</button>
|
|
</div>
|
|
</header>
|
|
|
|
<section class="section">
|
|
<h2>Шаблон пар</h2>
|
|
{% if report.lesson_windows %}
|
|
<table class="table">
|
|
<thead>
|
|
<tr><th>Пара</th><th>Начало</th><th>Окончание</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in report.lesson_windows %}
|
|
<tr>
|
|
<td>{{ item.lesson }}</td>
|
|
<td>{{ item.start }}</td>
|
|
<td>{{ item.end }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<div class="muted">Нет данных.</div>
|
|
{% endif %}
|
|
</section>
|
|
</div>
|
|
|
|
<script>
|
|
window.__GROUP_REPORT__ = {{ report_json | safe }};
|
|
</script>
|
|
<script>
|
|
{{ js_text | safe }}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
<!doctype html>
|
|
<html lang='ru'>
|
|
<head>
|
|
<meta charset='utf-8'>
|
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
|
<title>{{TITLE}}</title>
|
|
{{STYLE_TAG}}
|
|
</head>
|
|
<body>
|
|
<div class='page'>
|
|
<div class='header'>
|
|
<div class='title'>
|
|
<h1>{{TITLE}}</h1>
|
|
<p>{{HINT}}</p>
|
|
</div>
|
|
<div class='actions'>
|
|
<button class='btn primary' onclick='printReport()'>Печать / PDF</button>
|
|
</div>
|
|
</div>
|
|
{{CONTENT}}
|
|
</div>
|
|
{{SCRIPT_TAG}}
|
|
</body>
|
|
</html>
|