From 8b57e76f64cf5de3d0a810019a7fcff03d876544 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 8 May 2020 19:22:32 +0200 Subject: Ajout page analyse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajout d'une page analyse.py quasi vierge et de l'entrée "Analyse" dans la balise nav de fonctions.py. --- www/html/analyse.py | 27 +++++++++++++++++++++++++++ www/html/fonctions.py | 1 + 2 files changed, 28 insertions(+) create mode 100644 www/html/analyse.py (limited to 'www') diff --git a/www/html/analyse.py b/www/html/analyse.py new file mode 100644 index 0000000..de55e47 --- /dev/null +++ b/www/html/analyse.py @@ -0,0 +1,27 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- + +import mod_python +from fonctions import baseHTML, connexionBD, lien + +def index(req): + req.content_type="text/html" + content=str() +''' +#sql part + conn=connexionBD() + cur=conn.cursor() + sql="select * from paquet;" + cur.execute(sql) + conn.commit() + data=cur.fetchall() + conn.close() +#sql part +''' + +#write the html page + req.write(baseHTML("ATS-Project",""" +

Analyse

+""" ++ content +)) diff --git a/www/html/fonctions.py b/www/html/fonctions.py index b9efce1..a8d4c8b 100755 --- a/www/html/fonctions.py +++ b/www/html/fonctions.py @@ -15,6 +15,7 @@ def baseHTML(title,body): Index Filtrage Syntaxe + Analyse """+ body +""" -- cgit v1.2.3