-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGoaliesStatSub.php
More file actions
67 lines (67 loc) · 4.6 KB
/
GoaliesStatSub.php
File metadata and controls
67 lines (67 loc) · 4.6 KB
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
<th data-priority="3" title="Order Number" class="STHSW10 sorter-false">#</th>
<th data-priority="critical" title="Goalie Name" class="STHSW140Min"><?php If (isset($PlayersLang) == True){echo $PlayersLang['GoalieName'];}?></th>
<?php If (isset($PlayersLang) == True){
if($Team >= 0){echo "<th class=\"columnSelector-false STHSW140Min\" data-priority=\"6\" title=\"Team Name\">" . $PlayersLang['TeamName'] . "</th>";}else{echo "<th data-priority=\"2\" title=\"Team Name\" class=\"STHSW140Min\">" . $PlayersLang['TeamName'] ."</th>";}
/* $CareerLeaderSubPrintOut / 0 = Normal Regular Season (Position) / 1 = CareerStat with Rookie Info / 2 = Position, Year, Rookie Info */
If ($CareerLeaderSubPrintOut == 1){echo "<th data-priority=\"2\" title=\"Year\" class=\"STHSW25\">" . $SearchLang['Year'] . "</th><th data-priority=\"5\" title=\"Rookie\" class=\"STHSW25\">" . $PlayersLang['Rookie'] . "</th>";}
}?>
<th data-priority="1" title="Games Played" class="STHSW25">GP</th>
<th data-priority="1" title="Wins" class="STHSW25">W</th>
<th data-priority="2" title="Losses" class="STHSW25">L</th>
<th data-priority="2" title="Overtime Losses" class="STHSW25">OTL</th>
<th data-priority="critical" title="Save Percentage" class="STHSW50">PCT</th>
<th data-priority="critical" title="Goals Against Average" class="STHSW50">GAA</th>
<th data-priority="3" title="Minutes Played" class="STHSW50">MP</th>
<th data-priority="5" title="Penalty Minutes" class="STHSW25">PIM</th>
<th data-priority="4" title="Shutouts" class="STHSW25">SO</th>
<th data-priority="3" title="Goals Against" class="STHSW25">GA</th>
<th data-priority="3" title="Shots Against" class="STHSW45">SA</th>
<th data-priority="4" title="Shots Against Rebound" class="STHSW45">SAR</th>
<th data-priority="5" title="Assists" class="STHSW25">A</th>
<th data-priority="5" title="Empty net Goals" class="STHSW25">EG</th>
<th data-priority="4" title="Penalty Shots Save %" class="STHSW50">PS %</th>
<th data-priority="5" title="Penalty Shots Against" class="STHSW25">PSA</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Number of game goalies start as Start goalie">ST</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Number of game goalies start as Backup goalie">BG</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Number of time players was star #1 in a game">S1</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Number of time players was star #2 in a game">S2</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Number of time players was star #3 in a game">S3</th>
</tr></thead><tbody>
<?php
$Order = 0;
if (empty($GoalieStat) == false){while ($Row = $GoalieStat ->fetchArray()) {
$Order +=1;
echo "<tr><td>" . $Order ."</td>";
If ($Row['Number'] != Null){
echo "<td><a href=\"GoalieReport.php?Goalie=" . $Row['Number'] . "\">" . $Row['Name'] . "</a></td>";
}else{
echo "<td>" . $Row['Name'] . "</td>";
}
echo "<td>";
If ($Row['TeamThemeID'] > 0){echo "<img src=\"" . $ImagesCDNPath . "/images/" . $Row['TeamThemeID'] .".png\" alt=\"\" class=\"STHSPHPPlayersStatsTeamImage\">";}
echo $Row['TeamName'] . "</td>";
If ($CareerLeaderSubPrintOut == 1){echo "<td>" . $Row['Year'] . "</td><td>" . $Row['Rookie'] . "</td>";}
echo "<td>" . $Row['GP'] . "</td>";
echo "<td>" . $Row['W'] . "</td>";
echo "<td>" . $Row['L'] . "</td>";
echo "<td>" . $Row['OTL'] . "</td>";
If ($Row['PCT'] == Null){echo "<td>0</td>";}else{If ($Row['PCT'] == Null){echo "<td>0</td>";}else{echo "<td>" . number_Format($Row['PCT'],3) . "</td>";}}
If ($Row['GAA'] == Null){echo "<td>0</td>";}else{If ($Row['GAA'] == Null){echo "<td>0</td>";}else{echo "<td>" . number_Format($Row['GAA'],2) . "</td>";}}
echo "<td>";if ($Row <> Null){echo Floor($Row['SecondPlay']/60);}; echo "</td>";
echo "<td>" . $Row['Pim'] . "</td>";
echo "<td>" . $Row['Shootout'] . "</td>";
echo "<td>" . $Row['GA'] . "</td>";
echo "<td>" . $Row['SA'] . "</td>";
echo "<td>" . $Row['SARebound'] . "</td>";
echo "<td>" . $Row['A'] . "</td>";
echo "<td>" . $Row['EmptyNetGoal'] . "</td>";
If ($Row['PenalityShotsPCT'] == Null){echo "<td>0</td>";}else{If ($Row['PenalityShotsPCT'] == Null){echo "<td>0</td>";}else{echo "<td>" . number_Format($Row['PenalityShotsPCT'],3) . "</td>";}}
echo "<td>" . $Row['PenalityShotsShots'] . "</td>";
echo "<td>" . $Row['StartGoaler'] . "</td>";
echo "<td>" . $Row['BackupGoaler'] . "</td>";
echo "<td>" . $Row['Star1'] . "</td>";
echo "<td>" . $Row['Star2'] . "</td>";
echo "<td>" . $Row['Star3'] . "</td>";
echo "</tr>\n"; /* The \n is for a new line in the HTML Code */
}}
?>