2023-09-14 17:46:46 +04:00
|
|
|
<!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>
|
2023-09-14 22:10:09 +04:00
|
|
|
<input type=submit value='Вывод диапазона'>
|
2023-09-14 17:46:46 +04:00
|
|
|
</form>
|
2023-09-28 15:14:37 +04:00
|
|
|
<form action='http://127.0.0.1:5000/analysis' method=get>
|
|
|
|
<input type=submit value='Анализ данных'>
|
|
|
|
</form>
|
2023-09-14 17:46:46 +04:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<table>
|
2023-09-23 14:27:08 +04:00
|
|
|
<tr>
|
|
|
|
{{ countNull }}
|
|
|
|
</tr>
|
2023-09-14 17:46:46 +04:00
|
|
|
<tr>
|
|
|
|
{% if firstColumn == 1 %}
|
2023-09-23 14:27:08 +04:00
|
|
|
<th class="head">Площадь магазина, кв. м, {{ listTypes[1] }}</th>
|
2023-09-14 17:46:46 +04:00
|
|
|
{% endif %}
|
|
|
|
{% if firstColumn <= 2 and secondColumn >= 2 %}
|
2023-09-23 14:27:08 +04:00
|
|
|
<th class="head">Кол-во продукции, шт, {{ listTypes[2] }}</th>
|
2023-09-14 17:46:46 +04:00
|
|
|
{% endif %}
|
|
|
|
{% if firstColumn <= 3 and secondColumn >= 3 %}
|
2023-09-23 14:27:08 +04:00
|
|
|
<th class="head">Кол-во посетителей в день, чел., {{ listTypes[3] }}</th>
|
2023-09-14 17:46:46 +04:00
|
|
|
{% endif %}
|
|
|
|
{% if secondColumn == 4 %}
|
2023-09-23 14:27:08 +04:00
|
|
|
<th class="head">Кол-во проданных товаров, шт., {{ listTypes[4] }}</th>
|
2023-09-14 17:46:46 +04:00
|
|
|
{% endif %}
|
|
|
|
</tr>
|
2023-09-23 14:27:08 +04:00
|
|
|
{% for i in range(secondRow - firstRow + 1) %}
|
2023-09-14 17:46:46 +04:00
|
|
|
<tr>
|
2023-09-23 14:27:08 +04:00
|
|
|
{% for elem in context %}
|
|
|
|
<td> {{ elem[i] }} </td>
|
|
|
|
{% endfor %}
|
2023-09-14 17:46:46 +04:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
2023-10-12 12:26:41 +04:00
|
|
|
<div>
|
|
|
|
{% for image_name in image_names %}
|
|
|
|
<img src="{{ url_for('static', filename=image_name) }}" alt="{{ image_name }}">
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2023-09-28 20:48:51 +04:00
|
|
|
<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>
|
2023-09-14 17:46:46 +04:00
|
|
|
</body>
|
|
|
|
</html>
|