Registrer ukjent startnummer

This commit is contained in:
Trygve 2025-10-28 20:58:03 +01:00
parent b86be61331
commit 604fb365c6

View File

@ -33,6 +33,11 @@ function registration_table($runners) {
}
$runners = $runners_filtered;
}
if (count($runners) == 0) {
$runner_id = $query["filter"];
$response = "<div class=\"flash default\">Fant ingen løper med dette startnummeret. Registrer likevell? <button onclick=\"register_runner($runner_id)\">Registrer startnummer $runner_id ✓</button></div>";
echo($response);
} else {
@ -72,6 +77,7 @@ function registration_table($runners) {
}
echo("</tbody>");
}
}
function participants_table($runners) {
usort($runners, "cmp_course");