Ajout dépendances

This commit is contained in:
xdrm-brackets 2015-12-08 08:17:46 +01:00
parent 4631e095d8
commit 94f438a102
7 changed files with 1116 additions and 0 deletions

77
Consultations.php Executable file
View File

@ -0,0 +1,77 @@
<?php session_start();
require('autoloader.php');
if(!Authentification::checkUser(0)){
header("Location: http://".$_SERVER['HTTP_HOST']."/index.php");
die();
};?>
<!DOCTYPE html>
<html>
<head>
<title>Consultations</title>
<meta charset='utf-8'/>
<meta name='description' value='Site de test'/>
<meta name='author' value='{xdrm} & SeekDaSky'/>
<link rel='stylesheet' href='css/animations.css'/>
<link rel='stylesheet' href='css/global.css'/>
<script type='text/javascript' src='js/adjust.js'></script>
</head>
<body>
<!-- WRAPPER DE LA PAGE -->
<div id='WRAPPER'>
<!-- MENU DE LA PAGE -->
<nav id='MENU'>
<a href='Dashboard.php' id='ICON'></a>
<a href='Dashboard.php' id='dashboard'>Tableau de bord</a>
<a href='Consultations.php' id='consultations' class='active'>Consultations</a>
<a href='Medecins.php' id='medecin'>Gestion des médecins</a>
<a href='Patients.php' id='patient'>Gestion des patients</a>
</nav>
<!-- CONTAINER DE LA PAGE -->
<section id='CONTAINER'>
<!-- FIL D'ARIANE -->
<div id='BREADCRUMB'><a href='Dashboard.php'>Accueil</a> <a href='Consultations.php'>Consultations</a></a> </div>
<article data-title="Saisir un rendez-vous">
<div>
<select id='newRDVPatient'>
<option value='*'>Patients:</option>
<?php $patients = json_decode( file_get_contents('Docs/PatientExemple.json') );
foreach($patients as $PATIENT)
echo "<option value='".$PATIENT->Id."' data-medecin='".$PATIENT->MedecinTraitant."'>".$PATIENT->Nom." ".$PATIENT->Prenom."</option>";
?>
</select>Choix du patient
</div><div>
<select id='newRDVMedecin'>
<option value='*'>Medecins:</option>
<?php $medecins = json_decode( file_get_contents('Docs/MedecinExemple.json') );
foreach($medecins as $MEDECIN)
echo "<option value='".$MEDECIN->Id."'>".$MEDECIN->Nom." ".$MEDECIN->Prenom."</option>";
?>
</select>Le médecin traitant se selectionne par défaut
</div>
</article>
<article data-title="Numéro de sécurité sociale">
<div>
<input type='text' id='inSecu' placeholder='1 99 99 99 999 999 99'>
</div>
</article>
</section>
</div>
<script type='text/javascript' src='js/consultations.js'></script>
</body>
</html>

61
css/animations.css Executable file
View File

@ -0,0 +1,61 @@
/* -WEBKIT */
@-webkit-keyframes shake{
0%{
transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
}
100%{
transform: rotate(20deg);
-moz-transform: rotate(20deg);
-webkit-transform: rotate(20deg);
-ms-transform: rotate(20deg);
-o-transform: rotate(20deg);
}
}
/* -MOZ */
@-moz-keyframes shake{
0%{
transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
}
100%{
transform: rotate(20deg);
-moz-transform: rotate(20deg);
-webkit-transform: rotate(20deg);
-ms-transform: rotate(20deg);
-o-transform: rotate(20deg);
}
}
/* DEFAULT */
@keyframes shake{
0%{
transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
}
100%{
transform: rotate(20deg);
-moz-transform: rotate(20deg);
-webkit-transform: rotate(20deg);
-ms-transform: rotate(20deg);
-o-transform: rotate(20deg);
}
}

9
js/adjust.js Executable file
View File

@ -0,0 +1,9 @@
// on définit le "indexOf" pour <HTMLCollection> et <NodeList>
NodeList.prototype.indexOf = HTMLCollection.prototype.indexOf = function(searchedElement){
for( var i = 0 ; i < this.length ; i++ ) // on parcours la collection
// si on trouve l'élement, on retourne son rang
if( this[i] == searchedElement ) return i;
// si on a rien trouvé, on retourne -1
return -1;
};

48
js/consultations.js Executable file
View File

@ -0,0 +1,48 @@
/* [1] On récupère les 2 <select> de création de RDV
===============================================================*/
var newRDVPatient = document.getElementById('newRDVPatient');
var newRDVMedecin = document.getElementById('newRDVMedecin');
/* [2] Si on a récupéré les 2 <select>, on créé l'évènement de selection dynamique
===============================================================*/
if( newRDVPatient != null && newRDVMedecin != null ){
// on selectionne dynamiquement le médecin traitant associé
newRDVPatient.addEventListener('change', function(e){
var value = e.target.value;
var child = document.querySelector("#newRDVPatient > option[value='"+value+"'][data-medecin]");
// on selectionne le medecin associé
newRDVMedecin.value = child.dataset.medecin;
}, false);
}
/* GESTION DU NUMÉRO DE SÉCU */
var inSecu = document.getElementById('inSecu'); // input du numéro de sécu
var ftSecu = 'x xx xx xx xxx xxx xx'; // format du numéro de sécu
inSecu.addEventListener('keyup', function(e){
// pour chaque caractère
for( var i = 0 ; i < inSecu.value.length ; i++ ){
// [1] si le caractère n'est pas un nombre, on le supprime
if( isNaN(inSecu.value[i]) )
inSecu.value = inSecu.value.slice(0, i).concat( inSecu.value.slice(i+1) );
// [2] si c'est pas un espace mais qu'il en faut un, on met en forme
if( inSecu.value[i] != ' ' && ftSecu[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
inSecu.value = inSecu.value.slice(0, ftSecu.length);
}
}, false);

242
src/icon.svg Executable file
View File

@ -0,0 +1,242 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="398.83533"
height="470.00992"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="icon.svg">
<defs
id="defs4">
<linearGradient
id="linearGradient3915">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3917" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3919" />
</linearGradient>
<linearGradient
id="linearGradient3858">
<stop
id="stop3860"
offset="0"
style="stop-color:#000000;stop-opacity:1;" />
<stop
id="stop3862"
offset="1"
style="stop-color:#ffffff;stop-opacity:1;" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3849">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop3851" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop3853" />
</linearGradient>
<linearGradient
id="linearGradient3839">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop3841" />
<stop
style="stop-color:#797979;stop-opacity:0;"
offset="1"
id="stop3843" />
</linearGradient>
<linearGradient
id="linearGradient3801">
<stop
style="stop-color:#ff7d7d;stop-opacity:1;"
offset="0"
id="stop3803" />
<stop
id="stop3811"
offset="0.5"
style="stop-color:#ff8f8f;stop-opacity:1;" />
<stop
style="stop-color:#ff7d7d;stop-opacity:1;"
offset="1"
id="stop3805" />
</linearGradient>
<linearGradient
id="linearGradient3791">
<stop
style="stop-color:#5983ff;stop-opacity:1;"
offset="0"
id="stop3793" />
<stop
id="stop3799"
offset="0.5"
style="stop-color:#678eff;stop-opacity:1;" />
<stop
style="stop-color:#5983ff;stop-opacity:1;"
offset="1"
id="stop3795" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3839"
id="radialGradient3847"
cx="224.25679"
cy="610.51135"
fx="224.25679"
fy="610.51135"
r="243.34"
gradientTransform="matrix(-0.36600673,0.18927379,0.12974766,0.25089855,648.49807,87.789099)"
gradientUnits="userSpaceOnUse" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3849"
id="radialGradient3855"
cx="369.71875"
cy="496.22061"
fx="369.71875"
fy="496.22061"
r="243.34"
gradientTransform="matrix(1,0,0,0.77233432,0,112.9724)"
gradientUnits="userSpaceOnUse" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3858"
id="radialGradient3868"
cx="369.71875"
cy="496.22061"
fx="369.71875"
fy="496.22061"
r="243.84"
gradientTransform="matrix(1,0,0,0.77280116,0,112.74075)"
gradientUnits="userSpaceOnUse"
spreadMethod="pad" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3915"
id="linearGradient3921"
x1="-113.89503"
y1="425.4726"
x2="672.78918"
y2="448.70612"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3915"
id="linearGradient3339"
gradientUnits="userSpaceOnUse"
x1="-113.89503"
y1="425.4726"
x2="672.78918"
y2="448.70612"
gradientTransform="translate(0,80)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3915"
id="linearGradient3341"
gradientUnits="userSpaceOnUse"
x1="-113.89503"
y1="425.4726"
x2="672.78918"
y2="448.70612"
gradientTransform="translate(-108.37605,-302.26989)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3915"
id="linearGradient3348"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-108.37605,-302.26989)"
x1="-113.89503"
y1="425.4726"
x2="672.78918"
y2="448.70612" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3915"
id="linearGradient3351"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.90815075,-0.4186433,0.4186433,0.90815075,-273.95607,107.66009)"
x1="-113.89503"
y1="425.4726"
x2="672.78918"
y2="448.70612" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.98994949"
inkscape:cx="397.07553"
inkscape:cy="56.842296"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:snap-bbox="true"
inkscape:bbox-nodes="false"
inkscape:object-nodes="true"
inkscape:window-width="1920"
inkscape:window-height="1056"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<metadata
id="metadata7">
<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>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-50.358562,-171.02161)">
<g
id="g3817"
style="stroke:url(#radialGradient3855)"
transform="matrix(0.90815075,-0.4186433,0.4186433,0.90815075,-273.95607,107.66009)" />
<path
style="fill:#5983ff;fill-opacity:1;stroke:none"
d="M 401.08231,191.94161 C 349.70106,155.62754 279.09596,167.78082 242.78188,219.16207 L 162.80915,332.31652 348.28649,463.40398 428.25922,350.24953 C 464.5733,298.86827 452.46358,228.25569 401.08231,191.94161 z"
id="path3779"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path3332"
d="M 151.26596,348.64914 71.293225,461.80359 c -36.314078,51.38127 -24.204354,121.99385 27.176905,158.30792 51.38126,36.31408 121.98635,24.1608 158.30044,-27.22046 L 336.7433,479.7366 151.26596,348.64914 z"
style="fill:#ffba41;fill-opacity:1;stroke:none" />
<path
style="opacity:0.49103944;fill:url(#linearGradient3351);fill-opacity:1;stroke:none"
d="m 510.90144,135.91895 c 0.94816,46.76238 -88.33794,149.4572 -216.49012,245.18329 -16.27094,12.15394 -32.44563,23.6452 -48.42352,34.46942 -75.34897,51.04517 -145.58984,86.43278 -194.931648,99.73628 -0.343322,3.1964 -0.597426,6.39857 -0.667894,9.59875 -0.0802,3.64232 9.73e-4,7.26424 0.270032,10.88691 0.26906,3.62267 0.721324,7.23194 1.335175,10.80882 0.613852,3.57687 1.406891,7.14063 2.361069,10.64559 0.228945,0.84098 0.553681,1.65044 0.802059,2.48634 58.768777,2.88918 154.283987,-34.45767 251.566307,-101.2404 9.8926,-6.79111 19.76593,-13.81867 29.65806,-21.20782 143.92313,-107.50655 229.43674,-236.43037 190.9711,-287.92579 -4.2168,-5.6452 -9.75389,-10.07941 -16.45062,-13.44139 z"
id="path3344"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.0 KiB

544
src/iconBall.svg Executable file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 47 KiB

135
src/patient.svg Normal file
View File

@ -0,0 +1,135 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
width="402.34375"
height="402.34375"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="patient.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.4"
inkscape:cx="308.24654"
inkscape:cy="295.08288"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1920"
inkscape:window-height="1056"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<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>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(211.8125,-298.6875)">
<g
id="g3771"
transform="translate(-520,0)">
<path
inkscape:connector-curvature="0"
id="path2996"
d="m 509.375,298.6875 c -111.10458,0 -201.1875,90.08292 -201.1875,201.1875 0,111.10458 90.08292,201.15625 201.1875,201.15625 111.10458,0 201.15625,-90.05167 201.15625,-201.15625 0,-111.10458 -90.05167,-201.1875 -201.15625,-201.1875 z m 0,17.15625 c 101.63684,0 184.03125,82.39441 184.03125,184.03125 0,101.63684 -82.39441,184 -184.03125,184 -101.63684,0 -184.03125,-82.36316 -184.03125,-184 0,-101.63684 82.39441,-184.03125 184.03125,-184.03125 z"
style="fill:#2c3e50;fill-opacity:1;stroke:none" />
<path
sodipodi:type="arc"
style="fill:#ffd766;fill-opacity:1;stroke:none"
id="path2998"
sodipodi:cx="806.10175"
sodipodi:cy="521.02197"
sodipodi:rx="216.17264"
sodipodi:ry="216.17264"
d="m 1022.2744,521.02197 c 0,119.38885 -96.7838,216.17264 -216.17265,216.17264 -119.38886,0 -216.17264,-96.78379 -216.17264,-216.17264 0,-119.38885 96.78378,-216.17264 216.17264,-216.17264 119.38885,0 216.17265,96.78379 216.17265,216.17264 z"
transform="matrix(0.85130932,0,0,0.85130932,-176.8727,56.308672)" />
</g>
<g
id="g3789"
transform="translate(-380.85491,0)">
<g
id="g3779">
<path
sodipodi:type="arc"
style="fill:#2c3e50;fill-opacity:1;stroke:none"
id="path3775"
sodipodi:cx="297.14285"
sodipodi:cy="447.00504"
sodipodi:rx="37.5"
sodipodi:ry="37.5"
d="m 334.64285,447.00504 c 0,20.71067 -16.78932,37.5 -37.5,37.5 -20.71068,0 -37.5,-16.78933 -37.5,-37.5 0,-20.71068 16.78932,-37.5 37.5,-37.5 20.71068,0 37.5,16.78932 37.5,37.5 z"
transform="translate(1.0714286,-1.4285714)" />
<path
transform="matrix(0.60952381,0,0,0.60952381,117.09864,173.11625)"
d="m 334.64285,447.00504 c 0,20.71067 -16.78932,37.5 -37.5,37.5 -20.71068,0 -37.5,-16.78933 -37.5,-37.5 0,-20.71068 16.78932,-37.5 37.5,-37.5 20.71068,0 37.5,16.78932 37.5,37.5 z"
sodipodi:ry="37.5"
sodipodi:rx="37.5"
sodipodi:cy="447.00504"
sodipodi:cx="297.14285"
id="path3777"
style="fill:#ffffff;fill-opacity:1;stroke:none"
sodipodi:type="arc" />
</g>
<g
transform="translate(144,0)"
id="g3783">
<path
transform="translate(1.0714286,-1.4285714)"
d="m 334.64285,447.00504 c 0,20.71067 -16.78932,37.5 -37.5,37.5 -20.71068,0 -37.5,-16.78933 -37.5,-37.5 0,-20.71068 16.78932,-37.5 37.5,-37.5 20.71068,0 37.5,16.78932 37.5,37.5 z"
sodipodi:ry="37.5"
sodipodi:rx="37.5"
sodipodi:cy="447.00504"
sodipodi:cx="297.14285"
id="path3785"
style="fill:#2c3e50;fill-opacity:1;stroke:none"
sodipodi:type="arc" />
<path
sodipodi:type="arc"
style="fill:#ffffff;fill-opacity:1;stroke:none"
id="path3787"
sodipodi:cx="297.14285"
sodipodi:cy="447.00504"
sodipodi:rx="37.5"
sodipodi:ry="37.5"
d="m 334.64285,447.00504 c 0,20.71067 -16.78932,37.5 -37.5,37.5 -20.71068,0 -37.5,-16.78933 -37.5,-37.5 0,-20.71068 16.78932,-37.5 37.5,-37.5 20.71068,0 37.5,16.78932 37.5,37.5 z"
transform="matrix(0.60952381,0,0,0.60952381,117.09864,173.11625)" />
</g>
</g>
<path
style="fill:#2c3e50;fill-opacity:1;stroke:#3e4fff;stroke-width:18.78910828;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:0;stroke-dasharray:none;stroke-dashoffset:0"
d="m -12.934087,536.82364 c -47.821904,0.87546 -86.199906,29.16887 -86.199906,63.93501 0,3.51399 0.3874,6.9618 1.141975,10.32176 6.829435,-30.4101 43.32737,-53.61325 87.341877,-53.61325 44.014507,0 80.531478,23.20315 87.360909,53.61325 0.754575,-3.35996 1.141975,-6.80777 1.141975,-10.32176 0,-35.31797 -39.625286,-63.93501 -88.502884,-63.93501 -0.763715,0 -1.524866,-0.0139 -2.283946,0 z"
id="path4051"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.8 KiB