'; echo ''; } if (!isset($_POST['wfo'])&&!isset($wfo)) { $wfo='oax'; $satType = 'vis'; }*/ if (isset($_POST['wfo'])) { # Are we using AJAX??? $wfo = $_POST['wfo']; # If so, set wfo. if ($_SERVER["REMOTE_ADDR"]=='127.0.0.1') { include ('Settings.php'); // AJAX forgets these on localhost! } } if (isset($_POST['sattype'])) { # Are we using AJAX??? $satType = $_POST['sattype']; # If so, set wfo. if ($_SERVER["REMOTE_ADDR"]=='127.0.0.1') { include ('Settings.php'); // AJAX forgets these on localhost! } } ?>
Select Forecast Office:   Select Satellite View:  
$val) { if ($val[0] == $wfo) { $wfoText = $locationArrays[$key][1]; $wfoEW = $locationArrays[$key][2]; break; } } $matches = preg_split("/[,]+/",$wfoText); $city = $matches[1]; $state = $matches[0]; $wfoText = $city.', '.$state; $wfoString = assemble_wfostring($wfo,$wfoEW); switch ($satType) { case 'vis': $innerFrameType = $wfoEW=='west'?($wfo=='hnl'?'sat3':'sat2b'):'sat'; $loopText = 'Visible'; break; case 'ir2f': $innerFrameType = $wfoEW=='west'?'sat2b':'sat2'; $loopText = 'Fire Enhanced IR'; break; case 'ir2': $innerFrameType = $wfoEW=='west'?'sat2b':'sat2'; $loopText = 'Enhanced Infrared'; break; case 'ir4': $innerFrameType = $wfoEW=='west'?'sat2b':'sat2'; $loopText = 'Infrared - No Enhancement'; break; case 'avn': $innerFrameType = $wfoEW=='west'?'sat2b':'sat2'; $loopText = 'Infrared - AVN Color'; break; case 'bd': $innerFrameType = $wfoEW=='west'?'sat2b':'sat2'; $loopText = 'Infrared - Dvorak'; break; case 'jsl': $innerFrameType = $wfoEW=='west'?'sat2b':'sat2'; $loopText = 'Infrared - JSL Color'; break; case 'rgb': $innerFrameType = $wfoEW=='west'?($wfo=='hnl'?'sat3':'sat2b'):'sat2'; $loopText = 'Infrared - False Color RGB'; break; case 'ft': $innerFrameType = $wfoEW=='west'?'sat2b':'sat2'; $loopText = 'Infrared - Funktop Color'; break; case 'rb': $innerFrameType = $wfoEW=='west'?($wfo=='hnl'?'sat3':'sat2b'):'sat2'; $loopText = 'Infrared - Rainbow'; } if ($wfo == 'abq') $innerFrameType = 'sat2c'; // Albuquerque is an outlier! function assemble_wfostring($wfo,$wfoEW) { $ourString = ''; $ourString = $wfoEW.'/wfo/'.$wfo.'/h5-'.($wfoEW=="east"?'mloop-':'loop-'); return $ourString; } ?>