aboutsummaryrefslogtreecommitdiff
path: root/web/website/index.py
diff options
context:
space:
mode:
authorclyhtsuriva <clyhtsuriva@gmail.com>2020-03-29 19:56:43 +0200
committerclyhtsuriva <clyhtsuriva@gmail.com>2020-03-29 19:56:43 +0200
commita6e0225c9e22d76fae9493008cad8510d94905e9 (patch)
tree000c53031f2845cb9fe300f681ec9fe3a01ef1b5 /web/website/index.py
parentdc539fda0108dc724693fbdd7599bd86980f0de0 (diff)
web deleted
Diffstat (limited to 'web/website/index.py')
-rwxr-xr-xweb/website/index.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/web/website/index.py b/web/website/index.py
deleted file mode 100755
index 010ed2d..0000000
--- a/web/website/index.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/python3
-# -*- coding: utf-8 -*-
-
-import mod_python
-from fonctions import baseHTML, connexionBD
-
-def index(req):
- req.content_type="text/html"
-
- content=str()
-
-#sql part
- conn=connexionBD()
- cur=conn.cursor()
- sql="select * from trame;"
- cur.execute(sql)
- conn.commit()
- data=cur.fetchall()
- conn.close()
-#sql part
-
- for i in data :
- 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>
-<table>
-<tr><th>Heure</th><th>Protocole</th><th>Source</th><th>Destination</th></tr>
-"""
-+ content +
-"""
-</table>
-""")) #tableheads to change so it takes the output of the select
-