Esempio n. 1
0
		
		<?php 
ini_set("display_errors", 0);
include_once 'dbconnector.php';
/* Every variable of the getter functions to get the actual data */
$eggname = getName();
$eggfoi = getFoiIdMap();
$eggcoords = getEggCoords();
$eggtemp = getLatestOffering('TEMPERATURE');
$egghum = getLatestOffering('AIR_HUMIDITY');
$eggco = getLatestOffering('CO_CONCENTRATION');
$eggno2 = getLatestOffering('NO2_CONCENTRATION');
$eggo3 = getLatestOffering('O3_CONCENTRATION');
$eggtime = getLatestTimeStamp();
$lanuvname = getLanuvName();
$lanuvfoi = getLanuvFoiId();
$lanuvcoords = getLanuvCoords();
$lanuvno = getLatestLanuvOffering('NO_CONCENTRATION');
$lanuvno2 = getLatestLanuvOffering('NO2_CONCENTRATION');
$lanuvpm10 = getLatestLanuvOffering('PM10_CONCENTRATION');
$lanuvso2 = getLatestLanuvOffering('SO2_CONCENTRATION');
$lanuvo3 = getLatestLanuvOffering('O3_CONCENTRATION');
$lanuvtime = getLatestLanuvTimeStamp();
/* Define today and two days ago for the redirection from the popup to the table.
			To totday a day must be added up so the datepicker chooses the correct day. */
$vorgestern = date("Y-m-d", strtotime("-2 day"));
$heute = date("Y-m-d");
?>
		
		<script language="javascript" type="text/javascript">
		
Esempio n. 2
0
function LANUVumwandeln()
{
    $ausgabe = getLanuvFoiId();
    $zufüllende = getLanuvFoiId2();
    $j = 0;
    while ($j <= 1) {
        if ($zufüllende[$j]['feature_of_interest_id'] == $ausgabe[$j]['feature_of_interest_id']) {
        } else {
            $zufüllende[$j + 1]['feature_of_interest_id'] = $zufüllende[$j]['feature_of_interest_id'];
            $zufüllende[$j + 1]['max'] = $zufüllende[$j]['max'];
            $zufüllende[$j]['feature_of_interest_id'] = "_";
            $zufüllende[$j]['max'] = "_";
        }
        $j++;
    }
    return $zufüllende;
}