diff options
Diffstat (limited to 'www/html/index.py')
-rwxr-xr-x | www/html/index.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/www/html/index.py b/www/html/index.py index 446a90e..60bf4e5 100755 --- a/www/html/index.py +++ b/www/html/index.py @@ -29,20 +29,20 @@ 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>""" + lien('ip_source.py?ip=' + str(i[3]), str(i[3])) + """</td>""" + +"""<td>""" + lien('ip_destination.py?ip=' + str(i[4]), str(i[4])) + """</td>""" + +"""<td>""" + lien('port_source.py?port=' + str(i[5]), str(i[5])) + """</td>""" + +"""<td>""" + lien('port_destination.py?port=' + str(i[6]), str(i[6])) + """</td>""" + +"""</tr>""") + #write the html page - req.write(baseHTML("ATS-Project",""" -<h1>ATS-Project</h1> + req.write(baseHTML("ATS - Accueil",""" +<h1>ATS</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 <button id="ok" onclick="toggle_div(this,'tip');">OK</button></div> +Afin de voir le reverse DNS 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 id="afficheTas" onclick="affiche_tas()">ICI</button><br/> |