Files
2026-11-11 09:24:28 +01:00

3 lines
2.2 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<section class="card"><h2>Participations par personne et par équipe</h2><form method="get" action="/stats"><div class="form-grid"><?=field('season','Année de début de saison',$season,'number',true)?><?=selectField('official','Rencontres',[1=>'Officielles uniquement',0=>'Toutes les rencontres'],$official?1:0)?></div><button>Afficher</button></form><p><strong><?=$coverage?> match(s) avec une composition importée</strong> pour la saison <?=e($season.'/'.((int)$season+1))?>. Les statistiques couvrent uniquement les FMI validées. Un zéro ne prouve pas l’absence de participation sur les matchs non importés.</p><p>Un remplaçant qui n’est pas entré en jeu ne compte pas comme participant. Ces totaux sont des statistiques ; les restrictions de participation en équipe inférieure ne sont pas encore calculées.</p><label>Rechercher<input type="search" data-filter="#stats-table" placeholder="Nom ou numéro personne"></label><div class="table-wrap"><table id="stats-table"><thead><tr><th>Personne</th><?php foreach($teams as $t): ?><th><?=e($t['short_name'])?></th><?php endforeach ?><th>Total joué</th><th>Titularisations</th><th>Entrées comme remplaçant</th></tr></thead><tbody><?php foreach($matrix as $pid=>$p): ?><tr><td><a href="/stats?season=<?=e($season)?>&amp;official=<?=$official?1:0?>&amp;id=<?=$pid?>"><?=e($p['name'])?></a><small><?=e($p['person_number'])?></small></td><?php foreach($teams as $t): ?><td><?=$p['teams'][$t['short_name']]??0?></td><?php endforeach ?><td><?=$p['total']?></td><td><?=$p['starts']?></td><td><?=$p['total']-$p['starts']?></td></tr><?php endforeach ?></tbody></table></div></section>
<?php if($id): ?><section class="card"><h2>Détail des feuilles importées pour <?=e($matrix[$id]['name']??'cette personne')?></h2><table><thead><tr><th>Date</th><th>Équipe</th><th>Adversaire / compétition</th><th>Participation</th><th>Source</th></tr></thead><tbody><?php foreach($details as $d): ?><tr><td><?=e($d['match_date'])?></td><td><?=e($d['short_name'])?></td><td><?=e($d['opponent'].' · '.$d['competition'])?></td><td><?=e(!$d['participated']?'N’a pas participé':($d['starter']?'Titulaire':'Entré en jeu'))?></td><td><a href="/fmi/pdf?id=<?=$d['upload_id']?>">FMI PDF</a></td></tr><?php endforeach ?></tbody></table></section><?php endif ?>