W12 done
This commit is contained in:
parent
1d087064dd
commit
ee0715c3b2
19 changed files with 1525 additions and 0 deletions
50
w12/views/lookup-tables.twig
Normal file
50
w12/views/lookup-tables.twig
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue