results.php changes
Produced: 8/25/2007 12:13:36 PM
   
Mode:  Differences with Context  
   
Left file: D:\phpfootball20\results.php     Right file: D:\phpfootball20old\results.php  
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="&nbsp;";   242           $pct="&nbsp;";
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="&nbsp;";
253          $tbguess="---";   250          }
254          $tbdiff="&nbsp;"; = 251          $tbdiff="&nbsp;";
255          $scorestr="n/a"; <> 252 //         $scorestr="n/a";
256          $pct="&nbsp;";   253 //         $pct="&nbsp;";
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 ?>