Files
ESBSC-CONVOC/templates/details.php
T
2026-11-11 09:24:28 +01:00

4 lines
843 B
PHP

<?php if($c['warnings']): ?><h3>Point concernant cette personne</h3><ul class="warnings"><?php foreach($c['warnings'] as $w): ?><li><?=e($w)?></li><?php endforeach ?></ul><?php endif ?>
<?php foreach($c['details'] as $detail): $s=$detail['sanction']; ?><div class="detail"><strong><?=e($s['label'])?></strong><p>Décision #<?=$s['id']?> · effet <?=e($s['effective_date'])?> · <?=e($detail['note'])?></p><?php if($detail['matches']): ?><ul><?php foreach($detail['matches'] as $pm): ?><li><?=e($pm['match_date'])?> · <?=e($pm['opponent'])?> · réf. <?=e($pm['fff_match_id'])?></li><?php endforeach ?></ul><?php else: ?><small>Aucun match de purge retenu pour cette décision.</small><?php endif ?></div><?php endforeach ?>
<?php if(!$c['details']): ?><p class="muted">Aucune sanction applicable enregistrée à cette date.</p><?php endif ?>