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

This commit is contained in:
Lucas Mascaro 2015-12-10 09:04:28 +01:00
commit 3b0d8c577e
20 changed files with 216 additions and 718 deletions

View File

@ -49,9 +49,9 @@ if(!Authentification::checkUser(0)){
/* SAISIR UN RENDEZ-VOUS */
/*************************************/ ?>
<article data-title="Saisir un rendez-vous">
<form>
<form method='POST' action='handler.php'>
<div>
<select id='newRDVPatient'>
<select id='newRDVPatient' name='id_patient'>
<option value='*'>Patient:</option>
<?php
foreach(PatientRepo::getAll() as $PATIENT)
@ -59,25 +59,18 @@ if(!Authentification::checkUser(0)){
?>
</select>
</div><div>
<select id='newRDVMedecin'>
<select id='newRDVMedecin' name='id_medecin'>
<option value='*'>Medecins:</option>
<?php
foreach(MedecinRepo::getAll() as $MEDECIN)
echo "<option value='".$MEDECIN['Id']."'>".$MEDECIN['Nom']." ".$MEDECIN['Prenom']."</option>";
?>
</select><span class='associated'>Médecin traitant du patient.</span>
</div>
</div><br>
<br><span>Date: &nbsp </span>
<input type='text' id='inDate' placeholder='dd/mm/yyyy'>
<br><span>Heure: </span>
<input type='text' id='inHeure' placeholder='HH:MM'>
<br><span>Durée: </span>
<input type='text' id='inDuree' placeholder='minutes'>
<br>
<input type='text' id='inDate' name='date' placeholder='dd/mm/yyyy'><span class='info'>Date de la consultation</span><br>
<input type='text' id='inHeure' name='heure' placeholder='HH:MM'><span class='info'>Heure de la consultation</span><br>
<input type='text' id='inDuree' name='duree' placeholder='minutes'><span class='info'>Durée de la consultation</span><br>
<input type='submit' value='Enregistrer la consultation'>
</form>
@ -91,13 +84,12 @@ if(!Authentification::checkUser(0)){
/*************************************/ ?>
<article data-title="Numéro de sécurité sociale">
<div>
<input type='checkbox' id='tousRDV'><label for='tousRDV'>Tous</label>
<input type='checkbox' id='pastRDV'><label for='pastRDV'>Passés</label>
<input type='checkbox' id='fturRDV'><label for='fturRDV'>À venir</label>
<input type='radio' name='filter_c' id='tousRDV'><label for='tousRDV'>Toutes les consultations</label><br>
<input type='radio' name='filter_c' id='pastRDV'><label for='pastRDV'>Consultations passées</label><br>
<input type='radio' name='filter_c' id='fturRDV'><label for='fturRDV'>Consultations à venir</label><br>
<input type='submit' value='Rechercher'>
<input type='text' id='inSecu' placeholder='1 99 99 99 999 999 95'><span class='invalid'>Clé de contrôle invalide.</span>
<input type='text' id='inSecu' placeholder='1 99 19 99 999 999 99'><span class='invalid'>Clé de contrôle invalide.</span>
</div>
</article>

View File

@ -16,12 +16,13 @@ if(!Authentification::checkUser(0)){
<link rel='stylesheet' href='css/animations.css'/>
<link rel='stylesheet' href='css/global.css'/>
<link rel='stylesheet' href='css/blue-green.theme.css'/>
<link rel='stylesheet' href='css/responsive.css'/>
<script type='text/javascript' src='js/adjust.js'></script>
<script type='text/javascript' src='js/input-checker.js'></script>
</head>
<body>
<body class='theme-bluegreen'>
<!-- WRAPPER DE LA PAGE -->
<div id='WRAPPER'>
@ -51,11 +52,11 @@ if(!Authentification::checkUser(0)){
<article data-title="Créer un médecin">
<form><br>Création d'un nouveau médecin au centre<br><br>
<input type='text' id='crPrenom' placeholder='Prenom'><br>
<input type='text' id='crNom' placeholder='Prenom'><br>
<input type='text' id='crCivilite' placeholder='Civilite'><br>
<input type='text' id='crNom' placeholder='Nom'><br>
<input type='text' id='crCivilite' placeholder='Civilité'><br>
<br>
<input type='submit' value='Enregistrer la consultation'>
<input type='submit' value='Créer le médecin'>
</form>
</article>
@ -68,9 +69,9 @@ if(!Authentification::checkUser(0)){
/*************************************/ ?>
<article data-title="Numéro de sécurité sociale">
<div>
<input type='checkbox' id='tousRDV'><label for='tousRDV'>Tous</label>
<input type='checkbox' id='pastRDV'><label for='pastRDV'>Passés</label>
<input type='checkbox' id='fturRDV'><label for='fturRDV'>À venir</label>
<input type='checkbox' id='tousRDV'><label for='tousRDV'>Tous</label><br>
<input type='checkbox' id='pastRDV'><label for='pastRDV'>Passés</label><br>
<input type='checkbox' id='fturRDV'><label for='fturRDV'>À venir</label><br>
<input type='submit' value='Rechercher'>

21
css/blue-green.theme.css Normal file
View File

@ -0,0 +1,21 @@
body.theme-bluegreen #CONTAINER > article[data-title]{
border-color: #24b993;
}
body.theme-bluegreen #CONTAINER > article[data-title]:before{
border-color: #24b993;
background-color: #24b993;
}
body.theme-bluegreen #CONTAINER > article select.associated{
border-color: #24b993;
}
body.theme-bluegreen input[type=checkbox] + label:before{
border-color: #24b993;
}
body.theme-bluegreen input[type=checkbox] + label:before{
background-image: url(../src/svg/checkbox@bluegreen.theme.svg);
}

View File

@ -78,7 +78,7 @@ body{
margin: 0;
/* background */
background: transparent url(../src/icon.svg) center center no-repeat;
background: transparent url(../src/svg/icon.svg) center center no-repeat;
background-size: auto 50%;
/* animation */
@ -113,8 +113,8 @@ body{
height: calc( 100% - 100px );
/* flex properties */
flex-direction: row;
justify-content: space-around;
flex-direction: column;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
@ -125,6 +125,8 @@ body{
overflow: hidden;
}
#WRAPPER{ height:500%; }
/* LES LIENS DU MENU */
#WRAPPER > #MENU > div > a{
@ -134,6 +136,7 @@ body{
width: calc( 225px/1.6 - 2*1em );
height: calc( 225px/1.6 - 1em );
padding: 0 1em;
margin: 1em;
/* border */
border-radius: 5px;
@ -178,22 +181,22 @@ body{
/* icones associées aux liens */
#WRAPPER > #MENU > div > a#consultations{
background: url(../src/consultation.svg) center bottom 1em no-repeat;
background: url(../src/svg/consultation.svg) center bottom 1em no-repeat;
background-size: 50% auto;
}
#WRAPPER > #MENU > div > a#medecin{
background: url(../src/medecin.svg) center bottom 1em no-repeat;
background: url(../src/svg/medecin.svg) center bottom 1em no-repeat;
background-size: 50% auto;
}
#WRAPPER > #MENU > div > a#patient{
background: url(../src/patient.svg) center bottom 1em no-repeat;
background: url(../src/svg/patient.svg) center bottom 1em no-repeat;
background-size: 50% auto;
}
#WRAPPER > #MENU > div > a#dashboard{
background: url(../src/dashboard.svg) center bottom 1em no-repeat;
background: url(../src/svg/dashboard.svg) center bottom 1em no-repeat;
background-size: 50% auto;
}
@ -248,7 +251,7 @@ body{
width: 1em;
height: .7em;
background: url(../src/right-arrow.svg) center center no-repeat;
background: url(../src/svg/right-arrow.svg) center center no-repeat;
background-size: 40% auto;
}
@ -256,7 +259,7 @@ body{
#WRAPPER > #CONTAINER > #BREADCRUMB a:first-child:before{
margin-right: 1em;
height: 1em;
background-image: url(../src/home.svg);
background-image: url(../src/svg/home.svg);
background-size: auto 100%;
}
@ -293,7 +296,7 @@ body{
border: 1px solid #f09108;
/* background */
background: #f09108 url(../src/title-gears.svg) left .5em center no-repeat;
background: #f09108 url(../src/svg/title-gears.svg) left .5em center no-repeat;
background-size: 1em auto;
/* foreground */
@ -314,7 +317,7 @@ body{
border: 1px solid #e5e5e5;
/* background */
background: #f6f4f2 url(../src/down-arrow.svg) right .5em center no-repeat;
background: #f6f4f2 url(../src/svg/down-arrow.svg) right .5em center no-repeat;
background-size: 1em auto;
/* <select> */
@ -376,7 +379,7 @@ body{
border: 1px solid #e5e5e5;
/* background */
background: url(../src/validated.svg) no-repeat;
background: url(../src/svg/validated.svg) no-repeat;
background-position: center right 1.5em;
background-size: 0em auto;
@ -404,7 +407,7 @@ body{
/* .invalid */
#CONTAINER > article input.invalid{
border-color: #ec111c;
background-image: url(../src/invalid.svg);
background-image: url(../src/svg/invalid.svg);
background-position: center right 1em;
background-size: 1em auto;
}
@ -421,41 +424,85 @@ body{
}
/* CLASSES STANDARD */
.info{
/* position */
display: inline-block;
position: relative;
padding: .5em;
/* border */
border-radius: 3px;
border: 1px solid transparent;
color: #fff;
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;
}
#CONTAINER > article input:focus + .info{
color: #afafaf;
border-color: #afafaf;
}
/* <INPUT> [type=submit] */
#CONTAINER > article input[type=submit]{
/* position */
padding-left: 3em;
/* background */
background: #2a7ec7 url(../src/save.svg) center left 1em no-repeat;
background: white url(../src/svg/save.svg) center left 1em no-repeat;
background-size: 1em auto;
/* foreground */
color: #fff;
color: #888;
/* extra */
cursor: pointer;
/* animation */
transition: color .2s ease-in-out;
-moz-transition: color .2s ease-in-out;
-webkit-transition: color .2s ease-in-out;
-ms-transition: color .2s ease-in-out;
-o-transition: color .2s ease-in-out;
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;
}
/* @hover */
#CONTAINER > article input[type=submit]:hover{
background-color: #2d85d2;
color: #000;
background-position: center left .75em;
background-size: 1.5em auto;
}
/* @active */
#CONTAINER > article input[type=submit]:active{
/* animation */
transform: scale(.95);
-moz-transform: scale(.95);
-webkit-transform: scale(.95);
-ms-transform: scale(.95);
-o-transform: scale(.95);
}
/* CHECKBOX HACK */
input[type=checkbox]{ display: none !important; }
input[type=radio]{ display: none !important; }
input[type=radio] + label{
display: inline-block;
margin-top: .5em;
margin-left: 1em;
}
/* label */
input[type=checkbox] + label:before{
input[type=radio] + label:before{
content: '';
/* position */
display: inline-block;
@ -470,7 +517,7 @@ input[type=checkbox] + label:before{
border: 1px solid #f18624;
/* background */
background: url(../src/checkbox.svg) center center no-repeat;
background: url(../src/svg/checkbox.svg) center center no-repeat;
background-size: 0% auto;
/* animation */
@ -492,7 +539,7 @@ input[type=checkbox] + label:before{
}
/* @active + label */
input[type=checkbox]:active + label:before{
input[type=radio]:active + label:before{
transform: scale(.8);
-moz-transform: scale(.8);
-webkit-transform: scale(.8);
@ -508,7 +555,7 @@ input[type=checkbox]:active + label:before{
/* @checked + label */
input[type=checkbox]:checked + label:before{
input[type=radio]:checked + label:before{
/* background */
background-size: 50% auto;
@ -521,3 +568,6 @@ input[type=checkbox]:checked + label:before{
}

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 47 KiB

View File

@ -1,121 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="18.000025"
version="1.1"
width="18"
id="svg2"
inkscape:version="0.48.4 r9939"
sodipodi:docname="save@hover.svg">
<metadata
id="metadata32">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs30" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1056"
id="namedview28"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="18.986111"
inkscape:cx="0.2919805"
inkscape:cy="13.75954"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<g
transform="translate(-3,-1031.4)"
id="g4">
<path
d="m 3,1037.4 v 2 2 6 c 0,1.1 0.8954,2 2,2 h 14 c 1.105,0 2,-0.9 2,-2 v -6 -2 -2 H 3 z"
id="path6"
inkscape:connector-curvature="0"
style="fill:#2980b9" />
<path
d="M 5,3 C 3.8954,3 3,3.8954 3,5 v 2 2 1 2 6 c 0,1.105 0.8954,2 2,2 h 14 c 1.105,0 2,-0.895 2,-2 V 12 10 9 7 6 L 18,3 H 17 15 5 z"
transform="translate(0,1028.4)"
id="path8"
inkscape:connector-curvature="0"
style="fill:#3498db" />
<path
d="m 6,3 v 1 1 2 c 0,1.1046 0.8954,2 2,2 h 1 4 2 1 c 1.105,0 2,-0.8954 2,-2 V 5.1562 5 4 3 H 6 z"
transform="translate(0,1028.4)"
id="path10"
inkscape:connector-curvature="0"
style="fill:#2980b9" />
<path
d="m 8,1041.4 c -1.1046,0 -2,0.9 -2,2 v 1.8 3.2 h 12 v -3.2 -1.8 c 0,-1.1 -0.895,-2 -2,-2 H 13 8 z"
id="path12"
inkscape:connector-curvature="0"
style="fill:#ecf0f1" />
<rect
height="1"
width="12"
x="6"
y="1048.4"
id="rect14"
style="fill:#bdc3c7" />
<path
d="m 7,1031.4 v 1 2 c 0,1.1 0.8954,2 2,2 h 1 4 1 c 1.105,0 2,-0.9 2,-2 v -1.9 -0.1 -1 H 7 z"
id="path16"
inkscape:connector-curvature="0"
style="fill:#ecf0f1" />
<path
d="m 8,4 v 2 c 0,0.5523 0.4477,1 1,1 h 1 1 c 0.552,0 1,-0.4477 1,-1 V 4 H 10 8 z"
transform="translate(0,1028.4)"
id="path18"
inkscape:connector-curvature="0"
style="fill:#95a5a6" />
<g
id="g20"
style="fill:#bdc3c7">
<rect
height="1"
transform="translate(0,1028.4)"
width="8"
x="8"
y="15"
id="rect22" />
<rect
height="1"
width="8"
x="8"
y="1045.4"
id="rect24" />
<rect
height="1"
width="4"
x="8"
y="1031.4"
id="rect26" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
enable-background="new 0 0 24 24"
height="17.992001"
id="Layer_1"
version="1.1"
viewBox="0 0 23.99675 17.992001"
width="23.99675"
xml:space="preserve"
inkscape:version="0.48.4 r9939"
sodipodi:docname="checkbox.svg"><metadata
id="metadata9"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs7" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="789"
inkscape:window-height="480"
id="namedview5"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="9.8333333"
inkscape:cx="-7.7288136"
inkscape:cy="8.98175"
inkscape:window-x="10"
inkscape:window-y="24"
inkscape:window-maximized="0"
inkscape:current-layer="Layer_1" /><path
clip-rule="evenodd"
d="m 21.652,0.22125 c -0.293,-0.295 -0.77,-0.295 -1.061,0 L 9.41,11.35025 c -0.293,0.297 -0.771,0.297 -1.062,0 l -4.899,-4.989 c -0.145,-0.148 -0.335,-0.221 -0.526,-0.222 -0.193,-10e-4 -0.389,0.072 -0.536,0.222 l -2.165,1.946 C 0.078,8.45525 0,8.64025 0,8.83325 c 0,0.194 0.078,0.397 0.223,0.544 l 4.94,5.184 c 0.292,0.296 0.771,0.776 1.062,1.07 l 2.124,2.141 c 0.292,0.293 0.769,0.293 1.062,0 l 14.366,-14.34 c 0.293,-0.294 0.293,-0.777 0,-1.071 l -2.125,-2.14 z"
id="path3"
style="fill:#24b993;fill-opacity:1;fill-rule:evenodd"
inkscape:connector-curvature="0" /></svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 634 B

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

49
src/svg/save.svg Executable file
View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
enable-background="new 0 0 512 512"
height="512px"
id="Layer_1"
version="1.1"
viewBox="0 0 512 512"
width="512px"
xml:space="preserve"
inkscape:version="0.48.4 r9939"
sodipodi:docname="1449753614_tick.svg"><metadata
id="metadata3236"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs3234" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1056"
id="namedview3232"
showgrid="false"
inkscape:zoom="1.7753906"
inkscape:cx="146.72827"
inkscape:cy="256"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1" /><path
d="M256,6.998c-137.533,0-249,111.467-249,249c0,137.534,111.467,249,249,249s249-111.467,249-249 C505,118.464,393.533,6.998,256,6.998z M256,485.078c-126.309,0-229.08-102.771-229.08-229.081 c0-126.31,102.771-229.08,229.08-229.08c126.31,0,229.08,102.771,229.08,229.08C485.08,382.307,382.31,485.078,256,485.078z"
fill="#425661"
id="path3228"
style="fill:#1cc952;fill-opacity:1" /><polygon
fill="#425661"
points="384.235,158.192 216.919,325.518 127.862,236.481 113.72,250.624 216.919,353.803 398.28,172.334 "
id="polygon3230"
style="fill:#1cc952;fill-opacity:1" /></svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB