Skip to content
Extraits de code Groupes Projets
Valider 52f914ef rédigé par nicod@lerebooteux.fr's avatar nicod@lerebooteux.fr
Parcourir les fichiers

Une vue pour l'analyse des réponses aux grilles de questions

parent 27057e63
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -155,6 +155,7 @@ saisies-analyses/_base.html -text ...@@ -155,6 +155,7 @@ saisies-analyses/_base.html -text
saisies-analyses/auteurs.html -text saisies-analyses/auteurs.html -text
saisies-analyses/case.html -text saisies-analyses/case.html -text
saisies-analyses/checkbox.html -text saisies-analyses/checkbox.html -text
saisies-analyses/choix_grille.html -text
saisies-analyses/destinataires.html -text saisies-analyses/destinataires.html -text
saisies-analyses/explication.html -text saisies-analyses/explication.html -text
saisies-analyses/fichiers.html -text saisies-analyses/fichiers.html -text
......
...@@ -88,3 +88,22 @@ ...@@ -88,3 +88,22 @@
background-image: -o-linear-gradient(top, #a5df41, #4ca916); background-image: -o-linear-gradient(top, #a5df41, #4ca916);
background-image: linear-gradient(top, #a5df41, #4ca916); background-image: linear-gradient(top, #a5df41, #4ca916);
} }
/* styles pour les grilles de questions */
.grille_libelle td {
background: white !important;
font-weight: bold;
}
.grille_libelle_top td {
padding-top: 1em;
padding-bottom: 0;
}
.grille_libelle_bottom td {
padding-top: 0;
padding-bottom: 1em;
}
.grille_choix td {
padding-top: .3462em;
padding-bottom: .3462em;
}
\ No newline at end of file
<paquet <paquet
prefix="formidable" prefix="formidable"
categorie="communication" categorie="communication"
version="3.36.6" version="3.36.7"
etat="stable" etat="stable"
compatibilite="[3.0.0;3.2.*]" compatibilite="[3.0.0;3.2.*]"
logo="images/formidable-64.png" logo="images/formidable-64.png"
......
#SET{data_cols, #ENV*{data_cols}|saisies_chaine2tableau}
#SET{data_rows, #ENV*{data_rows}|saisies_chaine2tableau}
<BOUCLE_questions(DATA) {source table, #GET{data_rows}}>
#SET{libelles, #VALEUR|explode{'|'}}
#SET{choix_question, #CLE}
#SET{total_reponses,#ARRAY}
<tr class="grille_libelle grille_libelle_top">
<td>&nbsp;</td>
<td>[(#GET{libelles/0})]</td>
</tr>
<BOUCLE_valeurs(DATA) {source table, #ENV{valeurs}}>
#SET{reponse,#VALEUR}
<BOUCLE_choix(DATA) {source table, #GET{data_cols}}>
[(#ENV{multiple}|non)
[(#GET{reponse}|table_valeur{#GET{choix_question}}|=={#CLE}|oui)
#SET{nbplus, #GET{total_reponses}|table_valeur{#CLE}|plus{1}}
#SET_MERGE{total_reponses,#GET{total_reponses},#ARRAY{#CLE,#GET{nbplus}}}
]
]
[(#ENV{multiple}|oui)
#SET{valeurs, #GET{reponse}|table_valeur{#GET{choix_question}}}
[(#GET{valeurs}|is_array|oui)
[(#CLE|in_array{#GET{valeurs}}|oui)
#SET{nbplus, #GET{total_reponses}|table_valeur{#CLE}|plus{1}}
#SET_MERGE{total_reponses,#GET{total_reponses},#ARRAY{#CLE,#GET{nbplus}}}
]
]
]
</BOUCLE_choix>
</BOUCLE_valeurs>
<BOUCLE_choix_affichage(DATA) {source table, #GET{data_cols}}>
<tr class="grille_choix">
<td class="choix">#VALEUR</td>
<td class="stat"[ title="(#GET{total_reponses}|table_valeur{#CLE}|titre_nb_reponses|attribut_html)"]>[(#GET{total_reponses}|table_valeur{#CLE})]</td>
</tr>
</BOUCLE_choix_affichage>
[<tr class="grille_libelle grille_libelle_bottom">
<td>&nbsp;</td>
<td>(#GET{libelles/1})</td>
</tr>]
</BOUCLE_questions>
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter