aboutsummaryrefslogtreecommitdiffstats
path: root/www/html/index.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xwww/html/index.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/www/html/index.py b/www/html/index.py
index 010ed2d..bf4face 100755
--- a/www/html/index.py
+++ b/www/html/index.py
@@ -12,28 +12,31 @@ def index(req):
#sql part
conn=connexionBD()
cur=conn.cursor()
- sql="select * from trame;"
+ sql="select * from paquet;"
cur.execute(sql)
conn.commit()
data=cur.fetchall()
conn.close()
#sql part
+#takes every lines from the select
for i in data :
- content+=("""<tr>""" +
+ content+=("""<tr>""" +
"""<td>""" + str(i[1]) + """</td>""" +
"""<td>""" + str(i[2]) + """</td>""" +
"""<td>""" + str(i[3]) + """</td>""" +
"""<td>""" + str(i[4]) + """</td>""" +
+"""<td>""" + str(i[5]) + """</td>""" +
+"""<td>""" + str(i[6]) + """</td>""" +
"""</tr>""")
+#write the html page
req.write(baseHTML("ATS-Project","""
<center><h1>ATS-Project</h1></center>
-<table>
-<tr><th>Heure</th><th>Protocole</th><th>Source</th><th>Destination</th></tr>
+<center><table>
+<tr><th>Heure</th><th>Protocole</th><th>IP Source</th><th>IP Destination</th><th>Port Source</th><th>Port Destination</th></tr>
"""
+ content +
"""
-</table>
-""")) #tableheads to change so it takes the output of the select
-
+</table></center>
+"""))
i.git/commit/README.md?h=release/3.2.3&id=3f27500431c5e76b0cc9cb6ec384ef40da249609&follow=1'>Update README.mdrelease/3.2.1Clyhtsuriva1-6/+21 2021-05-19Big updaterelease/3.2Clyhtsuriva55-235/+193 2021-05-19Update README.mdClyhtsuriva1-1/+5 2021-05-14Update README.mdClyhtsuriva1-1/+3 2021-05-14Update README.mdClyhtsuriva1-0/+23 2021-05-14Update README.md and adding logo onto the main screenrelease/3.1Clyhtsuriva2-10/+13 2021-05-14Singletons on all pages : OKClyhtsuriva6-125/+81 2021-05-14Singletons : DetailTopManga : OKClyhtsuriva2-21/+49 2021-05-14Addedd Singletons for TopManga.Clyhtsuriva3-23/+43