-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPlayersStatSub.php
123 lines (123 loc) · 8.35 KB
/
PlayersStatSub.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<th data-priority="3" title="Order Number" class="STHSW10 sorter-false">#</th>
<th data-priority="critical" title="Player Name" class="STHSW140Min"><?php If (isset($PlayersLang) == True){echo $PlayersLang['PlayerName'];}?></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 / 3 = No Position, No Year, no Rookie Info */
If ($CareerLeaderSubPrintOut == 0 OR $CareerLeaderSubPrintOut == 2){echo "<th data-priority=\"2\" title=\"Position\" class=\"STHSW25\">POS</th>";}
If ($CareerLeaderSubPrintOut == 1 OR $CareerLeaderSubPrintOut == 2){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="Goals" class="STHSW25">G</th>
<th data-priority="1" title="Assists" class="STHSW25">A</th>
<th data-priority="1" title="Points" class="STHSW25">P</th>
<th data-priority="2" title="Plus/Minus" class="STHSW25">+/-</th>
<th data-priority="2" title="Penalty Minutes" class="STHSW25">PIM</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Penalty Minutes for Major Penalty">PIM5</th>
<th data-priority="2" title="Hits" class="STHSW25">HIT</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Hits Received">HTT</th>
<th data-priority="2" title="Shots" class="STHSW25">SHT</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Own Shots Block by others players">OSB</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Own Shots Miss the net">OSM</th>
<th data-priority="3" title="Shooting Percentage" class="STHSW55">SHT%</th>
<th data-priority="3" title="Shots Blocked" class="STHSW25">SB</th>
<th data-priority="3" title="Minutes Played" class="STHSW35">MP</th>
<th data-priority="3" title="Average Minutes Played per Game" class="STHSW35">AMG</th>
<th data-priority="4" title="Power Play Goals" class="STHSW25">PPG</th>
<th data-priority="4" title="Power Play Assists" class="STHSW25">PPA</th>
<th data-priority="4" title="Power Play Points" class="STHSW25">PPP</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Power Play Shots">PPS</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Power Play Minutes Played">PPM</th>
<th data-priority="5" title="Short Handed Goals" class="STHSW25">PKG</th>
<th data-priority="5" title="Short Handed Assists" class="STHSW25">PKA</th>
<th data-priority="5" title="Short Handed Points" class="STHSW25">PKP</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Penalty Kill Shots">PKS</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Penalty Kill Minutes Played">PKM</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Game Winning Goals">GW</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Game Tying Goals">GT</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Face offs Percentage">FO%</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Face offs Taken">FOT</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Give Aways">GA</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Take Aways">TA</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Empty Net Goals">EG</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Hat Tricks">HT</th>
<th data-priority="4" title="Points per 20 Minutes" class="STHSW25">P/20</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Penalty Shots Goals">PSG</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Penalty Shots Taken">PSS</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Fight Won">FW</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Fight Lost">FL</th>
<th class="columnSelector-false STHSW25" data-priority="6" title="Fight Ties">FT</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($PlayerStat) == false){while ($Row = $PlayerStat ->fetchArray()) {
$Order +=1;
echo "<tr><td>" . $Order ."</td>";
If ($Row['Number'] != Null){
echo "<td><a href=\"PlayerReport.php?Player=" . $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 == 0 OR $CareerLeaderSubPrintOut == 2){
echo "<td>" .$Position = (string)"";
if ($Row['PosC']== "True"){if ($Position == ""){$Position = "C";}else{$Position = $Position . "/C";}}
if ($Row['PosLW']== "True"){if ($Position == ""){$Position = "LW";}else{$Position = $Position . "/LW";}}
if ($Row['PosRW']== "True"){if ($Position == ""){$Position = "RW";}else{$Position = $Position . "/RW";}}
if ($Row['PosD']== "True"){if ($Position == ""){$Position = "D";}else{$Position = $Position . "/D";}}
echo $Position . "</td>";
}
If ($CareerLeaderSubPrintOut == 1 OR $CareerLeaderSubPrintOut == 2){
echo "<td>" . $Row['Year'] . "</td>";
echo "<td>" . $Row['Rookie'] . "</td>";
}
echo "<td>" . $Row['GP'] . "</td>";
echo "<td>" . $Row['G'] . "</td>";
echo "<td>" . $Row['A'] . "</td>";
echo "<td>" . $Row['P'] . "</td>";
echo "<td>" . $Row['PlusMinus'] . "</td>";
echo "<td>" . $Row['Pim'] . "</td>";
echo "<td>" . $Row['Pim5'] . "</td>";
echo "<td>" . $Row['Hits'] . "</td>";
echo "<td>" . $Row['HitsTook'] . "</td>";
echo "<td>" . $Row['Shots'] . "</td>";
echo "<td>" . $Row['OwnShotsBlock'] . "</td>";
echo "<td>" . $Row['OwnShotsMissGoal'] . "</td>";
If ($Row['ShotsPCT'] == Null){echo "<td>0%</td>";}else{If ($Row['ShotsPCT'] == Null){echo "<td>0%</td>";}else{echo "<td>" . number_Format($Row['ShotsPCT'],2) . "%</td>";}}
echo "<td>" . $Row['ShotsBlock'] . "</td>";
echo "<td>" . Floor($Row['SecondPlay']/60) . "</td>";
If ($Row['AMG'] == Null){echo "<td>0</td>";}else{If ($Row['AMG'] == Null){echo "<td>0</td>";}else{echo "<td>" . number_Format($Row['AMG'],2) . "</td>";};}
echo "<td>" . $Row['PPG'] . "</td>";
echo "<td>" . $Row['PPA'] . "</td>";
echo "<td>" . $Row['PPP'] . "</td>";
echo "<td>" . $Row['PPShots'] . "</td>";
echo "<td>" . Floor($Row['PPSecondPlay']/60) . "</td>";
echo "<td>" . $Row['PKG'] . "</td>";
echo "<td>" . $Row['PKA'] . "</td>";
echo "<td>" . $Row['PKP'] . "</td>";
echo "<td>" . $Row['PKShots'] . "</td>";
echo "<td>" . Floor($Row['PKSecondPlay']/60) . "</td>";
echo "<td>" . $Row['GW'] . "</td>";
echo "<td>" . $Row['GT'] . "</td>";
If ($Row['FaceoffPCT'] == Null){echo "<td>0%</td>";}else{If ($Row['FaceoffPCT'] == Null){echo "<td>0%</td>";}else{echo "<td>" . number_Format($Row['FaceoffPCT'],2) . "%</td>";}}
echo "<td>" . $Row['FaceOffTotal'] . "</td>";
echo "<td>" . $Row['GiveAway'] . "</td>";
echo "<td>" . $Row['TakeAway'] . "</td>";
echo "<td>" . $Row['EmptyNetGoal'] . "</td>";
echo "<td>" . $Row['HatTrick'] . "</td>";
If ($Row['P20'] == Null){echo "<td>0</td>";}else{echo "<td>" . number_Format($Row['P20'],2) . "</td>";}
echo "<td>" . $Row['PenalityShotsScore'] . "</td>";
echo "<td>" . $Row['PenalityShotsTotal'] . "</td>";
echo "<td>" . $Row['FightW'] . "</td>";
echo "<td>" . $Row['FightL'] . "</td>";
echo "<td>" . $Row['FightT'] . "</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 */
}}
?>