-
Notifications
You must be signed in to change notification settings - Fork 1
/
startliste.php
64 lines (52 loc) · 1.5 KB
/
startliste.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
function showStartliste() {
$rennen = $_GET['id'];
$_SESSION['rID'] = $rennen;
$_SESSION['contentFunc'] = $_GET['func'];
$rd = getRennenData($rennen);
$sql = "SELECT t.*, l.titel FROM `teilnehmer` as t INNER JOIN lauf as l ON t.lID = l.ID ".
"where t.vID = ".$_SESSION['vID']." ".
"and t.lid = $rennen and del= 0 ".
"order by stnr asc;";
$result = dbRequest($sql, 'SELECT');
?>
<h3 class="sub-header">Startliste <small><?php echo $rd['titel']; ?></small> <a onclick="javascript:clearContent(); return false;" class="btn btn-default"><i class="fa fa-eraser"></i></a></h3>
<div class="table-responsive">
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Stnr.</th>
<th>Name.</th>
<th>Verein</th>
<th>JG</th>
<th>G</th>
<th>Klasse</th>
<th>Att</th>
<th>Rennen</th>
</tr>
</thead>
<tbody>
<?php
if($result[1] > 0) {
foreach ($result[0] as $row) {
?>
<tr>
<td><?php echo $row['stnr']; ?></td>
<td><a href="index.php?func=teilnehmer&id=<?php echo $row['ID']; ?>&nextFunc=auswertung"><?php echo $row['nachname'].", ".$row['vorname']; ?></a></td>
<td><?php echo $row['verein']; ?></td>
<td><?php echo $row['jahrgang']; ?></td>
<td><?php echo $row['geschlecht']; ?></td>
<td><?php echo $row['klasse']; ?></td>
<td><?php echo $row['att']; ?></td>
<td><?php echo $row['titel']; ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
<?php
}
?>