This commit is contained in:
Andrew 2022-05-16 01:28:21 +07:00
parent 1d087064dd
commit ee0715c3b2
19 changed files with 1525 additions and 0 deletions

View file

@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
{% if table %}
<b>{{user.login}}</b>, вы смотрите таблицу <i>{{table}}</i>. <a href="/lookupTables">Отмена</a>
{% else %}
<b>{{user.login}}</b>, вы смотрите таблицы. <a href="/">На главную</a>
{% endif %}
<hr>
{% if table %}
<table border width="100%">
<thead>
<tr>
{% for item in tableData.header %}
<th>
<a href="/lookupTables?table={{table}}&sort=ASC&col={{item.column_name}}">[ASC]</a>
{{item.column_name}}
<a href="/lookupTables?table={{table}}&sort=DESC&col={{item.column_name}}">[DESC]</a>
</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in tableData.data %}
<tr>
{% for col in row %}
<td>{{col}}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<form action="/lookupTables" method="get">
<select name="table">
{% for table in tables %}
<option value="{{table}}">{{table}}</option>
{% endfor %}
</select>
<input type="submit" value="Перейти">
</form>
{% endif %}
</body>
</html>