aboutsummaryrefslogtreecommitdiff
path: root/web
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
parenta4a5290fad80a676dae5d635bda7fcc87bc4c6f6 (diff)
style and db implementation
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;
+}