-
Notifications
You must be signed in to change notification settings - Fork 0
/
selectEvent.php
59 lines (41 loc) · 1.63 KB
/
selectEvent.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
<?php
include ('config.php');
include ('init.php');
include ('include.php');
$shootId = $_GET['shootId'];
?>
<!DOCTYPE html>
<html>
<head>
<title>Event Selector</title>
<?php
include 'header.php';
?>
</head>
<body>
<h1>Select Event</h1>
<h2>Click Event to add/edit Shooters</h2>
<?php
$query = 'SELECT *
FROM shootevent
WHERE shootId =' . $shootId;
$result = dbquery($query);
echo '<table><tr>';
while($row = mysqli_fetch_array($result)){
echo '<td>' . $row['eventType'] . '</td>';
echo '<td> - ' . $row['targets'] . ' Targets</td>';
echo '<td><a href=\'eventShooterEditor.php?eventId=' . $row['id'] . '\'>Edit Shooters/Scores</a></td>';
echo '<td><a href=\'eventReport.php?eventId=' . $row['id'] . '\'>Public Report</a></td>';
echo '<td><a href=\'eventReport.php?eventId=' . $row['id'] . '&private=private\'>Private Report</a></td>';
//echo '<td><form method=\'get\' action=\'eventShooterEditor.php\' ><input type=\'hidden\' name=\'eventId\' value=\'' . $row['id'] . '\'><input type=\'submit\' value=\'Edit Shooter/Scores\'></form></td>';
//echo '<td><form method=\'get\' action=\'eventReport.php\' ><input type=\'hidden\' name=\'eventId\' value=\'' . $row['id'] . '\'><input type=\'submit\' value=\'Public Report\'></form></td>';
//echo '<td><form method=\'get\' action=\'eventReport.php?\' ><input type=\'hidden\' name=\'eventId\' value=\'' . $row['id'] . '\'><input type=\'hidden\' name=\'private\' value=\'private\'><input type=\'submit\' value=\'Private Report\'></form></td>';
}
echo '</tr></table>';
?>
</body>
<?php
include 'footer.php';
?>
<script type="text/javascript">
</html>