version clé USB nommée Serveur_flask_v2 du 16 février 2026

This commit is contained in:
laurent
2026-05-08 12:41:00 +02:00
parent b71ae96310
commit 82765601b0
13 changed files with 121 additions and 213 deletions

View File

@@ -1,69 +1,32 @@
<!doctype html>
<html lang="fr">
<head>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<script>
function added_user(Identifiant){
if (Identifiant){
alert("L'utilisateur " + Identifiant + " à été ajouté");
}
}
added_user("{{added_user}}");
</script>
<meta charset="utf-8">
<title>Accueil</title>
<style>
.main{
display: grid;
grid-template-columns: repeat(1, 1fr) ;
}
.align_left {
grid-column: 1;
grid-row: 1 ;
/*
display: inline-block;
*/
}
.align_right {
grid-column: 2;
grid-row: 1;
/*
position: relative;
top: 0px;
width: 40%;
float: right;
display: inline-block;
*/
}
</style>
</head>
<body>
<img src="{{ url_for('static', filename='img/logo.jpg') }}" style="display: block" alt="Logo" width="160">
<div class= "main">
<div class= "align_left">
<h1>Mon site journal</h1>
<h2>Accueil</h2>
<p><a href="{{ url_for('NOTES',Identifiant=Identifiant) }}">Aller sur NOTES</a></p>
<p><a href="{{ url_for('heure',Identifiant=Identifiant) }}">Verifier l'heure</a></p>
<p><a href="{{ url_for('formulaire') }}">Aller au formulaire</a></p>
<h3>Répertoire</h3>
<ul>
<li><a href="{{ url_for('cherche') }}">Rechercher un numéro</a></li>
<li><a href="{{ url_for('ajout') }}">Ajouter un contact</a></li>
</ul>
</div>
<div class= "align_right">
{% if Identifiant == "Alban" %}
<h1>Ajouter un utilisateur</h1>
<form action="{{ url_for('result_add_user') }}" method="post">
<label>Identifiant : <input name="Identifiant" required></label><br>
<label>Mot_de_passe : <input name="Mot_de_passe" required></label><br>
<button type="submit">Ajouter</button>
</form>
{% endif %}
<p><a href="{{ url_for('user_search') }}">Se connecter avec un autre identifiant</a></p>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang = "fr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<title> Site informaticiens </title>
</head>
<body>
<h1>
Quelsques grands noms de l'informagique !
</h1>
<table border="1">
<tbody>
<tr>
<td>
<a href="{{url_for('page_hopper')}}">Grace Hopper</a>
</td>
<td>L1 C2</td>
<td>L1 C3</td>
</tr>
<tr>
<td>L2 C1</td>
<td>L2 C2</td>
<td>L2 C3</td>
</tr>
</tbody>
</table>
</body>
</html>