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

This commit is contained in:
Lucas Mascaro 2015-12-03 11:51:00 +01:00
commit 7bce4e9471
14 changed files with 1523 additions and 14 deletions

View File

@ -37,6 +37,20 @@ if(!Authentification::checkUser(0)){
<!-- FIL D'ARIANE --> <!-- FIL D'ARIANE -->
<div id='BREADCRUMB'><a href='Dashboard.php'>Accueil</a> <a href='Test1.php'>Test1</a> <a href='test2.php'>test2</a> </div> <div id='BREADCRUMB'><a href='Dashboard.php'>Accueil</a> <a href='Test1.php'>Test1</a> <a href='test2.php'>test2</a> </div>
<article data-title="Saisir un rendez-vous">
<div>
<select id='newRDVPatient'>
<?php $patients = json_decode( file_get_contents('Docs/PatientExemple.json') );
foreach($patients as $PATIENT)
echo "<option value='".$PATIENT->Id."'>".$PATIENT->Nom." ".$PATIENT->Prenom."</option>";
?>
</select>
</div><div>
</div>
</article>
</section> </section>
</div> </div>

0
Docs/BDD.sql Normal file → Executable file
View File

0
Docs/Model.mwb Normal file → Executable file
View File

1302
Docs/PatientExemple.json Executable file

File diff suppressed because it is too large Load Diff

20
Docs/generatePatients Executable file
View File

@ -0,0 +1,20 @@
[
'{{repeat(100)}}',
{
Id: '{{index()}}',
// retourne 'M' ou 'F' aléatoirement
Civilite: function(tags){ return (tags.gender() == 'female') ? 'F' : 'M'; },
Nom: function(tags){ return tags.surname().toUpperCase(); },
Prenom: function(tags){ return tags.firstName(); },
Adresse: '{{integer(100, 999)}} {{street()}}, {{city()}}, {{state()}}',
Ville: '{{state()}}',
CodePostal: function(tags){ return String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10)); },
DateNaissance: '{{date(new Date(random(1900,2000), random(1,12), random(0,28)), new Date(), "YYYY-MM-dd")}}',
LieuNaissance: '{{state()}}',
NumSecuriteSociale: function(tags){
return ((this.Civilite=='M')?'1':'2') + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10));
},
MedecinTraitant: '{{random(1,100)}}'
}
]

View File

@ -183,3 +183,67 @@ body{
background-image: url(../src/home.svg); background-image: url(../src/home.svg);
background-size: auto 100%; background-size: auto 100%;
} }
/******************************/
/* ARTICLES (cadres internes) */
/******************************/
#CONTAINER > article[data-title]{
/* position */
display: block;
position: relative;
width: calc( 100% - 2*2em );
margin: 2em;
/* border */
border: 1px solid #f09108;
}
#CONTAINER > article[data-title]:before{
content: attr(data-title);
/* position */
display: block;
position: relative;
margin-top: -2.5em;
margin-left: -1px;
width: calc( 100% - .5em - 2em );
padding: .5em;
padding-left: 2em;
/* border */
border: 1px solid #f09108;
/* background */
background: #f09108 url(../src/title-gears.svg) left .5em center no-repeat;
background-size: 1em auto;
/* foreground */
color: #fff;
}
/* <SELECT> */
#CONTAINER > article select{
/* position */
display: inline-block;
position: relative;
margin: 1em;
padding: .3em;
padding-right: 2em;
/* border */
border: 1px solid #e5e5e5;
/* background */
background: #f6f4f2 url(../src/down-arrow.svg) right .5em center no-repeat;
background-size: 1em auto;
/* <select> */
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
-o-appearance: none;
}

0
repositories/repos/MedecinRepo.php Normal file → Executable file
View File

0
repositories/repos/PatientRepo.php Normal file → Executable file
View File

0
repositories/repos/RDVRepo.php Normal file → Executable file
View File

0
repositories/repos/StatsRepo.php Normal file → Executable file
View File

0
src/Response.php Normal file → Executable file
View File

68
src/down-arrow.svg Executable file
View File

@ -0,0 +1,68 @@
<?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="70.991997"
height="40.608002"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="down-arrow.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6"
inkscape:cx="-6.684364"
inkscape:cy="11.830808"
inkscape:document-units="px"
inkscape:current-layer="text3146"
showgrid="false"
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(94.896273,-537.2856)">
<g
style="font-size:144px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#666666;fill-opacity:1;stroke:none;font-family:Latin Modern Mono Light Cond;-inkscape-font-specification:Latin Modern Mono Light Cond"
id="text3146">
<path
d="m -59.472273,577.8936 c 1.29599,0 2.448,-1.296 3.024,-1.872 l 31.104,-33.12 c 0.576,-0.72 1.44,-1.728 1.44,-2.448 0,-1.152 -1.00801,-3.168 -3.456,-3.168 -1.152,0 -2.448,1.296 -3.168,2.016 l -28.8,30.816 -28.944,-30.816 c -0.72,-0.72 -2.01601,-2.016 -3.168,-2.016 -2.448,0 -3.456,2.016 -3.456,3.168 l 0.144,0.288 c 0,0.432 0.144,0.72 0.288,1.008 l 31.968,34.272 c 0.72,0.864 1.728,1.872 3.024,1.872"
id="path2985"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -14,7 +14,7 @@
id="svg2" id="svg2"
version="1.1" version="1.1"
inkscape:version="0.48.4 r9939" inkscape:version="0.48.4 r9939"
sodipodi:docname="Nouveau document 1"> sodipodi:docname="right-arrow.svg">
<defs <defs
id="defs4" /> id="defs4" />
<sodipodi:namedview <sodipodi:namedview
@ -26,9 +26,9 @@
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="5.6" inkscape:zoom="5.6"
inkscape:cx="-21.876364" inkscape:cx="-21.876364"
inkscape:cy="-22.977195" inkscape:cy="30.012136"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:current-layer="layer1" inkscape:current-layer="text3146"
showgrid="false" showgrid="false"
inkscape:window-width="1920" inkscape:window-width="1920"
inkscape:window-height="1056" inkscape:window-height="1056"
@ -47,7 +47,7 @@
<dc:format>image/svg+xml</dc:format> <dc:format>image/svg+xml</dc:format>
<dc:type <dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title> <dc:title />
</cc:Work> </cc:Work>
</rdf:RDF> </rdf:RDF>
</metadata> </metadata>
@ -56,16 +56,13 @@
inkscape:groupmode="layer" inkscape:groupmode="layer"
id="layer1" id="layer1"
transform="translate(79.704273,-522.0936)"> transform="translate(79.704273,-522.0936)">
<text <g
xml:space="preserve"
style="font-size:144px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#666666;fill-opacity:1;stroke:none;font-family:Latin Modern Mono Light Cond;-inkscape-font-specification:Latin Modern Mono Light Cond" style="font-size:144px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#666666;fill-opacity:1;stroke:none;font-family:Latin Modern Mono Light Cond;-inkscape-font-specification:Latin Modern Mono Light Cond"
x="-84.600273" id="text3146">
y="601.5816" <path
id="text3146" d="m -39.096273,557.6616 c 0,-1.29599 -1.296001,-2.448 -1.872,-3.024 l -33.12,-31.104 c -0.719999,-0.576 -1.728001,-1.44 -2.448,-1.44 -1.151999,0 -3.168,1.00801 -3.168,3.456 0,1.152 1.296001,2.448 2.016,3.168 l 30.816,28.8 -30.816,28.944 c -0.719999,0.72 -2.016,2.01601 -2.016,3.168 0,2.448 2.016001,3.456 3.168,3.456 l 0.288,-0.144 c 0.431999,0 0.72,-0.144 1.008,-0.288 l 34.272,-31.968 c 0.863999,-0.72 1.872,-1.728 1.872,-3.024"
sodipodi:linespacing="125%"><tspan style=""
sodipodi:role="line" id="path2985" />
id="tspan3148" </g>
x="-84.600273"
y="601.5816">&gt;</tspan></text>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

44
src/title-gears.svg Executable file
View File

@ -0,0 +1,44 @@
<?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="76.232px"
id="Layer_1"
style="enable-background:new 0 0 78.197 76.232;"
version="1.1"
viewBox="0 0 78.197 76.232"
width="78.197px"
xml:space="preserve"
inkscape:version="0.48.4 r9939"
sodipodi:docname="title-gears.svg"><metadata
id="metadata3039"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
id="defs3037" /><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="namedview3035"
showgrid="false"
inkscape:zoom="11.924126"
inkscape:cx="39.098499"
inkscape:cy="38.116001"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1" /><path
d="M78.197,37.708l-3.726-16.331l-9.873-1.097l-2.511-3.15l1.131-9.865L48.122,0l-7.008,7.028h-4.031 L30.073,0L14.979,7.266l1.131,9.865l-2.511,3.15l-9.873,1.097L0,37.708l8.413,5.271l0.898,3.928l-5.299,8.397l10.45,13.098 l9.365-3.293l3.632,1.749l3.262,9.375h16.754l3.262-9.375l3.632-1.749l9.365,3.293l10.45-13.098l-5.299-8.397l0.897-3.928 L78.197,37.708z M66.833,54.897l-5.13,6.43l-7.693-2.705l-8.12,3.911l-2.68,7.699h-8.223l-2.68-7.699l-8.12-3.911l-7.693,2.705 l-5.13-6.43L15.717,48l-2.01-8.784l-6.908-4.329l1.829-8.017l8.109-0.901l5.617-7.046l-0.93-8.101l7.41-3.567l5.758,5.773h9.012 l5.757-5.773l7.411,3.566l-0.93,8.101l5.617,7.046l8.109,0.901l1.829,8.017l-6.91,4.329L62.481,48L66.833,54.897z M39.099,23.587 c-8.286,0-15,6.713-15,15s6.714,15,15,15s15-6.713,15-15S47.385,23.587,39.099,23.587z M39.099,49.087c-5.79,0-10.5-4.71-10.5-10.5 s4.71-10.5,10.5-10.5s10.5,4.71,10.5,10.5S44.889,49.087,39.099,49.087z"
style="fill:#ffffff"
id="path3033" /></svg>

After

Width:  |  Height:  |  Size: 2.4 KiB