From 3ebb96e962ca765d3f5519668493c55e93d388de Mon Sep 17 00:00:00 2001 From: Stefano Date: Wed, 13 Sep 2017 12:28:00 +0200 Subject: [PATCH] Improve query page --- static/style.css | 18 ++++++++++++++++++ templates/query.htm | 13 +++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/static/style.css b/static/style.css index eb93fbb..05b3dc6 100644 --- a/static/style.css +++ b/static/style.css @@ -26,6 +26,24 @@ padding-right: 10px; } +.string +{ + background-color: #c8ffc8; + color: #006600; +} + +.number +{ + background-color: #c8c8ff; + color: #000066; +} + +.bytes +{ + background-color: #ffc8c8; + color: #660000; +} + .container-lower { margin-top: 10px; diff --git a/templates/query.htm b/templates/query.htm index c3ed504..40ebc6e 100644 --- a/templates/query.htm +++ b/templates/query.htm @@ -5,9 +5,6 @@ {% endblock %} {% block content %} -
- Attenzione! In questa pagina non รจ presente alcuna misura per prevenire SQL injection. Eseguite le query a vostro rischio e pericolo! -
@@ -48,7 +45,15 @@ {% for row in result %} {% for column in row %} - {{ column }} + + {% if column is string %} + {{ column }} + {% elif column is number %} + {{ column }} + {% else %} + {{ column }} + {% endif %} + {% endfor %} {% endfor %}