diff --git a/__pycache__/repertoire_identifiants_mot_de_passe.cpython-311.pyc b/__pycache__/repertoire_identifiants_mot_de_passe.cpython-311.pyc deleted file mode 100644 index 48e917b..0000000 Binary files a/__pycache__/repertoire_identifiants_mot_de_passe.cpython-311.pyc and /dev/null differ diff --git a/__pycache__/repertoire_web.cpython-311.pyc b/__pycache__/repertoire_web.cpython-311.pyc deleted file mode 100644 index 81f2fe2..0000000 Binary files a/__pycache__/repertoire_web.cpython-311.pyc and /dev/null differ diff --git a/app.py b/app.py index e3e3f99..9ec60b9 100644 --- a/app.py +++ b/app.py @@ -7,9 +7,13 @@ app = Flask(__name__) # crée l'application Flask @app.route("/") # URL racine : http://localhost:5000/ def index(): - return render_template("user_search.html",display = "none") return render_template("index.html", Identifiant="Alban") +@app.route("/index2/") # URL racine : http://localhost:5000/ +def index2(Identifiant): + return render_template("index.html", Identifiant=Identifiant) + + @app.route("/cherche") def cherche(): return render_template("cherche.html") @@ -57,18 +61,19 @@ def result_search(): else: return render_template("user_search.html", display="visible") -@app.route("/NOTES") -def NOTES(): - return render_template("NOTES.html") +@app.route("/NOTES/") +def NOTES(Identifiant): + return render_template("NOTES.html", Identifiant=Identifiant) -@app.route("/heure") -def heure(): +@app.route("/heure/") +def heure(Identifiant): maintenant = datetime.now() return render_template( "heure.html", h=maintenant.hour, m=maintenant.minute, - s=maintenant.second + s=maintenant.second, + Identifiant=Identifiant, ) @app.route("/formulaire") diff --git a/templates/NOTES.html b/templates/NOTES.html index a1e9a2d..a224c2a 100644 --- a/templates/NOTES.html +++ b/templates/NOTES.html @@ -23,7 +23,7 @@

#2.The Strongest Battlegrounds

- Logo TSB + Logo TSB

Phonk favoris

@@ -40,7 +40,7 @@

Retour à l'accueil

-

Verifier l'heure

+

Verifier l'heure

Aller au formulaire

\ No newline at end of file diff --git a/templates/heure.html b/templates/heure.html index 9627ced..ce9ba69 100644 --- a/templates/heure.html +++ b/templates/heure.html @@ -4,10 +4,10 @@ Heure - +

Page dynamique

-

Il est {{ h }} h {{ m }} min {{ s }} s

-

Retour

+

Il est {{ h }} h {{ m }} min {{ s }} s

+

Retour

\ No newline at end of file diff --git a/templates/index.html b/templates/index.html index f37b95d..5364404 100644 --- a/templates/index.html +++ b/templates/index.html @@ -17,8 +17,8 @@

Mon site journal

Accueil

-

Aller sur NOTES

-

Verifier l'heure

+

Aller sur NOTES

+

Verifier l'heure

Aller au formulaire

Répertoire