Merge branch 'master' of github.com:xdrm-brackets/projetphp

This commit is contained in:
Lucas Mascaro 2015-12-08 09:34:54 +01:00
commit f4bd78ae2d
4 changed files with 41 additions and 10 deletions

View File

@ -57,8 +57,12 @@ if(!Authentification::checkUser(0)){
foreach(MedecinRepo::getAll() as $MEDECIN) foreach(MedecinRepo::getAll() as $MEDECIN)
echo "<option value='".$MEDECIN['Id']."'>".$MEDECIN['Nom']." ".$MEDECIN['Prenom']."</option>"; echo "<option value='".$MEDECIN['Id']."'>".$MEDECIN['Nom']." ".$MEDECIN['Prenom']."</option>";
?> ?>
</select>Le médecin traitant se selectionne par défaut </select>
</div> <span>Selection du médecin pour la consultation.</span>
<span class='associated'>Médecin traitant du patient.</span>
</div><br>
<input type='text' placeholder='dd/mm/yyyy'>
<br><br>coucou
</article> </article>
<article data-title="Numéro de sécurité sociale"> <article data-title="Numéro de sécurité sociale">

View File

@ -29,7 +29,8 @@ if(!Authentification::checkUser(0)){
<a href='Dashboard.php' id='ICON'></a> <a href='Dashboard.php' id='ICON'></a>
<a href='Dashboard.php' id='dashboard' class='active'>Tableau de bord</a> <a href='Dashboard.php' id='dashboard' class='active'>Tableau de bord</a>
<a href='Consultations.php' id='consultations'>Consultations</a> <a href='Consultations.php' id='consultations'>Consultations</a>
<a>Médecins</a> <a href='Medecins.php' id='medecin'>Gestion des médecins</a>
<a href='Patients.php' id='patient'>Gestion des patients</a>
</nav> </nav>
@ -40,10 +41,11 @@ if(!Authentification::checkUser(0)){
<!-- FIL D'ARIANE --> <!-- FIL D'ARIANE -->
<div id='BREADCRUMB'><a href='Dashboard.php'>Accueil</a></div> <div id='BREADCRUMB'><a href='Dashboard.php'>Accueil</a></div>
</section> </section>
</div> </div>
</body> </body>
</html> </html>

View File

@ -300,21 +300,46 @@ body{
-o-appearance: none; -o-appearance: none;
} }
/* .associated */ /* <SELECT>.associated */
#CONTAINER > article select.associated{ #CONTAINER > article select.associated{
border-color: #f09108; border-color: #f09108;
} }
/* <SPAN> */
#CONTAINER > article span{
margin-left: 1em;
}
/* SPECIFIC <SPAN> */
#CONTAINER > article select.associated ~ span:not(.associated){
display: none; /* on cache le texte défault quand c'est le médecin associé */
}
#CONTAINER > article select:not(.associated) ~ span.associated{
display: none; /* on cache le texte associé quand c'est pas le médecin associé */
}
/* <INPUT> */ /* <INPUT> */
#CONTAINER > article input{ #CONTAINER > article input{
/* position */ /* position */
display: inline-block; display: block;
position: relative; position: relative;
margin: 1em; margin: 1em;
padding: .7em; padding: .7em;
/* border */ /* border */
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
/* animation */
transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-webkit-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
} }
/* @focus */ /* @focus */

View File

@ -51,8 +51,8 @@ inSecu.addEventListener('keyup', function(e){
if( inSecu.value[i] != ' ' && ftSecu[i] == ' ' ) if( inSecu.value[i] != ' ' && ftSecu[i] == ' ' )
inSecu.value = inSecu.value.slice(0, i).concat(' ').concat( inSecu.value.slice(i) ); inSecu.value = inSecu.value.slice(0, i).concat(' ').concat( inSecu.value.slice(i) );
// [4] Le numéro saisi est trop long, on le coupe // [4] Le numéro saisi est trop long, on le coupe + enlève les espaces alentours
inSecu.value = inSecu.value.slice(0, ftSecu.length); inSecu.value = inSecu.value.slice(0, ftSecu.length).trim();
} }
}, false); }, false);