129 lines
4.0 KiB
HTML
129 lines
4.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Список магазинов</title>
|
|
<style>
|
|
.head {
|
|
background: #fc3;
|
|
border: 2px solid black;
|
|
padding: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<form action='http://127.0.0.1:5000/showDiapason' method=get>
|
|
<input type=text size=20 name=firstRow>
|
|
<input type=text size=20 name=secondRow>
|
|
<input type=text size=20 name=firstColumn>
|
|
<input type=text size=20 name=secondColumn>
|
|
<input type=submit value='Вывод диапазона'>
|
|
</form>
|
|
<form action='http://127.0.0.1:5000/analysis' method=get>
|
|
<input type=submit value='Анализ данных'>
|
|
</form>
|
|
<form action="/findURL" method="get">
|
|
<div class="mb-3">
|
|
<button type="submit" class="btn btn-primary mb-3">Запуск фильтра</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div>
|
|
<table>
|
|
<tr>
|
|
{{ countNull }}
|
|
</tr>
|
|
<tr>
|
|
{% if firstColumn == 1 %}
|
|
<th class="head">Площадь магазина, кв. м, {{ listTypes[1] }}</th>
|
|
{% endif %}
|
|
{% if firstColumn <= 2 and secondColumn >= 2 %}
|
|
<th class="head">Кол-во продукции, шт, {{ listTypes[2] }}</th>
|
|
{% endif %}
|
|
{% if firstColumn <= 3 and secondColumn >= 3 %}
|
|
<th class="head">Кол-во посетителей в день, чел., {{ listTypes[3] }}</th>
|
|
{% endif %}
|
|
{% if secondColumn == 4 %}
|
|
<th class="head">Кол-во проданных товаров, шт., {{ listTypes[4] }}</th>
|
|
{% endif %}
|
|
</tr>
|
|
{% for i in range(secondRow - firstRow + 1) %}
|
|
<tr>
|
|
{% for elem in context %}
|
|
<td> {{ elem[i] }} </td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
<div>
|
|
<h3>
|
|
Данные до дополнения:
|
|
</h3>
|
|
{% for image_name in image_names_start %}
|
|
<img src="{{ url_for('static', filename=image_name) }}" alt="{{ image_name }}">
|
|
{% endfor %}
|
|
</div>
|
|
<div>
|
|
<h3>
|
|
Данные после дополнения:
|
|
</h3>
|
|
{% for image_name in image_names_addition %}
|
|
<img src="{{ url_for('static', filename=image_name) }}" alt="{{ image_name }}">
|
|
{% endfor %}
|
|
</div>
|
|
<div>
|
|
<h3>
|
|
По заданию:
|
|
</h3>
|
|
{% for image_name in main_img %}
|
|
<img src="{{ url_for('static', filename=image_name) }}" alt="{{ image_name }}">
|
|
{% endfor %}
|
|
</div>
|
|
<div>
|
|
<h3>
|
|
Результаты первого анализа
|
|
</h3>
|
|
<h1>
|
|
{% for table in tableAnalysOne %}
|
|
<h2>{{ titles[loop.index] }}</h2>
|
|
{{ table|safe }}
|
|
{% endfor %}
|
|
</h1>
|
|
</div>
|
|
<div>
|
|
<h3>
|
|
Результаты второго анализа
|
|
</h3>
|
|
<h1>
|
|
{% for table in tableAnalysTwo %}
|
|
<h2>{{ titles[loop.index] }}</h2>
|
|
{{ table|safe }}
|
|
{% endfor %}
|
|
</h1>
|
|
</div>
|
|
<div>
|
|
<h3>
|
|
Результаты третьего анализа
|
|
</h3>
|
|
<h1>
|
|
{% for table in tableAnalysThree %}
|
|
<h2>{{ titles[loop.index] }}</h2>
|
|
{{ table|safe }}
|
|
{% endfor %}
|
|
</h1>
|
|
</div>
|
|
<div>
|
|
<h3>
|
|
Результаты четвёртого анализа
|
|
</h3>
|
|
<h1>
|
|
{% for table in tableAnalysFour %}
|
|
<h2>{{ titles[loop.index] }}</h2>
|
|
{{ table|safe }}
|
|
{% endfor %}
|
|
</h1>
|
|
</div>
|
|
</body>
|
|
</html> |