aboutsummaryrefslogtreecommitdiff
path: root/www/html/syntaxe.py
diff options
context:
space:
mode:
Diffstat (limited to 'www/html/syntaxe.py')
-rwxr-xr-xwww/html/syntaxe.py25
1 files changed, 25 insertions, 0 deletions
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>&lt;colonne&gt;='&lt;valeur&gt;'</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>
+"""))