{% extends templateTwigParent %} {% set totMoyGroupeSisr = 0 %} {% set totMoyGroupeSlam = 0 %} {% block titreContenu %}Résultats des épreuves{% endblock %} {% block contenu%} {% for message in app.flashes('success') %}{# affichera un message de succès si l'action est réussie #}
Nom | Prénom | {% for e in epreuves %}{{e.libelleCourt}} | {% endfor %}NbPoints | Moy | Admis | ||||
---|---|---|---|---|---|---|---|---|---|
{{er.nom}} | {{er.prenom}} | {% else %} {% if is_granted('ROLE_ADMIN') %}{{er.nom}} | {% else %}{{er.nom}} | {% endif %}{{er.prenom}} | {% endif %} {% set nbPoints = 0 %} {% set codeEpreuve = 0 %} {% for e in epreuves %} {% set codeEpreuve = e.id %} {% for noteEpr in er.noteEpreuves %} {% if noteEpr.epreuve.id == e.id %} {% set notea = noteEpr.note %} {% if e.isoption == 1 %} {% if notea >10 %} {% set nbPoints = nbPoints + (notea -10) %} {% endif %} {% else %} {% set nbPoints = nbPoints + notea * (noteEpr.epreuve.coef) %} {% endif %} {% endif %} {% endfor %}{{notea}} | {% endfor %}{{nbPoints}} | {% set nbPointsTotalSisr = nbPointsTotalSisr + nbPoints %} {% set moyEtudiantSisr = (nbPoints * 20/440 )|round(2, 'ceil') %} {% set totMoyGroupeSisr = totMoyGroupeSisr + moyEtudiantSisr %}{{ moyEtudiantSisr }} | {% if nbPoints >= 220 %}Admis | {% set nbAdmisSisr = nbAdmisSisr + 1 %} {% else %}Non admis | {% endif %}
Moyennes | {% for moy in moySisr %} | {{ moy.note |round(2, 'ceil')}} | {% endfor %}{{(nbPointsTotalSisr / nbSisr) |round(2, 'ceil')}} | {{ (totMoyGroupeSisr / nbSisr)|round(2, 'ceil')}} | {{(nbAdmisSisr * 100 / nbSisr)|round(2, 'ceil')}} % |
Nom | Prénom | {% for e in epreuves %}{{e.libelleCourt}} | {% endfor %}Nb Points | Moy | Admis | |||
---|---|---|---|---|---|---|---|---|
{{er.nom}} | {{er.prenom}} | {% else %}{{er.nom}} | {{er.prenom}} | {% endif %} {% set nbPoints = 0 %} {% for e in epreuves %} {% set notea= '' %} {% for noteEpr in er.noteEpreuves %} {% if noteEpr.epreuve.id == e.id %} {% set notea = noteEpr.note %} {% if e.isoption == 1 %} {% if notea >10 %} {% set nbPoints = nbPoints + (notea -10) %} {% endif %} {% else %} {% set nbPoints = nbPoints + notea * (noteEpr.epreuve.coef) %} {% endif %} {% endif %} {% endfor %}{{notea}} | {% endfor %}{{nbPoints}} | {% set nbPointsTotalSlam = nbPointsTotalSlam + nbPoints %} {% set moyEtudiantSlam = (nbPoints * 20/440 )|round(2, 'ceil') %} {% set totMoyGroupeSlam = totMoyGroupeSlam + moyEtudiantSlam %}{{ moyEtudiantSlam|round(2, 'ceil')}} | {% if nbPoints >= 220 %} {% set nbAdmisSlam = nbAdmisSlam + 1 %}Admis | {% else %}Non admis | {% endif %}
Moyennes | {% for moy in moySlam %} | {{ moy.note |round(2, 'ceil')}} | {% endfor %}{{(nbPointsTotalSlam / nbSlam)|round(2, 'ceil')}} | {{ (totMoyGroupeSlam / nbSlam)|round(2, 'ceil')}} | {{(nbAdmisSlam * 100 / nbSlam)|round(2, 'ceil')}} % |
{% for e in epreuves %} | {{e.libelleCourt}} | {% endfor %}Nb Points | Moy | Admis | |
---|---|---|---|---|---|
Moyennes | {% for moy in moyPromo %} | {{ moy.note|round(2, 'ceil') }} | {% endfor %}{{((nbPointsTotalSisr + nbPointsTotalSlam )/ (nbSisr + nbSlam)) |round(2, 'ceil')}} | {{ ((totMoyGroupeSisr + totMoyGroupeSlam) / (nbSlam+nbSisr))|round(2, 'ceil')}} | {{((nbAdmisSisr + nbAdmisSlam) * 100 / ( nbSisr + nbSlam)) |round(2, 'ceil') }} % |