initial commit

This commit is contained in:
Иван
2020-09-19 09:27:02 +03:00
commit a4acfadb65
44 changed files with 2783 additions and 0 deletions

21
templates/addsql.html Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form method="post" action="{{ url_for('addsql') }}">
{{ form.hidden_tag() }}
{{ form.fioField.label.text }}
{{ form.fioField }}
{{ form.dolgnostField.label.text }}
{{ form.dolgnostField }}
{{ form.stepenField.label.text }}
{{ form.stepenField }}
{{ form.photoField }}
{{ form.submit }}
</form>
</body>
</html>

10
templates/admin.html Normal file
View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>

18
templates/adminLogin.html Normal file
View File

@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AdminLogin</title>
</head>
<body>
<h1>Назови имя, друг и пройдешь</h1>
<form action="{{ url_for('adminLogin') }}" method="post">
{{ form.username }}
{{ form.password }}
{{ form.submit }}
{{ form.csrf_token }}
</form>
</body>
</html>

93
templates/egg.html Normal file
View File

@@ -0,0 +1,93 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<html lang="ru">
<head>
<title>Терминал АСУ</title>
<link rel="stylesheet" href="css/bootstrap-grid.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<meta name="viewport" content="width=device-width initial-scale=1">
<link rel="stylesheet" href="styles/egg.css">
</head>
<body style="background-image: url('images/fon_egg.jpg');">
<a href="main.html"><img class="logo" src="images/logo_egg.png"></a>
<nav class="navbar navbar-expand-sm navbar-light justify-content-center">
<h1 class="col-10 mt-3 text-center heading" style="float:center"> <b>Информационная система кафедры АСУ</b></h1>
<!-- <a class="navbar-brand" href=""><img class="col-12" style="float:right" src="img/madi2500.png"></a> -->
</nav>
<div class="container mt-3" id="buttons">
<div class="row justify-content-between">
<div class="col-5 pt-3 pb-3 mb-2 text-center group rounded border border-danger">
<a class="btn " href="rasp_group.html">
<p class="group_text pt-2"><b>Расписание по группам</b></p>
<img class="group_img align-middle" src="images/group_img.png" alt="">
</a>
</div>
<div class="col-2 text-center "> <p class="data_text_up ">Четверг</p></div>
<div class="col-5 pt-3 pb-3 mb-2 text-center ekz rounded border border-danger">
<a class="btn " href="rasp_ekz.html">
<p class="ekz_text pt-2"><b>Расписание экзаменов</b></p>
<img class="ekz_img align-middle" src="images/ekz_img.png" alt="">
</a>
</div>
<div class="w-100"></div>
<div class="col-12 text-center ">
<div class="row">
<div class="col-5"></div>
<div class="col-2"> <p class="data_text">10:00<br>12 июля</p> </div>
<div class="col-5"></div>
</div>
</div>
<div class="w-100"></div>
<div class="col-5 mt-1 text-center prep rounded border border-danger">
<a class="btn "href="rasp_prep.html">
<p class="prep_text pt-2"><b>Расписание преподавателей<br>кафедры АСУ</b></p>
<img class="prep_img align-middle" src="images/prep_img.png" alt="">
</a>
</div>
<div class="col-2 text-center "> <p class="data_text_down ">Знаменатель</p></div>
<div class="col-5 mt-1 text-center prep rounded border border-danger">
<a class="btn" href="rasp_dop.html">
<p class="dop_text pt-2"><b>Расписание дополнительных занятий<br>кафедры АСУ</b></p>
<img class="dop_img align-middle" src="images/dop_img.png" alt="">
</a>
</div>
</div>
</div>
<!-- Footer -->
<!-- Footer -->
</body>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</html>

14
templates/form.html Normal file
View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Form</title>
</head>
<body>
<form method="post" action="{{ url_for('frm') }}">
{{ form.group }}
{{ form.day }}
<input type="submit">
</form>
</body>
</html>

91
templates/index.html Normal file
View File

@@ -0,0 +1,91 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<html lang="ru">
<head>
<title>Терминал АСУ</title>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap-grid.min.css')}}">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css')}}">
<!---<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> -->
<meta name="viewport" content="width=device-width initial-scale=1">
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css')}}">
</head>
<body style="background-image: url({{ url_for('static', filename='img/fon.png') }})">
<nav class="navbar navbar-expand-sm pb-3 navbar-light justify-content-center">
<div class="row">
<div class="col-12 text-center">
<h1 class="zagolovok" style="float:center"> Информационная система кафедры АСУ</h1>
</div>
</div>
</nav>
<div class="container mt-3" id="buttons">
<div class="row justify-content-between">
<div class="col-5 pt-3 pb-3 mb-2 text-center group rounded">
<a class="btn " href="rasp_group.html">
<p class="group_text pt-2" onclick="proverka()">Расписание по группам</p>
<img class="group_img align-middle" src="{{url_for('static', filename='img/rasp_group.png')}}">
</a>
</div>
<div class="col-2 text-center ">
<p class="data_text_up ">{{day_week}}</p>
</div>
<div class="col-5 pt-3 pb-3 mb-2 text-center ekz rounded">
<a class="btn " href="rasp_ekz.html">
<p class="ekz_text pt-2">Расписание экзаменов</p>
<img class="group_img align-middle" src="{{url_for('static', filename='img/rasp_ekz.png')}}">
</a>
</div>
<div class="w-100"></div>
<div class="col-12 text-center ">
<div class="row">
<div class="col-5"></div>
<div class="col-2">
<p class="data_text">{{days}}<br></p>
</div>
<div class="col-5"></div>
<div class=flash>{{ message }}</div>
</div>
</div>
<div class="w-100"></div>
<div class="col-5 mt-1 text-center prep rounded">
<a class="btn " href="rasp_prep.html">
<p class="prep_text pt-2">Расписание преподавателей<br>кафедры АСУ</p>
<img class="prep_img align-middle" src="{{url_for('static', filename='img/rasp_prep.png')}}">
</a>
</div>
<div class="col-2 text-center ">
<p class="data_text_down ">{{week}}</p>
</div>
<div class="col-5 mt-1 text-center prep rounded">
<a class="btn" href="rasp_dop.html">
<p class="dop_text pt-2">Расписание дополнительных занятий<br>кафедры АСУ</p>
<img class="dop_img align-middle" src="{{url_for('static', filename='img/rasp_dop.png')}}">
</a>
</div>
</div>
</div>
<!-- Footer -->
<!-- Footer -->
</body>
</div>
</html>

93
templates/main.html Normal file
View File

@@ -0,0 +1,93 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<html lang="ru">
<head>
<title>Терминал АСУ</title>
<link rel="stylesheet" href="css/bootstrap-grid.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<meta name="viewport" content="width=device-width initial-scale=1">
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css')}}">
</head>
<body style="background-image: url('images/bg.png');">
<a href="egg.html"><img class="logo" src="images/logo.png"></a>
<nav class="navbar navbar-expand-sm navbar-light justify-content-center">
<h1 class="col-10 mt-3 text-center heading" style="float:center"> Информационная система кафедры АСУ</h1>
<!-- <a class="navbar-brand" href=""><img class="col-12" style="float:right" src="img/madi2500.png"></a> -->
</nav>
<div class="container mt-3" id="buttons">
<div class="row justify-content-between">
<div class="col-5 pt-3 pb-3 mb-2 text-center group rounded">
<a class="btn " href="href='{{ url_for( 'rasp_group.html' ) }}'">
<p class="group_text pt-2">Расписание по группам</p>
<img class="group_img align-middle" src="images/group_img.png" alt="">
</a>
</div>
<div class="col-2 text-center "> <p class="data_text_up ">Четверг</p></div>
<div class="col-5 pt-3 pb-3 mb-2 text-center ekz rounded">
<a class="btn " href="rasp_ekz.html">
<p class="ekz_text pt-2">Расписание экзаменов</p>
<img class="ekz_img align-middle" src="images/ekz_img.png" alt="">
</a>
</div>
<div class="w-100"></div>
<div class="col-12 text-center ">
<div class="row">
<div class="col-5"></div>
<div class="col-2"> <p class="data_text">10:00<br>12 июля</p> </div>
<div class="col-5"></div>
</div>
</div>
<div class="w-100"></div>
<div class="col-5 mt-1 text-center prep rounded">
<a class="btn "href="rasp_prep.html">
<p class="prep_text pt-2">Расписание преподавателей<br>кафедры АСУ</p>
<img class="prep_img align-middle" src="images/prep_img.png" alt="">
</a>
</div>
<div class="col-2 text-center "> <p class="data_text_down ">Знаменатель</p></div>
<div class="col-5 mt-1 text-center prep rounded">
<a class="btn" href="rasp_dop.html">
<p class="dop_text pt-2">Расписание дополнительных занятий<br>кафедры АСУ</p>
<img class="dop_img align-middle" src="images/dop_img.png" alt="">
</a>
</div>
</div>
</div>
<!-- Footer -->
<!-- Footer -->
</body>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</html>

191
templates/rasp_dop.html Normal file
View File

@@ -0,0 +1,191 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<html lang="ru">
<head>
<title>Терминал АСУ</title>
<link rel="stylesheet" href="css/bootstrap-grid.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<meta name="viewport" content="width=device-width">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/rasp_dop.css')}}">
</head>
<body>
<a href="#" class="" ><img class="logo align-middle" src="{{url_for('static', filename='img/logo.png')}}"></a>
<a href="index.html" class="btn_back"> Назад </a>
<nav class="navbar navbar-expand-sm navbar-light justify-content-center">
<div class="row">
<div class="col-12 text-center">
<h1 class="" style="float:center"> Расписание дополнительных занятий</h1>
</nav>
<div class="container" id=dropdownMenu>
<div class="row justify-content-around ">
<div class="form-group col-lg-3 text-center">
<label for="exampleFormControlSelect3 ">День недели</label>
<select class="custom-select form-control-lg border-0 text-center" id="exampleFormControlSelect1">
<option>Не выбрано</option>
<option>Понедельник</option>
<option>Вторник</option>
<option>Среда</option>
<option>Четверг</option>
<option>Пятница</option>
<option>Суббота</option>
</select>
</div>
<!-- <div class="form-group col-lg-3 text-center">
<label for="exampleFormControlSelect4">Тип недели</label>
<select class="custom-select form-control-lg border-0 text-center" id="exampleFormControlSelect1">
<option>Не выбрано</option>
<option>Числитель</option>
<option>Знаменатель</option>
</select>
</div> -->
<div class="form-group col-4 text-center">
<label for="exampleFormControlSelect1">Преподаватель</label>
<select class="custom-select form-control-lg border-top text-center" id="exampleFormControlSelect1">
<option>Не выбрано</option>
<!-- <option></option> -->
<option>Сальный А</option>
<!-- <option>3</option>
<option>4</option>
<option>5</option> -->
</select>
</div>
</div>
</div>
<hr >
<div class="container " id=table>
<table class="table table-striped table-bordered ">
<thead >
<tr>
<th scope="col"></th>
<th scope="col">Время занятий</th>
<th scope="col">Группа</th>
<th scope="col">Наименование дисциплины</th>
<th scope="col">Вид занятий</th>
<th scope="col">Аудитория</th>
<th scope="col">Преподаватель</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td class="col-auto">10:00 - 11:30</td>
<td class="col-auto">2бАСУ1</td>
<td class="col-auto">Основы компьютерной и инженерной графики </td>
<td class="col-auto">Консультация</td>
<td class="col-auto">617л </td>
<td class="col-auto">Сальный А.Г.</td>
</tr>
<tr>
<th scope="row">2</th>
<td class="col-auto">11:30 - 13:00</td>
<td class="col-auto">2бАСУ2</td>
<td class="col-auto">Основы компьютерной и инженерной графики </td>
<td class="col-auto">Дополнительный экзамен</td>
<td class="col-auto">620л </td>
<td class="col-auto">Сальный А.Г.</td>
</tr>
<tr>
<th scope="row">3</th>
<td class="col-auto">14:00 - 14:30</td>
<td class="col-auto">2МС1</td>
<td class="col-auto">Информатика </td>
<td class="col-auto">Консультация</td>
<td class="col-auto">617л </td>
<td class="col-auto">Сальный А.Г.</td>
</tr>
<tr>
<th scope="row">4</th>
<td class="col-auto">14:30 - 16:00</td>
<td class="col-auto">2МС1</td>
<td class="col-auto">Информатика</td>
<td class="col-auto">Дополнительный экзамен</td>
<td class="col-auto">620л </td>
<td class="col-auto">Сальный А.Г.</td>
</tr>
</tbody>
</table>
<hr>
<div class="container data text-center" id="fotdata">
<div class="row justify-content-around">
<div class="data col-3">
<h5 class="justify-content-center ">{{days}}</h5>
</div>
<div class="data col-3 ">
<h5 class="justify-content-center ">{{day_week}}</h5>
</div>
<div class="data col-3">
<h5 class="justify-content-center ">Числитель</h5>
</div>
<div class="data col-3">
<h5 class="justify-content-center " id="group__time">10:00</h5>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog border-0" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="container">
<div class="row">
<div class="col modul-foto">
<img src="images/Alex.jpg" class="border border-dark">
</div>
<div class="col text-center">
Сальный Александр Геннадьевич, Старший преподаватель
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary " data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
<footer class="page-footer justify-content-center mx-auto ">
</footer>
<!-- Footer -->
</body>
</div>
</html>

187
templates/rasp_ekz.html Normal file
View File

@@ -0,0 +1,187 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<html lang="ru">
<head>
<title>Терминал АСУ</title>
<link rel="stylesheet" href="css/bootstrap-grid.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<meta name="viewport" content="width=device-width">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/rasp_ekz.css')}}">
</head>
<body>
<a href="#" class="" ><img class="logo align-middle" src="{{url_for('static', filename='img/logo.png')}}"></a>
<a href="index.html" class="btn_back"> Назад </a>
<nav class="navbar navbar-expand-sm navbar-light justify-content-center">
<div class="row">
<div class="col-12 text-center">
<h1 class="" style="float:center"> Расписание экзаменов</h1>
</nav>
<div class="container">
<div class="row">
<div class="col text-center pt-3">
<h1 >Актуальная информация появится позже</h1>
</div>
</div>
</div>
<!--
<div class="container" id=dropdownMenu>
<div class="row justify-content-around ">
<div class="form-group col-4 text-center">
<label for="exampleFormControlSelect1">Курс</label>
<select class="custom-select form-control-lg border-top text-center" id="exampleFormControlSelect1">
<option>Не выбрано</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
<div class="form-group col-lg-4 text-center">
<label for="exampleFormControlSelect2">Группа</label>
<select class="custom-select form-control-lg border-0 text-center" id="exampleFormControlSelect1">
<option>Не выбрано</option>
<option>4ЗбАСУс</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
</div>
</div> -->
<!-- <hr >
<div class="container " id=table>
<table class="table table-striped table-bordered ">
<thead >
<tr>
<th scope="col">№</th>
<th scope="col">Наименование дисциплины</th>
<th scope="col">Дата экзамена</th>
<th scope="col">Время начала экзамена</th>
<th scope="col">Аудитория</th>
<th scope="col">Преподаватель</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td class="col-auto">Основы компьютерной и демонтстрацинной графики</td>
<td class="col-auto">10.07.20</td>
<td class="col-auto">10:00</td>
<td class="col-auto">609л</td>
<td class="col-auto"><a data-toggle="modal" data-target="#exampleModal" href="#">Сальный А.Г.</a></td>
</tr>
<tr>
<th scope="row">2</th>
<td class="col-auto">Инженерная и компьютерная графика
</td>
<td class="col-auto">10.07.20</td>
<td class="col-auto">10:00</td>
<td class="col-auto">609л</td>
<td class="col-auto"><a data-toggle="modal" data-target="#exampleModal" href="#">Сальный А.Г.</a></td>
</tr>
<tr>
<th scope="row">3</th>
<td class="col-auto">Визуальное программирование</td>
<td class="col-auto">10.07.20</td>
<td class="col-auto">10:00</td>
<td class="col-auto">609л</td>
<td class="col-auto"><a data-toggle="modal" data-target="#exampleModal" href="#">Сальный А.Г.</a></td>
</tr>
<tr>
<th scope="row">4</th>
<td class="col-auto">Информатика</td>
<td class="col-auto">10.07.20</td>
<td class="col-auto">10:00</td>
<td class="col-auto">609л</td>
<td class="col-auto"><a data-toggle="modal" data-target="#exampleModal" href="#">Сальный А.Г.</a></td>
</tr>
</tbody>
</table>
<hr>
<div class="container-fluid data text-center" id="fotdata">
<div class="row justify-content-around">
<div class="data col-3">
<h5 class="justify-content-center ">10 июля 2020</h5>
</div>
<div class="data col-3 ">
<h5 class="justify-content-center ">Четверг</h5>
</div>
<div class="data col-3">
<h5 class="justify-content-center ">Числитель</h5>
</div>
<div class="data col-3">
<h5 class="justify-content-center ">10:00</h5>
</div>
</div>
</div>
</div>
</div>
-->
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog border-0" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="container">
<div class="row">
<div class="col modul-foto">
<img src="images/Alex.jpg" class="border border-dark">
</div>
<div class="col text-center">
Сальный Александр Геннадьевич, Старший преподаватель
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary " data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
<footer class="page-footer justify-content-center mx-auto ">
</footer>
<!-- Footer -->
</body>
</div>
</html>

176
templates/rasp_group.html Normal file
View File

@@ -0,0 +1,176 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<html lang="ru">
<head>
<title>Терминал АСУ</title>
<link rel="stylesheet" href="css/bootstrap-grid.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<meta name="viewport" content="width=device-width">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='/css/rasp_group.css')}}">
<script src="{{url_for('static', filename='js/js.js')}}"> </script>
</head>
<body style="background-image: url_for('static', filename='img/fon.png');">
<a href="#" class=""><img class="logo align-middle" src="{{url_for('static', filename='img/logo.png')}}"></a>
<a href="index.html" class="btn_back"> Назад </a>
<nav class="navbar navbar-expand-sm pb-3 navbar-light justify-content-center">
<div class="row">
<div class="col-12 text-center">
<h1 class="" style="float:center"> Расписание занятий по группам</h1>
</div>
</div>
</nav>
<!-- <div class="container bg" id="dropdownMenu">
<div class="row justify-content-around "> -->
<div class="container justify-content-around pt-3 form-group c_form pt-1 text-center">
<form method="post" class="form-control-lg border-0 text-center" action="{{ url_for('rasp_group') }}">
<div class="row justify-content-around text-center ">
<div class="form-group div-select col-lg-4 pt-2 text-center">Группа<p class="pt-1">{{ form.group }}</p>
</div>
<div class="form-group div-select col-lg-4 pt-2 text-center">День недели<p class="pt-1">{{ form.day }}</p>
</div>
<div class="form-group div-select col-lg-4 pt-2 text-center">
<p class="pt-3"></p>{{form.submit }}</p>
</div>
</div>
</form>
</div>
<div class="container" id=table>
<table class="table table-striped table-bordered ">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Время занятий</th>
<th scope="col">Наименование дисциплины</th>
<th scope="col">Вид занятий</th>
<th scope="col">Периодичность занятий</th>
<th scope="col">Аудитория</th>
<th scope="col">Преподаватель</th>
</tr>
</thead>
<tbody>
{% for i in range(countStr) %}
<tr>
<th scope="row">{{i + 1}}</th>
<td class="col-auto">{{table[6 * i]}}</td>
<td class="col-auto">{{table[6 * i + 1]}}</td>
<td class="col-auto">{{table[6 * i + 2]}}</td>
<td class="col-auto">{{table[6 * i + 3]}}</td>
<td class="col-auto">{{table[6 * i + 4]}}</td>
<td class="col-auto">{{table[6 * i + 5]}}</td>
</tr>
<!-- <tr>
<th scope="row">1</th>
<td class="col-auto">{{table[i][0]}}</td>
<td class="col-auto">{{table[i][1]}}</td>
<td class="col-auto">{{table[i][2]}}</td>
<td class="col-auto">{{table[i][3]}}</td>
<td class="col-auto">{{table[i][4]}}</td>
<td class="col-auto"><a data-toggle="modal" data-target="#exampleModal" href="#">{{table[5]}}</a></td>
</tr> -->
{% endfor %}
</tbody>
</table>
<hr>
<div class="container data text-center" id="fotdata">
<div class="row justify-content-around">
<div class="data col-3">
<h5 class="justify-content-center ">{{days}}</h5>
</div>
<div class="data col-3 ">
<h5 class="justify-content-center ">{{day_week}}</h5>
</div>
<div class="data col-3">
<h5 class="justify-content-center ">Числитель</h5>
</div>
<div class="data col-3">
<h5 class="justify-content-center " id="group__time">10:00</h5>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog border-0" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="container">
<div class="row">
<div class="col modul-foto">
<img src="images/Alex.jpg" class="border border-dark">
</div>
<div class="col text-center">
Сальный Александр Геннадьевич, Старший преподаватель
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary " data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
<footer class="page-footer justify-content-center mx-auto ">
</footer>
<!-- Footer -->
</body>
</div>
</html>

158
templates/rasp_prep.html Normal file
View File

@@ -0,0 +1,158 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<html lang="ru">
<head>
<title>Терминал АСУ</title>
<link rel="stylesheet" href="css/bootstrap-grid.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<meta name="viewport" content="width=device-width">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='/css/rasp_group.css')}}">
</head>
<body>
<a href="#" class=""><img class="logo align-middle" src="{{url_for('static', filename='img/logo.png')}}"></a>
<a href="index.html" class="btn_back"> Назад </a>
<nav class="navbar navbar-expand-sm navbar-light justify-content-center">
<div class="row">
<div class="col-12 text-center">
<h1 class="" style="float:center"> Расписание по преподавателям</h1>
</nav>
<div class="container justify-content-around pt-3 form-group c_form pt-1 text-center">
<form method="post" class="form-control-lg border-0 text-center" action="{{ url_for('rasp_prep') }}">
<div class="row justify-content-around text-center ">
<div class="form-group div-select col-lg-4 pt-2 text-center">Преподаватель<p class="pt-1">{{ form.stepenField }}
</p>
</div>
<div class="form-group div-select col-lg-4 pt-2 text-center">День недели<p class="pt-1">{{ form.day }}</p>
</div>
<div class="form-group div-select col-lg-4 pt-2 text-center">
<p class="pt-3"></p>{{form.submit1 }}</p>
</div>
</div>
</form>
</div>
<div class="container" id=table>
<table class="table table-striped table-bordered ">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Время занятий</th>
<th scope="col">Занятия на неделе</th>
<th scope="col">Аудитория</th>
<th scope="col">Группа</th>
<th scope="col">Дисциплина</th>
<th scope="col">Тип занятий</th>
</tr>
</thead>
<tbody>
{% for i in range(countStr) %}
<tr>
<th scope="row">{{i + 1}}</th>
<td class="col-auto">{{table[6 * i]}}</td>
<td class="col-auto">{{table[6 * i + 1]}}</td>
<td class="col-auto">{{table[6 * i + 2]}}</td>
<td class="col-auto">{{table[6 * i + 3]}}</td>
<td class="col-auto">{{table[6 * i + 4]}}</td>
<td class="col-auto">{{table[6 * i + 5]}}</td>
</tr>
{% endfor %}
</tbody>
</table>
<hr>
<div class="container-fluid data text-center" id="fotdata">
<div class="row justify-content-around">
<div class="data col-3">
<h5 class="justify-content-center ">{{days}}</h5>
</div>
<div class="data col-3 ">
<h5 class="justify-content-center ">{{day_week}}</h5>
</div>
<div class="data col-3">
<h5 class="justify-content-center ">Числитель</h5>
</div>
<div class="data col-3">
<h5 class="justify-content-center ">10:00</h5>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog border-0" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="container">
<div class="row">
<div class="col modul-foto">
<img src="images/Alex.jpg" class="border border-dark">
</div>
<div class="col text-center">
Сальный Александр Геннадьевич, Старший преподаватель
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary " data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
<footer class="page-footer justify-content-center mx-auto ">
</footer>
<!-- Footer -->
</body>
</div>
</html>