aboutsummaryrefslogtreecommitdiff
path: root/www/html/analyse.py
blob: de55e472af0e5dd90a41ef2663ddd634647ef4da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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","""
<center><h1>Analyse</h1></center>
"""
+ content
))