-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteamRanking.php
71 lines (64 loc) · 2.09 KB
/
teamRanking.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
<html>
<?php session_start();
include("header.php")?>
<body>
<?php include("navBar.php")?>
<div class="container row-offcanvas row-offcanvas-left">
<div class="well column col-lg-12 col-sm-12 col-xs-12" id="content">
<h2>Team Ranking</h2>
<table class="sortable table table-hover" id="RawData" border="1">
<tr>
<th>Team Number</th>
<th>Avg Teleop Cargo</th>
<th>Avg Teleop Hatch</th>
<th>Max Rocket Cargo</th>
<th>Max Rocket Hatch</th>
<th>Max Cargoship Cargo</th>
<th>Max Cargoship Hatch</th>
<th>Avg Auto Cargo</th>
<th>Avg Auto Hatch</th>
<th>Second Level Climb</th>
<th>Third Level Climb</th>
<th>Times Playes Defense</th>
<th>Avg Drive Ranking</th>
</tr>
<?php
include("databaseLibrary.php");
$teamList = getTeamList();
//$TeamDat = array();
foreach($teamList as $TeamNumber){
$i=0;
$avgTeleopCargo = getAvgCargo($TeamNumber);
$avgTeleopHatch = getAvgHatch($TeamNumber);
$maxShipCargo = getMaxCargoshipCargo($TeamNumber);
$maxShipHatch = getMaxCargoshipHatch($TeamNumber);
$maxRocketCargo = getMaxRocketCargo($TeamNumber);
$maxRocketHatch = getMaxRocketHatch($TeamNumber);
$avgAutoCargo = getAvgCargoA($TeamNumber);
$avgAutoHatch = getAvgHatchA($TeamNumber);
$secondClimb = getTotalClimbTwo($TeamNumber);
$thirdClimb = getTotalClimbThree($TeamNumber);
$timesDefense = getTotalDefense($TeamNumber);
$avgDriveRank = getAvgDriveRank($TeamNumber);
echo("<tr>
<td><a href='teamData.php?team=".$TeamNumber."'>".$TeamNumber."</a></td>
<th>".$avgTeleopCargo."</th>
<th>".$avgTeleopHatch."</th>
<th>".$maxShipCargo."</th>
<th>".$maxShipHatch."</th>
<th>".$maxRocketCargo."</th>
<th>".$maxRocketHatch."</th>
<th>".$avgAutoCargo."</th>
<th>".$avgAutoHatch."</th>
<th>".$secondClimb."</th>
<th>".$thirdClimb."</th>
<th>".$timesDefense."</th>
<th>".$avgDriveRank."</th>
</tr>");
}
?>
</table>
</div>
</div>
</body>
<?php include("footer.php") ?>