La til endring av databasen og sjekk av ridstreng

This commit is contained in:
Trygve
2025-10-30 23:21:49 +01:00
parent f2ede38dca
commit 5b62326c42
6 changed files with 115 additions and 12 deletions

View File

@@ -48,14 +48,14 @@ include("api/statistics.php");
?>
</div>
<h1>Søk opp løper</h1>
<form action="/api/runner.php" method="GET" hx-boost="true" hx-target="#runner_info" hx-swap="show:none">
<form action="/api/runner.php" method="GET" hx-boost="true" hx-target="#runner" hx-swap="show:none">
<label>
Navn, startnummer eller klubb
<input type="text" name="search" id="search">
</label>
<button type="submit">Søk</button>
</form>
<div id="runner_info" class="profile-card"></div>
<div id="runner" class="profile-card"></div>
<button hx-get="/api/email.php" hx-target="#emails" hx-headers='js:{"password": localStorage.getItem("passord")}'>hent alle eposter</button>
<button hx-get="/api/email.php?course=Kadaverløpet" hx-target="#emails" hx-headers='js:{"password": localStorage.getItem("passord")}'>Hent bare eposter for fullkadavern</button>