Commit ca37e89470d2136fd904912034c92200255cb8e8
1 parent
4cc1c9fb
MAJ connexion site
Showing
3 changed files
with
16 additions
and
3 deletions
Show diff stats
site/add.php
@@ -18,7 +18,7 @@ session_start(); | @@ -18,7 +18,7 @@ session_start(); | ||
18 | <div class="row"> | 18 | <div class="row"> |
19 | <div class="col-6 col-md-6 offset-md-3 offset-3"> | 19 | <div class="col-6 col-md-6 offset-md-3 offset-3"> |
20 | <br/> | 20 | <br/> |
21 | - <h1 style="margin-bottom:50px; margin-top:50px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-history"></i> Historique</h1> | 21 | + <h1 style="margin-bottom:20px; margin-top:30px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-history"></i> Historique</h1> |
22 | <?php | 22 | <?php |
23 | if(add($_POST['nom'], $_POST['type'], $_POST['raspberry'], $_POST['numero'], $_POST['unite'], $_POST['version'])) | 23 | if(add($_POST['nom'], $_POST['type'], $_POST['raspberry'], $_POST['numero'], $_POST['unite'], $_POST['version'])) |
24 | { | 24 | { |
site/addSensor.php
1 | <div class="row"> | 1 | <div class="row"> |
2 | <div class="col-4 col-md-4 offset-md-4 offset-4"> | 2 | <div class="col-4 col-md-4 offset-md-4 offset-4"> |
3 | <br/> | 3 | <br/> |
4 | - <h1 style="margin-bottom:50px; margin-top:50px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="far fa-plus-square"></i> Ajout d'un capteur</h1> | 4 | + <h1 style="margin-bottom:20px; margin-top:30px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="far fa-plus-square"></i> Ajout d'un capteur</h1> |
5 | <form action="add.php" method="post"> | 5 | <form action="add.php" method="post"> |
6 | <table class="table table-striped table-bordered"> | 6 | <table class="table table-striped table-bordered"> |
7 | <tbody> | 7 | <tbody> |
site/connecter.php
@@ -29,7 +29,20 @@ require("accesBase.php") ; | @@ -29,7 +29,20 @@ require("accesBase.php") ; | ||
29 | ?><meta http-equiv="Refresh" content="0;url=accueil.php" /><?php | 29 | ?><meta http-equiv="Refresh" content="0;url=accueil.php" /><?php |
30 | } | 30 | } |
31 | else | 31 | else |
32 | - echo "---------------------erreur de mdp";?> | 32 | + { |
33 | + ?> | ||
34 | + <div class="row"> | ||
35 | + <div class="col-4 col-md-4 offset-4 offset-md-4"> | ||
36 | + <br/> | ||
37 | + <div class="alert <?php echo $color;?>" role="alert"> | ||
38 | + Identifiant ou mot de passe incorrect ! | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + <meta http-equiv="Refresh" content="5;url=accueil.php" /> | ||
43 | + <?php | ||
44 | + } | ||
45 | + ?> | ||
33 | </div> | 46 | </div> |
34 | </div> | 47 | </div> |
35 | <!-- fin connexion --> | 48 | <!-- fin connexion --> |