| 196 | // Hack to see winner better from Mrtalk | = | 196 | // Hack to see winner better from Mrtalk |
| 197 | //$pick="<font color='#009900'><strong>".$pick."</strong></font>"; | 197 | //$pick="<font color='#009900'><strong>".$pick."</strong></font>"; | |
| 198 | $style = "\"border: .2em solid $bcolor;\""; | 198 | $style = "\"border: .2em solid $bcolor;\""; | |
| 199 | } | 199 | } | |
| 200 | if ($_SESSION['user'] != $football->admin_username) | 200 | if ($_SESSION['user'] != $football->admin_username) | |
| 201 | { | 201 | { | |
| 202 | // $alllocked = $football->ckAlllocked($week); | <> | ||
| 203 | // if ($alllocked != true) | |||
| 204 | if ($row1->gametime >= $datetime and $football->showPicks == "Y" and $_SESSION['user'] != $username) // has game already started | 202 | if ($row1->gametime >= $datetime and $football->showPicks == "Y" and $_SESSION['user'] != $username) // game has already started | |
| 205 | { | = | 203 | { |
| 206 | $pick="---"; | 204 | $pick="---"; | |
| 207 | } | 205 | } | |
| 208 | } | 206 | } | |
| 209 | if ($pick=="---") { | 207 | if ($pick=="---") { | |
| 210 | ?> | 208 | ?> | |
| 234 | } | = | 232 | } |
| 235 | $score=$football->UserScore($username,$week); | 233 | $score=$football->UserScore($username,$week); | |
| 236 | if ($total!=0) | 234 | if ($total!=0) | |
| 237 | { | 235 | { | |
| 238 | $scorestr=$score."/".$total; | 236 | $scorestr=$score."/".$total; | |
| 239 | $pct="(".(round($score/$total*100,1)).")"; | 237 | $pct="(".(round($score/$total*100,1)).")"; | |
| 240 | $pct .= "%"; | +- | ||
| 241 | } | = | 238 | } |
| 242 | else | 239 | else | |
| 243 | { | 240 | { | |
| 244 | $scorestr="n/a"; | 241 | $scorestr="n/a"; | |
| 245 | $pct=" "; | 242 | $pct=" "; | |
| 246 | } | 243 | } | |
| 247 | if ($_SESSION['user'] != $football->admin_username) | 244 | if ($_SESSION['user'] != $football->admin_username) | |
| 248 | { | 245 | { | |
| 249 | if ($football->showPicks == "Y" and $_SESSION['user'] != $username) // game has already started | 246 | if ($football->showPicks == "Y" and $_SESSION['user'] != $username) // game has already started | |
| 250 | { | 247 | { | |
| 251 | if ($football->LastGameStarted($week) == "0") { | 248 | if ($football->LastGameStarted($week) == "0") { | |
| 252 | // if ($alllocked != true) { | <> | 249 | $tbguess=" "; |
| 253 | $tbguess="---"; | 250 | } | |
| 254 | $tbdiff=" "; | = | 251 | $tbdiff=" "; |
| 255 | $scorestr="n/a"; | <> | 252 | // $scorestr="n/a"; |
| 256 | $pct=" "; | 253 | // $pct=" "; | |
| 257 | } | = | 254 | } |
| 258 | } | 255 | } | |
| 259 | } | +- | ||
| 260 | = | 256 | ||
| 261 | ?> | 257 | ?> | |
| 262 | <td align="right"><?php echo $tbguess; ?></td> | 258 | <td align="right"><?php echo $tbguess; ?></td> | |
| 263 | <td align="right"><?php echo $tbdiff; ?></td> | 259 | <td align="right"><?php echo $tbdiff; ?></td> | |
| 264 | <td align="right"><?php echo $scorestr; ?></td> | 260 | <td align="right"><?php echo $scorestr; ?></td> | |
| 265 | <td align="right"><?php echo $pct; ?></td> | <> | 261 | <td align="right"><?php echo $pct; ?>%</td> |
| 266 | <? | 262 | ||
| 267 | //User has no entries for this week, fill with blanks. | 263 | <?php //User has no entries for this week, fill with blanks. | |
| 268 | } | = | 264 | } |
| 269 | else | 265 | else | |
| 270 | { | 266 | { | |
| 271 | for ($j=1; $j<=$football->NumberOfGames($week); $j++) | 267 | for ($j=1; $j<=$football->NumberOfGames($week); $j++) | |
| 272 | { | 268 | { | |
| 273 | ?> | 269 | ?> | |