53 lines
1.8 KiB
HTML
53 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Список магазинов 1</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>
|
|
</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>
|
|
</body>
|
|
</html> |