| 161 | //If there were no errors, process the data and redirect the user to the | = | 161 | //If there were no errors, process the data and redirect the user to the |
| 162 | //results page. | 162 | //results page. | |
| 163 | 163 | |||
| 164 | if ($errorflag != true) | 164 | if ($errorflag != true) | |
| 165 | { | 165 | { | |
| 166 | $mail = $football->doPicks($games,$_POST,$week,$_SESSION['user']); | 166 | $mail = $football->doPicks($games,$_POST,$week,$_SESSION['user']); | |
| 167 | $userid = $_SESSION['user']; | <> | 167 | |
| 168 | include ("emailpicks.php"); | |||
| 169 | if ($mailret != "1") { | 168 | if ($mail != "1") { | |
| 170 | $user=$_SESSION['user']; | = | 169 | $user=$_SESSION['user']; |
| 171 | $football->InfoMessage("You Picks have been entered<br />You may now select another week or <a href=\"results.php?week=$week\" title=\"Check results for current week input\">check results</a> or <a href=\"printpicks.php?week=$week&user=$user\" target=\"_blank\">Printable Picks</a>"); | 170 | $football->InfoMessage("You Picks have been entered<br />You may now select another week or <a href=\"results.php?week=$week\" title=\"Check results for current week input\">check results</a> or <a href=\"printpicks.php?week=$week&user=$user\" target=\"_blank\">Printable Picks</a>"); | |
| 172 | } | 171 | } | |
| 173 | 172 | |||
| 174 | else { | 173 | else { | |
| 175 | $football->InfoMessage("You Picks have been entered and sent to you.<br />You may now select another week or <a href=\"results.php?week=$week\" title=\"Check results for current week input\">check results</a>"); | 174 | $football->InfoMessage("You Picks have been entered and sent to you.<br />You may now select another week or <a href=\"results.php?week=$week\" title=\"Check results for current week input\">check results</a>"); | |
| 192 | = | 191 | ||
| 193 | require("weeks.php"); | 192 | require("weeks.php"); | |
| 194 | ?> | 193 | ?> | |
| 195 | <!-- //Build the form.--> | 194 | <!-- //Build the form.--> | |
| 196 | <script src="./jscript/formvalidate.js"></script> <!-- Validate and allow for quick picks --> | 195 | <script src="./jscript/formvalidate.js"></script> <!-- Validate and allow for quick picks --> | |
| 197 | 196 | |||
| 198 | <form name="form1" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post" onSubmit="return validate(this);"> | <> | 197 | <form name="form1" action="<?php echo $_SERVER["SCRIPT_NAME"]; ?>" method="post" onSubmit="return validate(this);"> |
| 199 | <div><input name="week" type="hidden" value="<?php echo $week; ?>" /></div> | = | 198 | <div><input name="week" type="hidden" value="<?php echo $week; ?>" /></div> |
| 200 | <div align="center"> | 199 | <div align="center"> | |
| 201 | <TABLE> | 200 | <TABLE> | |
| 202 | <TR> | 201 | <TR> | |
| 203 | <TD COLSPAN=4> | 202 | <TD COLSPAN=4> | |
| 204 | <p align="center"><b>Quick Picks</b></TD> | 203 | <p align="center"><b>Quick Picks</b></TD> | |
| 217 | <tr> | = | 216 | <tr> |
| 218 | <th align="left" colspan="12">Week <?php echo $week; ?><? if ($football->usespread != "N") { ?> A <image src = ./images/win.gif width=20> means a Spread Win <u>Underlined Teams are Favorites</u><? } ?><br><b><center>Mouseover Team name will display details.</b></center></th> | 217 | <th align="left" colspan="12">Week <?php echo $week; ?><? if ($football->usespread != "N") { ?> A <image src = ./images/win.gif width=20> means a Spread Win <u>Underlined Teams are Favorites</u><? } ?><br><b><center>Mouseover Team name will display details.</b></center></th> | |
| 219 | </tr> | 218 | </tr> | |
| 220 | <tr> | 219 | <tr> | |
| 221 | <td align="center" colspan="3"><strong>Date/Time</strong></td> | 220 | <td align="center" colspan="3"><strong>Date/Time</strong></td> | |
| 222 | <td align="center" colspan="3"><strong>Away</strong></td> | 221 | <td align="center" colspan="3"><strong>Away</strong></td> | |
| 223 | <? if ($football->usespread == "Y") { ?> | +- | ||
| 224 | <td align="right" colspan="3"><strong>Spread</strong></td> | = | 222 | <td align="right" colspan="3"><strong>Spread</strong></td> |
| 225 | <td align="center" colspan="3"><strong>Home</strong></td> | 223 | <td align="center" colspan="3"><strong>Home</strong></td> | |
| 226 | <? } else { ?> | <> | ||
| 227 | <td align="center" colspan="6"><strong>Home</strong></td> | |||
| 228 | <? } ?> | 224 | ||
| 229 | </tr> | = | 225 | </tr> |
| 230 | <?php | 226 | <?php | |
| 231 | $getpick = $football->GetPick($_SESSION['user']); | 227 | $getpick = $football->GetPick($_SESSION['user']); | |
| 232 | //$usergamecount = count($games); | 228 | //$usergamecount = count($games); | |
| 233 | //$lockedgames = 0; | 229 | //$lockedgames = 0; | |
| 234 | 230 | |||
| 342 | <? if ($sresults == $vid and $vid != $result){ echo "<image src=./images/win.gif width=20>"; } ?> | = | 338 | <? if ($sresults == $vid and $vid != $result){ echo "<image src=./images/win.gif width=20>"; } ?> |
| 343 | </td> | 339 | </td> | |
| 344 | <? } ?> | 340 | <? } ?> | |
| 345 | <td><image src = ./images/<? echo $vicon; ?> width=<? echo $football->logo_width; ?>></td> | 341 | <td><image src = ./images/<? echo $vicon; ?> width=<? echo $football->logo_width; ?>></td> | |
| 346 | <td align="center"><?php echo $vpick; ?></td> | 342 | <td align="center"><?php echo $vpick; ?></td> | |
| 347 | <td> </td> | 343 | <td> </td> | |
| 348 | <? if ($football->usespread == "Y") { ?> | +- | ||
| 349 | <td><?php if ($spread == 0) { echo "even"; } else { echo $football->dectofrac($spread); }?></td> | = | 344 | <td><?php if ($spread == 0) { echo "even"; } else { echo $football->dectofrac($spread); }?></td> |
| 350 | <? } ?> | +- | ||
| 351 | <td> </td> | = | 345 | <td> </td> |
| 352 | <td><a href="#" onmouseover="ajax_showTooltip('displayteamstats.php?t=<? echo $hid; ?>',this);return false" onmouseout="ajax_hideTooltip()"><?php if ($spread > 0) { echo "<U>$home</U>";} else { echo $home; };?></a><? echo $football->getTeamStats($hid); ?> | 346 | <td><a href="#" onmouseover="ajax_showTooltip('displayteamstats.php?t=<? echo $hid; ?>',this);return false" onmouseout="ajax_hideTooltip()"><?php if ($spread > 0) { echo "<U>$home</U>";} else { echo $home; };?></a><? echo $football->getTeamStats($hid); ?> | |
| 353 | <? if ($football->usespread != "N") { ?> | 347 | <? if ($football->usespread != "N") { ?> | |
| 354 | <? if ($sresults == $hid and $hid != $result){ echo "<image src=./images/win.gif width=20>"; } ?> | 348 | <? if ($sresults == $hid and $hid != $result){ echo "<image src=./images/win.gif width=20>"; } ?> | |
| 355 | <? } ?> | 349 | <? } ?> | |
| 356 | </td> | 350 | </td> | |
| 368 | <? if ($sresults == $vid and $vid != $result){ echo "<image src=./images/win.gif width=20>"; } ?> | = | 362 | <? if ($sresults == $vid and $vid != $result){ echo "<image src=./images/win.gif width=20>"; } ?> |
| 369 | <? } ?> | 363 | <? } ?> | |
| 370 | </td> | 364 | </td> | |
| 371 | <td><image src = ./images/<? echo $vicon; ?> width=<? echo $football->logo_width; ?>></td> | 365 | <td><image src = ./images/<? echo $vicon; ?> width=<? echo $football->logo_width; ?>></td> | |
| 372 | <td align="center"><input class="radio" name="pick-<?php echo $gameid; ?>" type="radio" id1="<? if ($sw=="v") { echo "fav"; } else { echo "pick"; } ?>" id="visitor" value="<?php echo $vid; ?>" <?php echo $pick == $vid ? " checked" : ""; ?> /></td> | 366 | <td align="center"><input class="radio" name="pick-<?php echo $gameid; ?>" type="radio" id1="<? if ($sw=="v") { echo "fav"; } else { echo "pick"; } ?>" id="visitor" value="<?php echo $vid; ?>" <?php echo $pick == $vid ? " checked" : ""; ?> /></td> | |
| 373 | <td> </td> | 367 | <td> </td> | |
| 374 | <? if ($football->usespread == "Y") { ?> | +- | ||
| 375 | <td><?php if ($spread == 0) { echo "even"; } else { echo $football->dectofrac($spread); }?></td> | = | 368 | <td><?php if ($spread == 0) { echo "even"; } else { echo $football->dectofrac($spread); }?></td> |
| 376 | <? } ?> | +- | ||
| 377 | <td> </td> | = | 369 | <td> </td> |
| 378 | <td><a href="#" onmouseover="ajax_showTooltip('displayteamstats.php?t=<? echo $hid; ?>',this);return false" onmouseout="ajax_hideTooltip()"><?php if ($spread > 0) { $sw="h"; echo "<U>$home</U>";} else { echo $home; };?></a><? echo $football->getTeamStats($hid); ?> | 370 | <td><a href="#" onmouseover="ajax_showTooltip('displayteamstats.php?t=<? echo $hid; ?>',this);return false" onmouseout="ajax_hideTooltip()"><?php if ($spread > 0) { $sw="h"; echo "<U>$home</U>";} else { echo $home; };?></a><? echo $football->getTeamStats($hid); ?> | |
| 379 | <? if ($football->usespread != "N") { ?> | 371 | <? if ($football->usespread != "N") { ?> | |
| 380 | <? if ($sresults == $hid and $hid != $result){ echo "<image src=./images/win.gif width=20>"; } ?> | 372 | <? if ($sresults == $hid and $hid != $result){ echo "<image src=./images/win.gif width=20>"; } ?> | |
| 381 | <? } ?> | 373 | <? } ?> | |
| 382 | </td> | 374 | </td> | |