mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-25 00:54:18 +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="input-group">
|
<div class="form-group">
|
||||||
<span class="input-group-addon">SELECT</span>
|
<div class="input-group">
|
||||||
<input type="text" class="form-control" placeholder="Scrivi qui la tua query!" name="query" {% if query %}value="{{ query }}{% endif %}">
|
<span class="input-group-addon">SELECT</span>
|
||||||
<span class="input-group-addon">;</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>
|
</div>
|
||||||
</form>
|
</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">
|
<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