diff options
author | clyhtsuriva <clyhtsuriva@gmail.com> | 2020-05-07 10:17:10 +0200 |
---|---|---|
committer | clyhtsuriva <clyhtsuriva@gmail.com> | 2020-05-07 10:17:10 +0200 |
commit | ff54c8915dce54d5c4494c4b85270f45775bd4ee (patch) | |
tree | 941b72f4a8f343a792a409f6ade33413d7f881f2 /www/html | |
parent | 56a2d1b4163bbe94e6d3e4a7c2ae8df37fbcd9b9 (diff) |
ajout page syntaxe et filtrage + filtrage effectif
Diffstat (limited to 'www/html')
-rw-r--r-- | www/html/affiche-tab.py | 4 | ||||
-rwxr-xr-x | www/html/filtrage.py | 19 | ||||
-rwxr-xr-x | www/html/fonctions.py | 6 | ||||
-rwxr-xr-x | www/html/index.py | 2 | ||||
-rwxr-xr-x | www/html/syntaxe.py | 25 |
5 files changed, 50 insertions, 6 deletions
diff --git a/www/html/affiche-tab.py b/www/html/affiche-tab.py index 2f5a516..5481d84 100644 --- a/www/html/affiche-tab.py +++ b/www/html/affiche-tab.py @@ -34,6 +34,4 @@ def index(req): """ + content + """ -</table></center> -""")) - +</table></center>""") diff --git a/www/html/filtrage.py b/www/html/filtrage.py new file mode 100755 index 0000000..1c294b2 --- /dev/null +++ b/www/html/filtrage.py @@ -0,0 +1,19 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- + +import mod_python +from fonctions import baseHTML, connexionBD, lien + +def index(req): + req.content_type="text/html" + content=str() + +#write the html page + req.write(baseHTML("ATS-Project",""" +<center><h1>Filtrage</h1></center> +<b>Filtre</b> +<input type="text" id="condition" onkeyup="cherche()"> +<div id="tab"> +</div> +<script src="filtre.js"></script> +""")) diff --git a/www/html/fonctions.py b/www/html/fonctions.py index 6bfdf18..b9efce1 100755 --- a/www/html/fonctions.py +++ b/www/html/fonctions.py @@ -12,8 +12,10 @@ def baseHTML(title,body): </head> <body> <nav> - <a href="/">Index</a> | - <a href="/fitre.py/">Filtre</a> + <a href="/">Index</a> + <a href="/filtrage.py">Filtrage</a> + <a href="/syntaxe.py">Syntaxe</a> + </nav> """+ body +"""</body> </html> diff --git a/www/html/index.py b/www/html/index.py index 7e45dca..958c5be 100755 --- a/www/html/index.py +++ b/www/html/index.py @@ -32,7 +32,7 @@ def index(req): #write the html page req.write(baseHTML("ATS-Project",""" <center><h1>ATS-Project</h1></center> -<b>Filtrage</b> +<b>Filtre</b> <input type="text" id="condition" onkeyup="cherche()"> <div id="tab"> <center><table> diff --git a/www/html/syntaxe.py b/www/html/syntaxe.py new file mode 100755 index 0000000..cdaf5f7 --- /dev/null +++ b/www/html/syntaxe.py @@ -0,0 +1,25 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- + +import mod_python +from fonctions import baseHTML, connexionBD, lien + +def index(req): + req.content_type="text/html" + content=str() + +#write the html page + req.write(baseHTML("ATS-Project",""" +<center><h1>Syntaxe</h1></center> +<p>La """+lien('syntaxe.py','syntaxe')+""" pour utiliser les filtres disponibles sur l'"""+lien('index.py','index')+""" et """+lien('filtrage.py','filtrage')+""" est la suivante :</p> +<p><colonne>='<valeur>'</p><br/> +<table> +<tr><th>colonne</th><th>valeur</th><th>exemple</th></tr> +<tr><td>heure</td><td>hh:mm:ss</td><td>heure='10:41:30'</td></tr> +<tr><td>protocole</td><td>texte</td><td>protocole='ICMP'</td></tr> +<tr><td>ip_source</td><td>W.X.Y.Z</td><td>ip_source='10.110.178.156'</td></tr> +<tr><td>ip_destination</td><td>W.X.Y.Z</td><td>ip_destination='1.1.1.1'</td></tr> +<tr><td>port_source</td><td>X</td><td>port_source='10000'</td></tr> +<tr><td>port_destination</td><td>X</td><td>port_destination='56'</td></tr> +</table> +""")) |