Merge branch 'redesign2018' of /media/sdb1/gitRepositories/judo into redesign2018
This commit is contained in:
@@ -169,10 +169,24 @@
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
echo("<table>");
|
||||
echo("<tr><th>Name</th><th>Vorname</th><th>Masse</th><th>Platz</th><th>starterId</th><th>fahrtId</th></tr>");
|
||||
|
||||
foreach( $starterData as $starter ){
|
||||
if($starter['type'] != $typeKey) continue;
|
||||
echo("<tr>");
|
||||
$userData = getUserData($mysqli, $starter['userId']);
|
||||
echo("<td>".mb_convert_encoding($userData['name'], 'UTF-8', 'ISO-8859-1')."</td>");
|
||||
echo("<td>".mb_convert_encoding($userData['vorname'], 'UTF-8', 'ISO-8859-1')."</td>");
|
||||
echo("<td>".$starter['masse']."</td>");
|
||||
echo("<td>".$starter['platz']."</td>");
|
||||
echo("<td>".$starter['id']."</td>");
|
||||
echo("<td>".$starter['fahrtId']."</td>");
|
||||
echo("</tr>");
|
||||
}
|
||||
echo("</table>");
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
// $fahrtenData = array();
|
||||
// $fahrtenData = getFahrtenForEvent($mysqli, $eventData['id']);
|
||||
|
||||
@@ -94,19 +94,21 @@
|
||||
|
||||
<h2>Einschreibungen:</h2>
|
||||
<?php if( !empty($_SESSION['login']) ){
|
||||
$wkEventStarterData = getEventsStarterData($mysqli, $eventData['id']);
|
||||
?>
|
||||
<?php $wkEventStarterData = getEventsStarterData($mysqli, $eventData['id']);?>
|
||||
|
||||
<li>Eingeschrieben:
|
||||
<?php
|
||||
$starters = getStarterForEvent($mysqli, $eventData['id']);
|
||||
if( empty($starters) ){
|
||||
$anzahlKaempfer = array_count_values(array_column($starters, 'type'))['1'];
|
||||
$anzahlZuschauer = array_count_values(array_column($starters, 'type'))['2'];
|
||||
// if( empty($starters) ){
|
||||
if( ($anzahlKaempfer+$anzahlZuschauer) <= 0 ){
|
||||
?>
|
||||
Noch hat sich niemand für diesen Wettkampf gemeldet!
|
||||
Noch will niemand zu diesem Wettkampf!
|
||||
<?php
|
||||
}
|
||||
else{
|
||||
echo count($starters);
|
||||
echo($anzahlKaempfer+$anzahlZuschauer);
|
||||
}
|
||||
?>
|
||||
<ul>
|
||||
@@ -139,8 +141,9 @@
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<!--
|
||||
<p>Es sind momentan <?php echo (count($wkEventStarterData) == 0 ? "keine" : count($wkEventStarterData));?> Starter eingeschrieben.</p>
|
||||
-->
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user