Data options:
See Data Graphs for graphs of GCGCB and GCGCR data.
\n"; // close form at end instead of here to include the fire popup if it exists. // ******** populate another popup for list of fires here *********** include "buildfirepopup.inc"; include "getfiredate_type.inc"; include "DataDownload.inc"; if (isset($_POST['getfire'])) { // $fireNumberEnteredStr = trim($_POST['firenumEntered']); // already done above to initialize input with previous value. // $fireNumberEnteredStr = strip_tags($fireNumberEnteredStr); $fireNumberEntered = intval($fireNumberEnteredStr); // convert to integer since that's how it is in meta-data table. // check that firenumber is in range of 1-107 if (($fireNumberEntered < 1) or ($fireNumberEntered > 107)) { echo "Fire number out of range.Download details on the AMLGAS species. "; // document from Aerodyne about their gas measurements. Only applies to smoke processing.
} else {
print "Fire $firenum not found.
";
}
}
} else {
if (array_key_exists('sampleselected', $_POST)) {
//$sample = trim($_POST['sampleselected']); //already defined above to remember popup menu settings
//$sample = strip_tags($sample);
if (array_key_exists('fuelselected', $_POST)) {
//$fuel = trim($_POST['fuelselected']); //already defined above to remember popup menu settings
//$fuel = strip_tags($fuel);
if (array_key_exists('fireselected', $_POST)) { //value contains two values separated by " | "
$firenumVals = trim($_POST['fireselected']); //removes white space
$firenumVals = strip_tags($firenumVals); //removes any tags
$pos = strpos($firenumVals, " | ");
if ($pos === false) {
$firenum = "";
$firedate = "";
} else {
$tempArr = explode(" | ", $firenumVals);
$firenum = $tempArr[0];
$firedate = $tempArr[1];
}
}
if ((strlen($sample)!=0) and (strlen($fuel)!=0)) {
findfires($sample, $fuel, $firenum); //creates popup of fires found. $firenum is empty 1st time this is called. It remembers menu selection on subsequent calls.
}
// read which button was clicked to submit the form
if (isset($_POST['searchfiresfile'])) {
//button 'Find Fires' clicked.";
$buttonClicked="searchfiresfile";
} elseif (isset($_POST['gettable'])) {
//button 'Show Data Download Table' clicked.";
$buttonClicked="gettable";
}
if (array_key_exists('fireselected', $_POST)) {
//$firenum = trim($_POST['fireselected']); //already defined above to remember popup menu settings
//$firenum = strip_tags($firenum);
if (($firenum!="Select a fire") and ($buttonClicked!="searchfiresfile")) { //don't run this code if 'Find Fires' was clicked. User has to make a new selection in fires popup.
if ((strlen($sample)!=0) and (strlen($fuel)!=0) and (strlen($firenum)!=0)) {
if ((strpos($firenum, "fire")==0) and (strlen($firenum)==7)) {
print "