</th> <?php if ($team_field != '-1') { ?> <th class="sectiontableheader" style="text-align:center;"><?php echo $fieldOptions[$team_field]; ?> </th> <?php } ?> </tr> </thead> <tbody> <?php $teamLadder = $jSeason->getTeamLadder($team_field); $i = 1; $rowIndex = 0; foreach ($teamLadder as $jTeam) { ?> <tr class="sectiontableentry<?php echo $i % 2 + 1; ?> "> <td class="sectiontableentry<?php echo $i % 2 + 1; ?> " align="right"><?php echo $i; ?> .</td>