# TNET Services, Inc. # # Copyright: (c) 1992-2007 Copyright TNET Services, Inc. ############################################################################ # This program 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. # # This program 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 this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA ############################################################################ # This document uses Tab 4 Settings ############################################################################ /*************************** Version 20170113 *****************************/ $viewSource = false; if (isset($_REQUEST['sce']) && strtolower($_REQUEST['sce']) == 'view' ) { //--self downloader -- $filenameReal = __FILE__; $download_size = filesize($filenameReal); header('Pragma: public'); header('Cache-Control: private'); header('Cache-Control: no-cache, must-revalidate'); header("Content-type: text/plain"); header("Accept-Ranges: bytes"); header("Content-Length: $download_size"); header('Connection: close'); readfile($filenameReal); exit; } ############################################################################ require_once("Settings.php"); require_once("common.php"); ############################################################################ $TITLE = langtransstr($SITE['organ']) . " - " .langtransstr('CDC Influenza Weekly Map'); $showGizmo = true; // set to false to exclude the gizmo include("top.php"); ############################################################################ ############################### Settings ################################## $divWidth = 656; // Set width of maps from 656 to 1132 $missingImage = 'ajax-images/missing-piece.jpg'; // Path and filename of 'missing image' image $invalidOK = false; // If true, W3C validation will fail at 'onerror' attribute but show '$missingImage' // If false, W3C validation passes, but 'alt' appears instead of '$missingImage' $useOnClick = false; // Use 'onclick' rather than 'onmouseover' to view maps ############################ End of Settings ################################ $mapHeight = $divWidth*.7; // Map heights are proportional to width ?> 5)||((date("N")==5)&&(date("G")>10)); $currentWeek = $_curWeek-($mapUp?1:2); // Maps update on Friday for last week's data $currentWeek = ($currentWeek<1?(52+$currentWeek):$currentWeek); #$currentWeek = 41; // Debug Code $_year = date("Y"); $outOfSeason = ($currentWeek>(20+$SaturdayJan3[date("Y")]) && $currentWeek<41); $rangeStart = (($currentWeek<39)?$_year-1:$_year); // Beginning Season Year // Manage weeks 50, 51, and 52 which may still be latest map after New Year #$rangeStart = 2013; // Debug Code #echo '$_curWeek: '.$_curWeek.' $currentWeek: '.$currentWeek.'
'; // Debug Code if ($currentWeek <21 || $currentWeek>50) { $_year -= 1; } $rangeStart = $_year; if ($currentWeek<1 || $currentWeek>50) { // First week of year is still last year's map/data // $currentWeek = $currentWeek - ($mapUp?0:1); } if ( $_curWeek==01 || (date("W"==2) && !$mapUp) ) { // Need to be past 2pm Friday of 2nd week of New Year for 1st Jan map to be up // $currentWeek = 52; } $_week = $currentWeek; $rangeEnd = $rangeStart+1; // End Season Year #echo 'flumap-select: $currentWeek = '.$currentWeek.' $_week = '.$_week.' $_year = .'.$_year.'

'; ?>

Current Influenza Season

Past Influenza Seasons

Influenza Season is from the first full week of October through Mid-May

(Be aware that the flu maps are updated on Friday of the week after the data is captured)

'; } else { echo '
'; include ("flumap-select.php"); echo '
'; include("inc-flumap.php"); } ?>