Initial clean version

This commit is contained in:
root
2026-11-11 09:24:28 +01:00
commit ab58b33f9c
156 changed files with 5697 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
<?php require __DIR__.'/calendar_alerts.php'; ?>
<div class="stats"><article><span>Joueurs actifs</span><strong><?=count(array_filter($players,fn($p)=>$p['active']))?></strong></article><article><span>Équipes</span><strong><?=count($teams)?></strong></article><article><span>Matchs sur la période</span><strong><?=count($matches)?></strong></article></div>
<section class="card"><div class="section-head"><div><h2>Préparer les prochains matchs</h2><p>Du <?=e($from)?> au <?=e($to)?> · Cliquez sur un statut pour voir le calcul.</p></div><form method="get" class="inline"><?=field('from','À partir du',$from,'date',true)?><button>Afficher</button></form></div>
<div class="legend"><?=badge('available')?> <?=badge('blocked')?> <?=badge('review')?></div><p class="muted">« Contrôle nécessaire » signale uniquement un problème propre à la personne. Les données anciennes ou non confirmées sont indiquées séparément ci-dessous.</p>
<?php if(!$matches): ?><div class="empty">Aucun match sur la période. Actualisez les calendriers pour commencer les contrôles.</div><?php else: ?>
<?php $shown=[];foreach($matches as $m):$tid=(int)$m['team_id'];if(isset($shown[$tid])||!$contexts[$tid]['warnings'])continue;$shown[$tid]=true; ?><div class="notice warning"><strong><?=e($m['short_name'])?> : données à actualiser</strong><ul><?php foreach($contexts[$tid]['warnings'] as $w): ?><li><?=e($w)?></li><?php endforeach ?></ul></div><?php endforeach ?>
<div class="table-wrap"><table><thead><tr><th>Joueur / licence</th><?php foreach($matches as $m): ?><th><?=e($m['short_name'])?> · <?=e($m['match_date'])?><small><?=e($m['opponent'])?> · <?=e(\App\Sports::MATCH_STATUSES[$m['status']])?></small><a href="/squad?match_id=<?=$m['id']?>">Préparer le groupe →</a></th><?php endforeach ?></tr></thead><tbody>
<?php foreach($players as $p): if(!$p['active'])continue; ?><tr><td><strong><?=e($p['last_name'].' '.$p['first_name'])?></strong><small><?=e($p['licence_number'])?></small></td><?php foreach($matches as $m): $c=\App\Eligibility::check($p,(int)$m['team_id'],$m['match_date'],$contexts[$m['team_id']]); ?><td><a href="/check?id=<?=$p['id']?>&amp;team_id=<?=$m['team_id']?>&amp;date=<?=e($m['match_date'])?>"><?=badge($c['status'])?></a></td><?php endforeach ?></tr><?php endforeach ?></tbody></table></div><?php endif ?></section>
<?php if($matches): ?><form method="post" action="/reports/create"><?=csrf()?><input type="hidden" name="from" value="<?=e($from)?>"><input type="hidden" name="to" value="<?=e($to)?>"><label class="check"><input type="checkbox" name="include_ten" value="1"> Ajouter le contrôle des +10 matchs pour E2, E3 et E4</label><button>Générer le rapport de la période</button></form><?php endif ?>
<p class="muted">Une disponibilité future repose sur les matchs déjà comptabilisés. Aucun match à venir n’est considéré comme purgé à l’avance.</p>