#!/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() condition=req.form["condition"] conn=connexionBD() cur=conn.cursor() sql="select * from paquet where {} ORDER BY heure DESC;".format(condition) cur.execute(sql) conn.commit() data=cur.fetchall() conn.close() for i in data: content+=("""
Heure | Protocole | IP Source | IP Destination | Port Source | Port Destination |
---|