From 5c8902f3541303d146d666ba94ada4433477870d Mon Sep 17 00:00:00 2001 From: Alban Date: Tue, 3 Mar 2026 17:50:51 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20en=20place=20d'un=20syst=C3=A8me=20perme?= =?UTF-8?q?ttant=20de=20transmettre=20l'utilisateur=20logu=C3=A9=20de=20pa?= =?UTF-8?q?ge=20en=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ..._identifiants_mot_de_passe.cpython-311.pyc | Bin 870 -> 0 bytes __pycache__/repertoire_web.cpython-311.pyc | Bin 829 -> 0 bytes app.py | 19 +++++++++++------- templates/NOTES.html | 4 ++-- templates/heure.html | 6 +++--- templates/index.html | 10 ++++----- 6 files changed, 22 insertions(+), 17 deletions(-) delete mode 100644 __pycache__/repertoire_identifiants_mot_de_passe.cpython-311.pyc delete mode 100644 __pycache__/repertoire_web.cpython-311.pyc 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 48e917b7b1fa48193dc70985d2448702709d5239..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 870 zcma)4&ubGw6rS1LWMh-GLhD5@3sN+w*-D{5pa@YK63`%|htflrZDt~Clil!kwj$)v zgNOVF=}|A5;3Y@zxp+)VMcGq8ya$3FJo$Fg*j7P&?0nzbH#2X(`F7u>(=!BP_s1LO zloIkadYMN2EE%t0(k6^B>d+m+6i%6nL*q&{&SI~$9re7%;#kwMrm=XLWD;R4SKG7Q zFje=2#kke5eV>QPBIB-bs*df7F!ki(R2;Ynz^y1#8ORzA700-M&?W+L8n03H-_b;^ zZ?VJs-(8w?U*@1NrA(NL+O$%r7u|~Iy1`aHqlAkV@CFCrIlwLFT%d1V(yl(^qN_lp z31SF-)YmY++el`eGsiaV=*nh(^Wplv<<;DpdB5KQZkEbL^J%{ej>ovMZ2BAycmP(l zX8Zf*{~VodybNa!I5<@+z}=9>6QzP%m>iOC`rXg^(uuy*yYay})(fY4;p5{IeS4s9 zf0>(aiQ(KrD;VQaQo7`Bq!;~dk`1gfihe0U7Sr5wFA&`D0t0xxQL`)D z2wZO9=Y)Qj8w~6H?$pL?DMR53?t&!3nNyI$JWSY(O|EejU!#&gk8nta>zkjnOy|zA zwla_p%wjzglYK(f7Z7TDo>!CChiG$`$R)Dx&%{REV?m8SfCZe2{to{I!bqi*4z*-! vccdz}l>u2CC1Uj2(W4PT>iCj+LeifwtI#|>x;Y{dcghp)ZB6*!D24q3l}OoG diff --git a/__pycache__/repertoire_web.cpython-311.pyc b/__pycache__/repertoire_web.cpython-311.pyc deleted file mode 100644 index 81f2fe2ca6ead85ae0fd64f2655ee5750176dbd6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ`%&ubGw6rTN&AI+K;wX{&M%&jD9wl)5!SS+b1ltK`D>m_VF>5=aD`mRUkj|?taQCdO}O77wq(=d@4xW=0ZJrYbe2pP=2H`R}D$d5W9 zUvNzV$I!!D$e#c|6duqfP#(5MLn)~5sY`{d!|g{8ckW&<->Gcc8>7z>?CSom{TR>n z1Or;OeUOI`%37o8_%G~#t!po#UTVLNauVEUAd@BY*gKmXwS>?izpSNq+i$n~<-y#k zRs3cZPt4*NcSw}RtAP|%cY1$R69<)xD@c0eNSpQXh-{(CH04tXY2~>H1E3wx=`GpF)@V uZY{?tV?mDzLdS}8x^}huASRgllce|zWOZ$|dpQwS`>sj@rqX{w&GQ$pL&9hP 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