aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/website/index.py17
-rw-r--r--web/website/style.css5
2 files changed, 19 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>
+"""))
diff --git a/web/website/style.css b/web/website/style.css
index e5b5672..6d0bd42 100644
--- a/web/website/style.css
+++ b/web/website/style.css
@@ -5,3 +5,8 @@ body {
*{
color: white;
}
+
+table,th,td {
+ border: 2px solid red;
+ text-align: center;
+}