You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
849 B
32 lines
849 B
<form action="" method="post">
|
|
<input type="hidden" name="token" value="{{ security_token }}">
|
|
<textarea style="display:block;margin:5px auto;width:90%;max-width:600px" rows="3" name="query">{{ query | e }}</textarea>
|
|
<input style="display:block;margin:5px auto" type="submit" value="Query">
|
|
</form>
|
|
|
|
{% if result == 'empty' %}
|
|
<p style="text-align:center">Query successful (no result).</p>
|
|
{% elseif result %}
|
|
<table class="modlog">
|
|
<tr>
|
|
{% for key in keys %}
|
|
<th>{{ key | e }}</th>
|
|
{% endfor %}
|
|
</tr>
|
|
{% for row in result %}
|
|
<tr>
|
|
{% for col in row %}
|
|
<td>
|
|
{% if col != null %}
|
|
{{ col | e }}
|
|
{% else %}
|
|
<em>NULL</em>
|
|
{% endif %}
|
|
</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% elseif error %}
|
|
<p style="text-align:center;color:#d00">{{ error | e }}</p>
|
|
{% endif %}
|
|
|