mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-28 18:24:20 +00:00
Add execute query button
This commit is contained in:
parent
e7dd17d408
commit
f7a97156ea
1 changed files with 15 additions and 10 deletions
|
@ -6,20 +6,25 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="alert alert-warning">
|
<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>
|
</div>
|
||||||
<form action="/query" method="post">
|
<form action="/query" method="post">
|
||||||
|
<div class="form-group">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon">SELECT</span>
|
<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 %}">
|
<input type="text" class="form-control" placeholder="* FROM enti" name="query" {% if query %}value="{{ query }}{% endif %}">
|
||||||
<span class="input-group-addon">;</span>
|
<span class="input-group-addon">;</span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
<p>
|
<p>
|
||||||
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#database-structure">
|
<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)
|
Visualizza struttura database (SQLite)
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
<div id="database-structure" class="collapse">
|
<div id="database-structure" class="collapse">
|
||||||
<img src="{{ url_for('static', filename='dbtree.png') }}">
|
<img src="{{ url_for('static', filename='dbtree.png') }}">
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue