aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclyhtsuriva <clyhtsuriva@gmail.com>2020-05-20 10:36:49 +0200
committerclyhtsuriva <clyhtsuriva@gmail.com>2020-05-20 10:36:49 +0200
commit1ef55833399d4a95560153f0d280f2efd77af2e2 (patch)
treef0cfa5d6c3e5b4b323f620cfce06f0d242ba05ee
parent97534c703f09de65c7cab6ae63aa31822da38de2 (diff)
espacement tableau
-rwxr-xr-xwww/html/bilan.py6
-rwxr-xr-xwww/html/style.css8
2 files changed, 12 insertions, 2 deletions
diff --git a/www/html/bilan.py b/www/html/bilan.py
index 735959b..29d42b0 100755
--- a/www/html/bilan.py
+++ b/www/html/bilan.py
@@ -37,7 +37,7 @@ def index(req):
conn.commit()
total_uneheure=str(cur.fetchone()[0])
#
- cur.execute("SELECT ip_destination, COUNT(ip_destination) FROM paquet GROUP BY ip_destination")
+ cur.execute("SELECT ip_destination, COUNT(ip_destination) FROM paquet GROUP BY ip_destination DESC")
conn.commit()
each_ip_dest=cur.fetchall()
#
@@ -75,9 +75,11 @@ def index(req):
<li>Nombre total de ports destination differents : <b>"""+total_port_dst+"""</b></li>
</ul>
<br/>
-<table>
+<table class="inlineTable">
<tr><th>IP destination</th><th>Recurrence</th></tr>
"""+str(ipdst)+"""
+</table>
+<table class="inlineTable">
<tr><th>Port destination</th><th>Reccurrence</th></tr>
"""+str(portdst)+"""
</table>
diff --git a/www/html/style.css b/www/html/style.css
index d0d0de1..ae32cf5 100755
--- a/www/html/style.css
+++ b/www/html/style.css
@@ -80,3 +80,11 @@ th{
background-color:#D42471;
color:#000000;
}
+
+.inlineTable{
+ display: inline-table;
+}
+
+.floatTable{
+ float: left;
+}