%
template PLAYERLIVESvc(starwave.webgames.services.UserInputSvc obj)
hStat = #("MIN","FGM","FGA","FTM","FTA","REB","AST", "TO","STL","BLK","PTS", "VGM*")
gameDate = 0
formatedDate = ""
inputs = obj.input
if (inputs != null and inputs.length > 0) {
gameDate = inputs[0]["gameDay"].asInteger + 800000
// y2k fix
if (gameDate > 1000000)
{
gameDate = gameDate + 19000000
}
formatedDate = substring(gameDate,4,6) & '/' & substring(gameDate,6,8) & '/' & substring(gameDate,2,4)
}
%>
WVGM: Daily Leaders
<% Header("PlayerliveSvc") %>
Daily Leaders
Below is a look at the top 25 players in each WVGM category, defaulted by total WVGM points for the most recent day's games. Click on each column header to view a particular stat category.
|
| |
| Games of <% formatedDate %> |
| Sortable Live Statistics |
| PLAYER |
OPP |
<%
foreach (x in 0..11) {
if (x == 1 or x == 3)
{
if (obj.currentRequest.args["Param0"] == x & "")
{
' '& hStat[x] &'/'& hStat[x + 1] &' | '
}
else if (obj.currentRequest.args["Param0"] == x + 1 & "")
{
' '& hStat[x] &'/'& hStat[x + 1] &' | '
}
else
{
' '& hStat[x] &'/'& hStat[x + 1] &' | '
}
}
else if (x != 2 and x != 4)
{
if (obj.currentRequest.args["Param0"] == x & "")
{
' '& hStat[x] &' | '
}
else
{
' '& hStat[x] &' | '
}
}
}
%>
<%
if (inputs != null and inputs.length > 0) {
foreach (input in inputs)
{
''
'| '& input["sFirstName"] &' '& input["sLastName"] &', '& input["teamAbbrev"] &' | '
if (input["nIsHome"].asInteger == 0)
{
'@'& input["teamOppAbbrev"] &' | '
}
else
{
''& input["teamOppAbbrev"] &' | '
}
''& input["nMinutes"] &' | '
''& input["nFieldGoalsMade"] &'/'& input["nFieldGoalsAttempted"] &' | '
''& input["nFreeThrowsMade"] &'/'& input["nFreeThrowsAttempted"] &' | '
''& input["nRebounds"] &' | '
''& input["nAssists"] &' | '
''& input["nTurnovers"] &' | '
''& input["nSteals"] &' | '
''& input["nBlocks"] &' | '
''& input["nNBAPoints"] &' | '
''& input["nVGMPoints"] &' | '
' '
dateFormat(null)
}
}
else
{
'| No Matching players | '
}
%>
|
|
WVGM* = (PTS + REB + AST + STL + BLK) - ((FGA - FGM) + (FTA - FTM) + TO)
Only the top 25 players are listed in each category. Other players may be tied with the last listed player.
|
<% Footer("PLAYERLIVESvc") %>