mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-25 00:54:18 +00:00
Improve query page
This commit is contained in:
parent
22b2a1540e
commit
3ebb96e962
2 changed files with 27 additions and 4 deletions
|
@ -26,6 +26,24 @@
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.string
|
||||||
|
{
|
||||||
|
background-color: #c8ffc8;
|
||||||
|
color: #006600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.number
|
||||||
|
{
|
||||||
|
background-color: #c8c8ff;
|
||||||
|
color: #000066;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bytes
|
||||||
|
{
|
||||||
|
background-color: #ffc8c8;
|
||||||
|
color: #660000;
|
||||||
|
}
|
||||||
|
|
||||||
.container-lower
|
.container-lower
|
||||||
{
|
{
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% 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>!
|
|
||||||
</div>
|
|
||||||
<form action="/query" method="post">
|
<form action="/query" method="post">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
@ -48,7 +45,15 @@
|
||||||
{% for row in result %}
|
{% for row in result %}
|
||||||
<tr>
|
<tr>
|
||||||
{% for column in row %}
|
{% for column in row %}
|
||||||
<td>{{ column }}</td>
|
<td>
|
||||||
|
{% if column is string %}
|
||||||
|
<code class="string">{{ column }}</code>
|
||||||
|
{% elif column is number %}
|
||||||
|
<code class="number">{{ column }}</code>
|
||||||
|
{% else %}
|
||||||
|
<code class="bytes">{{ column }}</code>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue