»,
‘initial’ => ’20’,
‘city’ => », // ex: Royan (facultatif)
], $atts, ‘inscription_concours’);
$email = is_email(trim($atts[’email’])) ? trim($atts[’email’]) : »;
$initial = max(0, intval($atts[‘initial’]));
if ($initial === 0) { $initial = 20; }
$pref_city = sanitize_text_field($atts[‘city’]);
// — Données
$cities = [
‘Loudéac’,
‘Lampertheim’,
‘Royan’,
‘Château-Gontier’,
‘Lannemezan’,
‘Réquista’,
‘Crêches-sur-Saône’,
‘Mouans-Sartoux’,
‘Noyon’,
];
$categories = [« », « A », « P », « OP », « S », « OB », « B », « AS », « G », « T », « SX »];
// — Marqueurs uniques (si plusieurs shortcodes sur la même page)
$uid = uniqid(‘fc_’, false);
ob_start();
?>
<div id=" » class= »fc-inscription » style= »margin:16px 0″
data-initial= » »>
<form action=" » method= »POST »
onsubmit= » »>
#, # * { box-sizing: border-box; }
# .bloc{border:1px solid #e5e7eb;border-radius:10px;padding:12px;margin-bottom:12px;background:#fff}
# h3{margin:0 0 8px 0;font:600 15px/1.2 system-ui}
# label{display:block;font:500 12px/1.2 system-ui;color:#6b7280;margin:6px 0 4px}
# input,# select{width:100%;padding:6px 8px;border:1px solid #e5e7eb;border-radius:8px;font:13px/1.25 system-ui}
# .grid{display:grid;gap:10px}
# .g2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media (max-width:800px){ # .g2{grid-template-columns:1fr} }
# .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e5e7eb;border-radius:10px}
# table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;table-layout:fixed}
# thead th{position:sticky;top:0;z-index:1;background:#f8fafc;text-align:left;padding:10px 8px;font:600 12px system-ui;border-bottom:1px solid #e5e7eb;white-space:nowrap}
# tbody td{border-bottom:1px solid #f1f5f9;padding:6px 4px;vertical-align:middle}
# tbody tr:last-child td{border-bottom:none}
# .num{width:40px;text-align:center;color:#6b7280;font-variant-numeric:tabular-nums;font-size:12px}
# col.num{width:44px}
# col.nom{width:200px}
# col.prenom{width:160px}
# col.sexe{width:80px}
# col.categorie{width:160px}
# col.morceau{width:auto}
# .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
# button{cursor:pointer;padding:10px 14px;border-radius:10px;border:1px solid #e5e7eb;background:#eff6ff;font:600 14px;color:#1d4ed8}
# .secondary{background:#fff;color:#111827}
@media print{
# .actions{display:none}
# .table-wrap{overflow:visible;border:none}
# table{min-width:100%}
# thead th{background:#eee !important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
Informations concours
<select id="_ville » name= »ville » required>
<option >
Professeur
<input id="_prof_nom » name= »prof_nom » type= »text » required>
<input id="_prof_prenom » name= »prof_prenom » type= »text » required>
<input id="_adresse » name= »adresse » type= »text » placeholder= »Rue, CP, Ville »>
<input id="_mail » name= »mail » type= »email » placeholder= »exemple@domaine.fr » required>
Nom des élèves (en MAJUSCULES)
| # | NOM | PRÉNOM | M/F | CATÉGORIE * | MORCEAU IMPOSÉ |
|---|
Réinitialiser
Envoyer l’inscription
