<?php
/*
This file is part of baseballNuke.
Created by Shawn Grimes http://claimid.com/shawn
baseballNuke is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
baseballNuke is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with baseballNuke; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if(!($_COOKIE["season"])){
$_COOKIE["season"]=2003;
}
$TEAM_NAME=$defaultTeam;
require_once("seasonSelect.php");
//echo "</TD></TR><TR><TD>";
//echo "<tr><td>";
opentable2();
$FIELD=$_GET["field"];
if($FIELD){
$sqlString="SELECT directions FROM ".$prefix."_baseballNuke_locations WHERE fieldname='".$FIELD."'";
//echo "SQL: $sqlString<BR>";
$resultDirections=sql_query($sqlString, $dbi);
?><table>
<tr>
<td align=center>
<?php
print("<font size=+2><b>$FIELD</b></font>");
?>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<?php
if(sql_num_rows($resultDirections, $dbi)) {
list($directions)=sql_fetch_row($resultDirections, $dbi);
print($directions);
}else{
print("No directions for that field were found");
}
}
?>
</td>
</tr>
<tr>
<td> </td>
</tr></table>
<?php
closetable2();
//echo "</td></tr>";
?>