From a6e0225c9e22d76fae9493008cad8510d94905e9 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Sun, 29 Mar 2020 19:56:43 +0200 Subject: web deleted --- web/website/index.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 web/website/index.py (limited to 'web/website/index.py') 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+=("""""" + -"""""" + str(i[1]) + """""" + -"""""" + str(i[2]) + """""" + -"""""" + str(i[3]) + """""" + -"""""" + str(i[4]) + """""" + -"""""") - - req.write(baseHTML("ATS-Project",""" -

ATS-Project

- - -""" -+ content + -""" -
HeureProtocoleSourceDestination
-""")) #tableheads to change so it takes the output of the select - -- cgit v1.2.3