2013-01-25 13:56:55 +01:00
|
|
|
<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 %}
|
2013-01-25 14:00:39 +01:00
|
|
|
<th>{{ key | e }}</th>
|
2013-01-25 13:56:55 +01:00
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for row in result %}
|
|
|
|
<tr>
|
|
|
|
{% for col in row %}
|
2013-09-09 11:59:25 +02:00
|
|
|
<td>
|
|
|
|
{% if col != null %}
|
|
|
|
{{ col | e }}
|
|
|
|
{% else %}
|
|
|
|
<em>NULL</em>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2013-01-25 13:56:55 +01:00
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% elseif error %}
|
2013-01-25 14:00:39 +01:00
|
|
|
<p style="text-align:center;color:#d00">{{ error | e }}</p>
|
2013-01-25 13:56:55 +01:00
|
|
|
{% endif %}
|