aboutsummaryrefslogtreecommitdiff
path: root/web/website/index.py
diff options
context:
space:
mode:
authorcly <clyhtsuriva@gmail.com>2020-03-23 15:34:38 +0100
committercly <clyhtsuriva@gmail.com>2020-03-23 15:34:38 +0100
commit861b0b5ce4fffd49ad2a68364e50279f4b386612 (patch)
treea9a9558fae61c935a41cb76395be3f0cc5a8914f /web/website/index.py
parenta4a5290fad80a676dae5d635bda7fcc87bc4c6f6 (diff)
style and db implementation
Diffstat (limited to 'web/website/index.py')
-rw-r--r--web/website/index.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/web/website/index.py b/web/website/index.py
index 499d86f..131a82a 100644
--- a/web/website/index.py
+++ b/web/website/index.py
@@ -20,9 +20,20 @@ def index(req):
#sql part
for i in data :
- content+=("""<ul><li>""" + str(i[1]) + str(i[2]) + str(i[3]) + str(i[4]) + """</li></ul>""")
+ content+=("""<tr>""" +
+"""<td>""" + str(i[1]) + """</td>""" +
+"""<td>""" + str(i[2]) + """</td>""" +
+"""<td>""" + str(i[3]) + """</td>""" +
+"""<td>""" + str(i[4]) + """</td>""" +
+"""</tr>""")
req.write(baseHTML("ATS-Project","""
-<center><h1>ATS-Project</h1></center>"""
-+ content))
+<center><h1>ATS-Project</h1></center>
+<table>
+<tr><th>Heure</th><th>Protocole</th><th>Source</th><th>Destination</th></tr>
+"""
++ content +
+"""
+</table>
+"""))