forked from byrnesvictim/naflm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
troubleshoot.php
83 lines (79 loc) · 2.39 KB
/
troubleshoot.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
require('header.php');
HTMLOUT::frame_begin(false);
title("OBBLM Troubleshooting");
?>
<h1>Leagues</h1>
<table>
<thead>
<th>League ID</th>
<th>Tie Teams to Divisions</th>
<th>Name</th>
<th>Date Created</th>
<th>Location</th>
<th>Divisions</th>
</thead>
<tbody style="text-align: center">
<?php
foreach(League::getLeagues() as $league) {
?>
<tr>
<td><?php echo $league->lid; ?></td>
<td><?php echo $league->tie_teams; ?></td>
<td><?php echo $league->name; ?></td>
<td><?php echo $league->date; ?></td>
<td><?php echo $league->location; ?></td>
<td><?php json_encode($league->getDivisions()); ?>
</tr>
<?php
}
?>
</tbody>
</table>
<h1>Tournaments</h1>
<table>
<thead>
<th>Tour ID</th>
<th>Division ID</th>
<th>Name</th>
<th>Type</th>
<th>Date Created</th>
<th>RS</th>
<th>Locked</th>
<th>Allow Scheduling</th>
<th>Winner</th>
<th>Finished? ('is_finished')</th>
<th>Empty? ('is_empty')</th>
<th>Begun? ('is_begin')</th>
<th>Empty? ('empty')</th>
<th>Begun? ('begun')</th>
<th>Finished? ('finished')</th>
</thead>
<tbody style="text-align: center">
<?php
foreach(Tour::getTours() as $tour) {
?>
<tr>
<td><?php echo $tour->tour_id; ?></td>
<td><?php echo $tour->f_did; ?></td>
<td><?php echo $tour->name; ?></td>
<td><?php echo $tour->type; ?></td>
<td><?php echo $tour->date_created; ?></td>
<td><?php echo $tour->rs; ?></td>
<td><?php echo $tour->locked; ?></td>
<td><?php echo $tour->allow_sched; ?></td>
<td><?php echo $tour->winner; ?></td>
<td><?php echo $tour->is_finished; ?></td>
<td><?php echo $tour->is_empty; ?></td>
<td><?php echo $tour->is_begun; ?></td>
<td><?php echo $tour->empty; ?></td>
<td><?php echo $tour->begun; ?></td>
<td><?php echo $tour->finished; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
HTMLOUT::frame_end();