aboutsummaryrefslogtreecommitdiffstats
path: root/www/html/index.py
diff options
context:
space:
mode:
authorclyhtsuriva <clyhtsuriva@gmail.com>2020-05-16 11:20:30 +0200
committerclyhtsuriva <clyhtsuriva@gmail.com>2020-05-16 11:20:30 +0200
commit2b9d103c5c3066c03d6d3ee52d85aa9d96bb7791 (patch)
tree86f9c0b64ed6dbe4ec793e6d809ca0610b18aa79 /www/html/index.py
parent0e8ac063433e6b97ae3a26a6dc1b0a63698497c2 (diff)
downloadATS-2b9d103c5c3066c03d6d3ee52d85aa9d96bb7791.tar.gz
ATS-2b9d103c5c3066c03d6d3ee52d85aa9d96bb7791.tar.bz2
ATS-2b9d103c5c3066c03d6d3ee52d85aa9d96bb7791.zip
Update www
Diffstat (limited to '')
-rwxr-xr-xwww/html/index.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/www/html/index.py b/www/html/index.py
index 7f419b0..446a90e 100755
--- a/www/html/index.py
+++ b/www/html/index.py
@@ -29,23 +29,23 @@ def index(req):
#takes every lines from the select
for i in data :
- content+=("""<tr>""" +
-"""<td>""" + str(i[1]) + """</td>""" +
-"""<td>""" + str(i[2]) + """</td>""" +
-"""<td>""" + str(i[3]) + """</td>""" +
-"""<td>""" + lien('destination.py?ip=' + str(i[4]), str(i[4])) + """</td>""" +
-"""<td>""" + str(i[5]) + """</td>""" +
-"""<td>""" + str(i[6]) + """</td>""" +
-"""</tr>""")
+ content+=("""<tr>
+<td>""" + str(i[1]) + """</td>
+<td>""" + str(i[2]) + """</td>
+<td>""" + str(i[3]) + """</td>
+<td>""" + lien('destination.py?ip=' + str(i[4]), str(i[4])) + """</td>
+<td>""" + str(i[5]) + """</td>
+<td>""" + str(i[6]) + """</td>
+ </tr>""")
#write the html page
req.write(baseHTML("ATS-Project","""
<h1>ATS-Project</h1>
<div id="tip" style="display:block;">
-Pour voir le nombre de paquets en destination d'une adresse IP, cliquez sur cette dernière dans le tableau.<div id="ok" onclick="toggle_div(this,'tip');"><b>OK</b></div></div>
+Pour voir le nombre de paquets en destination d'une adresse IP, cliquez sur cette dernière dans le tableau <button id="ok" onclick="toggle_div(this,'tip');">OK</button></div>
<p>Nombre total de paquets : <b>"""+ count +"""</b></p>
<em>Pour afficher toute la table, cliquez</em>
-<button onclick="affiche_tas()">ICI</button><br/>
+<button id="afficheTas" onclick="affiche_tas()">ICI</button><br/>
<div id="tab">
<table class="data_tab">
<tr><th>Heure</th><th>Protocole</th><th>IP Source</th><th>IP Destination</th><th>Port Source</th><th>Port Destination</th></tr>