medals and places, plus sort
This commit is contained in:
@@ -239,7 +239,7 @@ if(isset($_GET['write_success'])){
|
||||
<p><a href="https://mapy.cz/s/lefagekono" target="_new"><img src="./img/gpx_freeride.jpg" alt="freeride_trasa_gpx" class="w3-image"><br>
|
||||
TRASA // MAPA</a></p>
|
||||
<h3>Registrovaní</h3>
|
||||
<table class="w3-table w3-striped w3-bordered w3-border w3-white"><tr><th>ID</th><th>Přezdívka / Team</th><th>Závod</th><th>Čas</th><th>Místo</th></tr>
|
||||
<table class="w3-table w3-striped w3-bordered w3-border w3-white"><tr><th>ID</th><th>Přezdívka / Team</th><th>Čas</th><th>Místo</th></tr>
|
||||
<?
|
||||
if($reg_racers_1 != null){
|
||||
$place = 1;
|
||||
@@ -248,7 +248,7 @@ if(isset($_GET['write_success'])){
|
||||
if($place == 1) $medal = '<img src="./img/1st.jpg" class="w3-image" width="20">';
|
||||
if($place == 2) $medal = '<img src="./img/2nd.jpg" class="w3-image" width="20">';
|
||||
if($place == 3) $medal = '<img src="./img/3rd.jpg" class="w3-image" width="20">';
|
||||
echo '<tr><td>'.$racer['ID'].'</td><td>'.$racer["NICK"].'</td><td>'.$racer["RACE"].'</td><td>'.$racer["TIME"].'</td><td>'.$place.'. '.$medal.'</td></tr>';
|
||||
echo '<tr><td>'.$racer['ID'].'</td><td>'.$racer["NICK"].'</td><td>'.$racer["TIME"].'</td><td>'.$place.'. '.$medal.'</td></tr>';
|
||||
$place++;
|
||||
$medal = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user