include("global.php");
include("content.php");
#NAME OF THIS PAGE
$title = "Gardener of the Month";
if(!isset($type)) $type = "";
#LOAD ALL HEADER DATA INTO PAGE
if($type != "submit")
all_header($title);
#LOAD ALL_TOP DESIGN INTO PAGE
if($type != "submit")
require("all_top.html");
$pageName = "gotm";
$tblName = "$tblGOTM";
if(empty($page))
$page = "home";
if($type != "submit") {
echo "
";
printPageHeader($pageName, $dbLink, $page);
echo "| |
";
}
#BODY FUNCTIONS GO HERE
switch($page) {
case "nominate":
if($type == "submit")
gotmNominateSubmit();
elseif($type == "thanks") {
gotmNominateThanks($page);
} else {
gtomNominate($page);
gotmBackLink();
}
break;
case "view":
gtomView($page);
gotmBackLink();
break;
case "vote":
if($type == "submit" && $nominee > 0)
gotmVoteSubmit($nominee);
else {
gtomVote($page);
gotmBackLink();
}
break;
case "default":
case "home":
printGardnerOfTheMonthVotePage($pageName, $tblName, $dbLink);
break;
}
#LOAD ALL_BOTTOM DESIGN INTO PAGE
if($type != "submit")
require("all_bottom.html");
?>