Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| etudiants:2014:jeremy.habit:docuwiki [2014/12/29 15:48] – [Design/ Aperçu] jeremy.habit | etudiants:2014:jeremy.habit:docuwiki [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 261: | Ligne 261: | ||
| </ | </ | ||
| + | == Vue vRecherche == | ||
| + | <sxh php; | ||
| + | <?php echo $script_foot;?> | ||
| + | <div id=" | ||
| + | RECHERCHE | ||
| + | </ | ||
| + | |||
| + | <br> | ||
| + | <form name=" | ||
| + | <div class=" | ||
| + | |||
| + | <img title=" | ||
| + | <input title=" | ||
| + | |||
| + | <div id=" | ||
| + | < | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | < | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | < | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | < | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | < | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | < | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | < | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | <div id=" | ||
| + | |||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | == Vue vResultatRecherche== | ||
| + | |||
| + | <sxh php; | ||
| + | <?php echo $script_foot; | ||
| + | if (empty($tablesNeeded)){ | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <img src="<? | ||
| + | <h1 class=" | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | else{ | ||
| + | ?> | ||
| + | <h1 class=" | ||
| + | <div class=" | ||
| + | <?php | ||
| + | if (in_array(" | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | < | ||
| + | </ | ||
| + | <div class=" | ||
| + | <? | ||
| + | foreach ($documents as $doc){ | ||
| + | echo "< | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | if (in_array(" | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | < | ||
| + | </ | ||
| + | <div class=" | ||
| + | <? | ||
| + | foreach ($groupes as $grp){ | ||
| + | echo "< | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | if (in_array(" | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | < | ||
| + | </ | ||
| + | <div class=" | ||
| + | <? | ||
| + | foreach ($domaines as $dom){ | ||
| + | echo "< | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | if (in_array(" | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | < | ||
| + | <? | ||
| + | </ | ||
| + | </ | ||
| + | <div class=" | ||
| + | <? | ||
| + | foreach ($utilisateurs as $user){ | ||
| + | echo "< | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | if (in_array(" | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | < | ||
| + | </ | ||
| + | <div class=" | ||
| + | <? | ||
| + | foreach ($themes as $thm){ | ||
| + | echo "< | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | if (in_array(" | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | < | ||
| + | </ | ||
| + | <div class=" | ||
| + | <? | ||
| + | foreach ($mondes as $world){ | ||
| + | echo "< | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | ?> | ||
| + | |||
| + | < | ||
| + | $(function() { | ||
| + | $( " | ||
| + | collapsible: | ||
| + | animate: 500, | ||
| + | heightStyle: | ||
| + | active: null | ||
| + | }); | ||
| + | }); | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | == Vue vExecSearch== | ||
| + | |||
| + | <sxh php; | ||
| + | <?php echo @$script_foot; | ||
| + | switch ($type){ | ||
| + | case " | ||
| + | <h1 class=" | ||
| + | <?php if (empty($lstSubElt)){ | ||
| + | ?> | ||
| + | <div class=" | ||
| + | < | ||
| + | <h1 class=" | ||
| + | </ | ||
| + | <? | ||
| + | }else{ | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | < | ||
| + | </ | ||
| + | <div class=" | ||
| + | <?php | ||
| + | foreach($lstSubElt as $user){ | ||
| + | echo "< | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | break; | ||
| + | case " | ||
| + | <h1 class=" | ||
| + | <?php if(empty($lstPartie)){?> | ||
| + | <div class=" | ||
| + | <img src="<? | ||
| + | <h1 class=" | ||
| + | </ | ||
| + | <?php | ||
| + | }else{ | ||
| + | ?> | ||
| + | < | ||
| + | <?php | ||
| + | foreach($lstPartie as $partie){ | ||
| + | ?> | ||
| + | < | ||
| + | < | ||
| + | <? | ||
| + | </ | ||
| + | <? | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | <? | ||
| + | } | ||
| + | break; | ||
| + | case " | ||
| + | <h1 class=" | ||
| + | <?php if (empty($lstSubElt)){ | ||
| + | ?> | ||
| + | <div class=" | ||
| + | < | ||
| + | <h1 class=" | ||
| + | </ | ||
| + | <? | ||
| + | }else{ | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | < | ||
| + | </ | ||
| + | <div class=" | ||
| + | <?php | ||
| + | foreach($lstSubElt as $thm){ | ||
| + | echo "< | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | break; | ||
| + | case " | ||
| + | <h1 class=" | ||
| + | < | ||
| + | </ | ||
| + | <?php | ||
| + | break; | ||
| + | case " | ||
| + | <h1 class=" | ||
| + | <?php if (empty($lstSubElt)){ | ||
| + | ?> | ||
| + | <div class=" | ||
| + | < | ||
| + | <h1 class=" | ||
| + | </ | ||
| + | <? | ||
| + | }else{ | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | < | ||
| + | </ | ||
| + | <div class=" | ||
| + | <?php | ||
| + | foreach($lstSubElt as $doc){ | ||
| + | echo "< | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | break; | ||
| + | case " | ||
| + | <h1 class=" | ||
| + | <?php if (empty($lstSubElt)){ | ||
| + | ?> | ||
| + | <div class=" | ||
| + | < | ||
| + | <h1 class=" | ||
| + | </ | ||
| + | <? | ||
| + | }else{ | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | < | ||
| + | </ | ||
| + | <div class=" | ||
| + | <?php | ||
| + | foreach($lstSubElt as $dom){ | ||
| + | echo "< | ||
| + | } | ||
| + | ?> | ||
| + | </ | ||
| + | </ | ||
| + | <?php | ||
| + | } | ||
| + | break; | ||
| + | } | ||
| + | ?> | ||
| + | |||
| + | < | ||
| + | $(function() { | ||
| + | $( " | ||
| + | collapsible: | ||
| + | animate: 500, | ||
| + | heightStyle: | ||
| + | active: null | ||
| + | }); | ||
| + | }); | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | == Jquery | ||
| + | |||
| + | <sxh php; | ||
| + | function uncheckTout() | ||
| + | { | ||
| + | idTheme=document.getElementById(' | ||
| + | idGroupe=document.getElementById(' | ||
| + | idDocument=document.getElementById(' | ||
| + | idUtilisateur=document.getElementById(' | ||
| + | idDomaine=document.getElementById(' | ||
| + | idTout=document.getElementById(' | ||
| + | idMonde=document.getElementById(' | ||
| + | |||
| + | // si tous les boxes sont cochées, alors on les décoches et on coche " | ||
| + | if(idMonde.checked==true && idTheme.checked==true && idUtilisateur.checked==true && idDocument.checked==true && idGroupe.checked==true && idDomaine.checked==true){ | ||
| + | idTout.checked=true; | ||
| + | idMonde.checked=false; | ||
| + | idTheme.checked=false; | ||
| + | idGroupe.checked=false; | ||
| + | idDocument.checked=false; | ||
| + | idUtilisateur.checked=false; | ||
| + | idDomaine.checked=false; | ||
| + | }else{ // sinon on décoche " | ||
| + | document.getElementById(' | ||
| + | } | ||
| + | |||
| + | if (idMonde.checked==false && idTheme.checked==false && idUtilisateur.checked==false && idDocument.checked==false && idGroupe.checked==false && idDomaine.checked==false && idTout.checked==false){ | ||
| + | idTout.checked=true; | ||
| + | } | ||
| + | |||
| + | } | ||
| + | |||
| + | function checkToutOnly() | ||
| + | { | ||
| + | idTheme=document.getElementById(' | ||
| + | idGroupe=document.getElementById(' | ||
| + | idDocument=document.getElementById(' | ||
| + | idUtilisateur=document.getElementById(' | ||
| + | idDomaine=document.getElementById(' | ||
| + | idTout=document.getElementById(' | ||
| + | idMonde=document.getElementById(' | ||
| + | |||
| + | idGroupe.checked=false; | ||
| + | idDocument.checked=false; | ||
| + | idUtilisateur.checked=false; | ||
| + | idDomaine.checked=false; | ||
| + | idTheme.checked=false; | ||
| + | idMonde.checked=false; | ||
| + | |||
| + | if (idMonde.checked==false && idTheme.checked==false && idUtilisateur.checked==false && idDocument.checked==false && idGroupe.checked==false && idDomaine.checked==false && idTout.checked==false){ | ||
| + | idTout.checked=true; | ||
| + | } | ||
| + | |||
| + | } | ||
| + | |||
| + | // permet la simulation du click sur le bouton recherche via la touche Entrée | ||
| + | document.onkeypress = function (e) { | ||
| + | var enterpressed = e? e.which == 13: window.event.keyCode == 13; | ||
| + | if (enterpressed ){ | ||
| + | document.getElementById(' | ||
| + | return false; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| ===== Design/ Aperçu ===== | ===== Design/ Aperçu ===== | ||
| Ligne 272: | Ligne 677: | ||
| {{: | {{: | ||
| - | Maintenant voici ce qui se passe au click d'un monde : | + | Maintenant voici ce qui se passe au click d'un monde : on a cliqué sur le monde Informatique, |
| {{: | {{: | ||
| - | Et à partir d'ici, si on click sur domaine , voici ce qui se passe : (et ainsi de suite) | + | Et à partir d'ici, si on click sur le domaine |
| {{: | {{: | ||
| - | Sur un document, affiche les parties des documents dans l' | + | Exemple pour un document |
| {{: | {{: | ||