2023-09-14 17:46:46 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="ru">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2023-09-28 20:50:15 +04:00
|
|
|
<title>Список магазинов 1</title>
|
2023-09-14 17:46:46 +04:00
|
|
|
<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>
|
|
|
|
</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>
|
|
|
|
</body>
|
|
|
|
</html>
|