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
+2
View File
@@ -0,0 +1,2 @@
<section class="card"><div class="section-head"><div><h2>Joueurs</h2><a href="/staff">Gérer le staff et les rôles</a><p>Une seule fiche par numéro de personne FFF, y compris pour un joueur également membre du staff. L’équipe habituelle ne limite pas ses possibilités de reprise.</p></div><label>Rechercher<input type="search" data-filter="#players-table" placeholder="Nom, licence, catégorie…"></label></div><?php require __DIR__.'/roster_filters.php'; ?><p class="badge-legend">MN : mutation normale · MH : hors période · 🟥 : suspension pour l’équipe de contrôle · 🟨🟨 : risque au prochain jaune. Cliquer sur un badge pour le détail.</p><p>Badges au <?=e((new DateTimeImmutable($badgeDate))->format('d/m/Y'))?>. L’équipe de contrôle est indiquée sous le nom ; elle est indépendante du filtre de liste. La validation complète reste dans « Préparer match ».</p><div class="table-wrap"><table id="players-table"><thead><tr><th>Licencié</th><th>Profil / fonction</th><th>Personne FFF / licences</th><th>Catégorie</th><th>Équipe habituelle</th><th>Statut</th><th></th></tr></thead><tbody><?php $tm=options($teams,'short_name');foreach($roster as $p): $pb=$registryBadges[$p['id']]; ?><tr><td><strong><?=e($p['last_name'].' '.$p['first_name'])?></strong> <?=\App\PlayerBadges::html($pb['badges'])?><small><?=$pb['team_id']?'Suspension : '.e($pb['team_name']):'Suspension non évaluée : choisir une équipe de contrôle'?></small></td><td><?=e(\App\Sports::MEMBER_ROLES[$p['member_role']]??'Joueur')?><?php foreach($roleIndex[$p['id']]??[] as $a): ?><small><?=e($a['name'].' · '.($a['short_name']??'Club'))?></small><?php endforeach ?><?php if($p['staff_function']): ?><small><?=e($p['staff_function'])?></small><?php endif ?></td><td><?=e($p['person_number']??'À rattacher')?><?php foreach($personLicences[$p['id']]??[] as $lic): ?><small><?=e($lic['season'].' · '.$lic['licence_type'].' · '.$lic['licence_number'])?></small><?php endforeach ?></td><td><?=e($p['category'])?></td><td><?=e($tm[$p['usual_team_id']]??'—')?></td><td><?=$p['active']?'Actif':'Inactif'?></td><td><?php if($write): ?><a href="/players?id=<?=$p['id']?>#edit">Modifier</a> · <?php endif ?><a href="/check?id=<?=$p['id']?>&amp;date=<?=e($badgeDate)?><?=$pb['team_id']?'&amp;team_id='.$pb['team_id']:''?>">Suspensions</a> · <a href="/licences?player_id=<?=$p['id']?>">Licences</a></td></tr><?php endforeach ?></tbody></table></div><?php if(!$roster): ?><p class="empty">Importez votre export des licenciés ou ajoutez un premier licencié.</p><?php endif ?></section>
<?php require __DIR__.'/person_edit.php'; ?>