Example #1
0
     $awaySpread = $homeSpread * -1;
     $homeSpreadStr = " (" . sprintf("%+.1f", $homeSpread) . ")";
     $awaySpreadStr = " (" . sprintf("%+.1f", $awaySpread) . ")";
 } else {
     $homeSpreadStr = "";
     $awaySpreadStr = "";
 }
 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';
     }
Example #2
0
 echo '<input type="hidden" name="week" value="' . $week . '" />' . "\n";
 echo '<table cellpadding="4" cellspacing="0" class="table1">' . "\n";
 //echo '	<tr><th>Home</th><th>Visitor</th><th align="left">Game</th><th>Time / Result</th><th>Your Pick</th></tr>' . "\n";
 $i = 0;
 while ($result = mysql_fetch_array($query)) {
     $homeTeam = new team($result['homeID']);
     $visitorTeam = new team($result['visitorID']);
     $rowclass = $i % 2 == 0 ? ' class="altrow"' : '';
     //$pickExpired = ((date("U") > strtotime($result['gameTimeEastern'])) ? true : false);
     echo '		<tr' . $rowclass . '>' . "\n";
     echo '			<td align="center">' . "\n";
     echo '				<table width="100%" border="0" cellpadding="2" cellspacing="0" class="nostyle">' . "\n";
     echo '					<tr valign="middle">' . "\n";
     echo '						<td align="center"><label for="' . $result['gameID'] . $visitorTeam->teamID . '"><img src="images/helmets_big/' . strtolower($visitorTeam->teamID) . '1.gif" onclick="document.entryForm.game' . $result['gameID'] . '[0].checked=true;" /></label><br /><span style="font-size: 9px;"><b>' . $visitorTeam->city . ' ' . $visitorTeam->team . '</b><br />Record: ' . getTeamRecord($visitorTeam->teamID) . '<br />Streak: ' . getTeamStreak($visitorTeam->teamID) . '</span></td>' . "\n";
     echo '						<td align="center">at</td>' . "\n";
     echo '						<td align="center"><label for="' . $result['gameID'] . $homeTeam->teamID . '"><img src="images/helmets_big/' . strtolower($homeTeam->teamID) . '2.gif" onclick="document.entryForm.game' . $result['gameID'] . '[1].checked=true;" /></label><br /><span style="font-size: 9px;"><b>' . $homeTeam->city . ' ' . $homeTeam->team . '</b><br />Record: ' . getTeamRecord($homeTeam->teamID) . '<br />Streak: ' . getTeamStreak($homeTeam->teamID) . '</span></td>' . "\n";
     echo '					</tr>' . "\n";
     if (strlen($result['homeScore']) > 0 && strlen($result['visitorScore']) > 0) {
         //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";