diff options
Diffstat (limited to 'www/html/index.py')
-rwxr-xr-x | www/html/index.py | 20 |
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> |