diff options
Diffstat (limited to 'www/html')
-rwxr-xr-x | www/html/bilan.py | 6 | ||||
-rwxr-xr-x | www/html/style.css | 8 |
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; +} |