1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-21 23:24:18 +00:00

Add execute query button

This commit is contained in:
Steffo 2017-09-13 11:11:01 +02:00
parent e7dd17d408
commit f7a97156ea

View file

@ -6,20 +6,25 @@
{% endblock %}
{% block content %}
<div class="alert alert-warning">
<b>Attenzione!</b> In questa pagina non è presente alcuna misura per prevenire SQL Injection. Eseguite le query a vostro <a href="https://xkcd.com/327/">rischio e pericolo</a>!
<b>Attenzione!</b> In questa pagina non è presente alcuna misura per prevenire SQL injection. Eseguite le query a vostro <a href="https://xkcd.com/327/">rischio e pericolo</a>!
</div>
<form action="/query" method="post">
<div class="input-group">
<span class="input-group-addon">SELECT</span>
<input type="text" class="form-control" placeholder="Scrivi qui la tua query!" name="query" {% if query %}value="{{ query }}{% endif %}">
<span class="input-group-addon">;</span>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">SELECT</span>
<input type="text" class="form-control" placeholder="* FROM enti" name="query" {% if query %}value="{{ query }}{% endif %}">
<span class="input-group-addon">;</span>
</div>
</div>
<div class="form-group">
<p>
<input class="btn btn-primary" type="submit">
<button class="btn btn-info" type="button" data-toggle="collapse" data-target="#database-structure">
Visualizza struttura database (SQLite)
</button>
</p>
</div>
</form>
<p>
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#database-structure">
Visualizza struttura database (SQLite)
</button>
</p>
<div id="database-structure" class="collapse">
<img src="{{ url_for('static', filename='dbtree.png') }}">
</div>