Browse Source

sauvegarde

master
BARRAUX Arthur 3 years ago
parent
commit
e18eb42cdd
  1. 20
      css/style.css
  2. 6
      prof/include/champ.php
  3. 6
      prof/index.php

20
css/style.css

@ -127,7 +127,17 @@ form {
background-color: #82E6AC; background-color: #82E6AC;
} }
.help { .hint {
position: relative;
top: 0;
}
.hint__int {
position: relative;
width: 100%;
}
.hint__help {
display: none; display: none;
z-index: 2; z-index: 2;
position: absolute; position: absolute;
@ -141,18 +151,18 @@ form {
background-color: #e5e5e5; background-color: #e5e5e5;
font-size: 14px; font-size: 14px;
} }
.help:hover { .hint__help:hover {
display: block; display: block;
} }
.help p { .hint__help p {
position: relative; position: relative;
font-size: 14px; font-size: 14px;
} }
.help img { .hint__help img {
border-radius: 15px; border-radius: 15px;
width: 100%; width: 100%;
} }
.help code { .hint__help code {
background-color: #aaa; background-color: #aaa;
border-radius: 5px; border-radius: 5px;
font-family: courier, monospace; font-family: courier, monospace;

6
prof/include/champ.php

@ -1,9 +1,5 @@
<?php <?php
echo '<p> ',$titre,' : '; echo '<p> ',$titre,' : </p>
if ($help) {
echo '<a class="int" href="#" onmouseover=displayHelp(',$sql_name,')><img src="../img/int.png" alt="point_int" width=20px ></a>';
}
echo '</p>
<input class="container-field__field" type=',$type,' name=',$sql_name,'><br> <input class="container-field__field" type=',$type,' name=',$sql_name,'><br>
<img class="container-field__img container-field__img--check" src="../img/check.png" alt="check"> <img class="container-field__img container-field__img--check" src="../img/check.png" alt="check">
<img class="container-field__img container-field__img--excla" src="../img/excla.png" alt="exclamation"> <img class="container-field__img container-field__img--excla" src="../img/excla.png" alt="exclamation">

6
prof/index.php

@ -48,11 +48,15 @@ include '../sessions/session.php';
$help = true; $help = true;
include("include/champ.php"); include("include/champ.php");
?> ?>
<div class="help" id="lieu"> <div class="hint" onmouseleave='hideHelp(lieu)'>
<a class="hint__int" href="#" onmouseover=displayHelp(lieu)><img src="../img/int.png" alt="point_int" width=20px ></a>
<div class="hint__help" id="lieu">
<p>Entrez le nom du bâtiment dans lequel se trouve le matériel</p><br> <p>Entrez le nom du bâtiment dans lequel se trouve le matériel</p><br>
<code>Ex: bâtiment A</code> <code>Ex: bâtiment A</code>
</div> </div>
</div> </div>
</div>
<div class="container-field"> <div class="container-field">
<?php <?php
$titre = 'Salle'; $titre = 'Salle';

Loading…
Cancel
Save