echo ' <div class="row bg-row3">' . "\n"; echo ' <div class="col-xs-6 center">' . "\n"; echo ' <div class="team">' . $visitorTeam->city . ' ' . $visitorTeam->team . $awaySpreadStr . '</div>' . "\n"; echo ' <div class="record">Record: ' . getTeamRecord($visitorTeam->teamID) . '</div>' . "\n"; echo ' <div class="streak">Streak: ' . getTeamStreak($visitorTeam->teamID) . '</div>' . "\n"; echo ' </div>' . "\n"; echo ' <div class="col-xs-6 center">' . "\n"; echo ' <div class="team">' . $homeTeam->city . ' ' . $homeTeam->team . $homeSpreadStr . '</div>' . "\n"; echo ' <div class="record">Record: ' . getTeamRecord($homeTeam->teamID) . '</div>' . "\n"; echo ' <div class="streak">Streak: ' . getTeamStreak($homeTeam->teamID) . '</div>' . "\n"; echo ' </div>' . "\n"; echo ' </div>' . "\n"; if ($row['expired'] && !ENABLE_LATE_PICKS) { //else show locked pick echo ' <div class="row bg-row4">' . "\n"; $pickID = getPickID($row['gameID'], $user->userID); if (!empty($pickID)) { $statusImg = ''; $pickTeam = new team($pickID); $pickLabel = $pickTeam->teamName; } else { $statusImg = '<img src="images/cross_16x16.png" width="16" height="16" alt="" />'; $pickLabel = 'None Selected'; } if ($scoreEntered) { //set status of pick (correct, incorrect) if ($pickID == $winnerID) { $statusImg = '<img src="images/check_16x16.png" width="16" height="16" alt="" />'; } else { $statusImg = '<img src="images/cross_16x16.png" width="16" height="16" alt="" />'; }
//if score is entered, show score echo ' <tr><td colspan="3" align="center"><b>Final: ' . $result['visitorScore'] . ' - ' . $result['homeScore'] . '</b></td></tr>' . "\n"; } else { //else show time of game echo ' <tr><td colspan="3" align="center">' . date('D n/j g:i a', strtotime($result['gameTimeEastern'])) . ' ET</td></tr>' . "\n"; } echo ' </table>' . "\n"; echo ' </td>' . "\n"; echo ' <td align="left"><b>Your Pick:</b><br />' . "\n"; if (!$result['expired']) { //if game is not expired, show pick echo ' <input type="radio" name="game' . $result['gameID'] . '" value="' . $visitorTeam->teamID . '" id="' . $result['gameID'] . $visitorTeam->teamID . '"' . ($picks[$result['gameID']]['pickID'] == $visitorTeam->teamID ? ' checked="checked"' : '') . ' /> <label for="' . $result['gameID'] . $visitorTeam->teamID . '">' . $visitorTeam->teamName . '</label><br />' . "\n"; echo ' <input type="radio" name="game' . $result['gameID'] . '" value="' . $homeTeam->teamID . '" id="' . $result['gameID'] . $homeTeam->teamID . '"' . ($picks[$result['gameID']]['pickID'] == $homeTeam->teamID ? ' checked="checked"' : '') . ' /> <label for="' . $result['gameID'] . $homeTeam->teamID . '">' . $homeTeam->teamName . '</label><br />' . "\n"; } else { //else show locked pick $pickID = getPickID($result['gameID'], $user->userID); if (!empty($pickID)) { $statusImg = ''; $pickTeam = new team($pickID); $pickLabel = $pickTeam->teamName; } else { $statusImg = '<img src="images/cross_16x16.png" width="16" height="16" alt="" />'; $pickLabel = 'None Selected'; } if ($scoreEntered) { //set status of pick (correct, incorrect) if ($pickID == $result['winnerID']) { $statusImg = '<img src="images/check_16x16.png" width="16" height="16" alt="" />'; } else { $statusImg = '<img src="images/cross_16x16.png" width="16" height="16" alt="" />'; }