<%
/**************************************************** BUILD ROSTER TABLE ***************************************/
playersInTeam = obj.entryPlayers
if (playersInTeam.length == challenge.slots.length)
{
playerValue = 0.0
teamLockedValue = 0.0
teamCurrentValue = 0.0
if (isOwner)
{
'
'
''
'| Active | '
' | '
'2001 Season Totals | '
' | '
'Value | '
'
'
''
'| POS | '
'PLAYER | '
'NEXT | '
' | '
'GP | '
'FG% | '
'FT% | '
'RPG | '
'APG | '
'TPG | '
'SPG | '
'BPG | '
'PPG | '
' | '
'RATING | '
'LOCKED | '
'
'
foreach (item in playersInTeam)
{
player = item.player
playerStats = item.playerTotals
playerValue = playerValue + player.value
teamLockedValue = teamLockedValue + item.lockedSalary
teamCurrentValue = teamCurrentValue + item.currentSalary
if (player.positionID == 5)
{
'\n'
'| ' & challenge.positions[player.positionID].abbrev & ' | '
'' & player.firstName & ' ' & player.lastName & ', ' & player.proTeam.abbrev
if (player.isInjured !=0) { '*' }
' | '
'' & player.addlText & ' | '
' | '
nullFormat("--")
gp = 0
fgp = 0
ftp = 0
rpg = 0
apg = 0
tpg = 0
spg = 0
bpg = 0
ppg = 0
VGMpoints = 0
gp = playerStats["nGamesPlayed"].asInteger
if (gp > 0)
{
if (playerStats["nFieldGoalsAttempted"].asInteger > 0)
{
fgp = playerStats["nFieldGoalsMade"].asDouble / playerStats["nFieldGoalsAttempted"].asInteger
}
if (playerStats["nFreethrowsAttempted"].asInteger > 0)
{
ftp = playerStats["nFreethrowsMade"].asDouble / playerStats["nFreethrowsAttempted"].asInteger
}
rpg = playerStats["nRebounds"].asDouble / playerStats["nGamesPlayed"].asInteger
apg = playerStats["nAssists"].asDouble / playerStats["nGamesPlayed"].asInteger
tpg = playerStats["nTurnovers"].asDouble / playerStats["nGamesPlayed"].asInteger
spg = playerStats["nSteals"].asDouble / playerStats["nGamesPlayed"].asInteger
bpg = playerStats["nBlocks"].asDouble / playerStats["nGamesPlayed"].asInteger
ppg = playerStats["nNBAPoints"].asDouble / playerStats["nGamesPlayed"].asInteger
VGMpoints = playerStats["nVGMPoints"].asDouble
}
numberFormat("0")
'Winning Pct. ' & playerStats["nWins"].asInteger & '/' & gp & ' = '
numberFormat("#.000")
if (gp == 0) { '.000' } else { playerStats["nWins"].asDouble / playerStats["nGamesPlayed"].asDouble }
' | '
numberFormat(null)
' | '
'' & item.currentSalary & ' | '
'' & item.lockedSalary & ' |
'
''
}
else
{
'\n'
'| ' & challenge.positions[player.positionID].abbrev & ' | '
'' & player.firstName & ' ' & player.lastName & ', ' & player.proTeam.abbrev
if (player.isInjured !=0) { '*' }
' | '
'' & player.addlText & ' | '
' | '
nullFormat("--")
gp = 0
fgp = 0
ftp = 0
rpg = 0
apg = 0
tpg = 0
spg = 0
bpg = 0
ppg = 0
VGMpoints = 0
gp = playerStats["nGamesPlayed"].asInteger
if (gp > 0)
{
fgp = playerStats["nFieldGoalsMade"].asDouble / playerStats["nFieldGoalsAttempted"].asInteger
ftp = playerStats["nFreethrowsMade"].asDouble / playerStats["nFreethrowsAttempted"].asInteger
rpg = playerStats["nRebounds"].asDouble / playerStats["nGamesPlayed"].asInteger
apg = playerStats["nAssists"].asDouble / playerStats["nGamesPlayed"].asInteger
tpg = playerStats["nTurnovers"].asDouble / playerStats["nGamesPlayed"].asInteger
spg = playerStats["nSteals"].asDouble / playerStats["nGamesPlayed"].asInteger
bpg = playerStats["nBlocks"].asDouble / playerStats["nGamesPlayed"].asInteger
ppg = playerStats["nNBAPoints"].asDouble / playerStats["nGamesPlayed"].asInteger
VGMpoints = playerStats["nVGMPoints"].asDouble
}
numberFormat(null)
'' & gp & ' | '
numberFormat("#.000")
''
fgp & ' | '
numberFormat("#.000")
''
ftp & ' | '
''
numberFormat("0.0")
rpg & ' | '
'' & apg & ' | '
'' & tpg & ' | '
'' & spg & ' | '
'' & bpg & ' | '
'' & ppg & ' | '
' | '
'' & item.currentSalary & ' | '
'' & item.lockedSalary & ' |
'
}
}
'
'
''
'| Total Rating | '
' | '
'\r\n\r\n'
numberFormat("#.0")
// teamLockedValue = teamLockedValue / 10.0
// 50.00000000000001
if (teamLockedValue > challenge.entryBudget + 0.00000000000001)
{
' | '
''
' | '
'
'
'
'
'