Data from '.mssql_result($result, 0, 3).' Latitude: '.mssql_result($result, 0, 5).' North; Longitude: '.mssql_result($result, 0, 4).' East; Altitude: '.mssql_result($result, 0, 6).' Meters; Picture

Realtime data for last 3 days

'; } else { $tit = 'Дані метеорологічної станції '.mssql_result($result, 0, 2); $head = '

Дані метеорологічної станції '.mssql_result($result, 0, 2).'

Широта: '.mssql_result($result, 0, 5).' Пн.; Довгота: '.mssql_result($result, 0, 4).' Сх.; Висота: '.mssql_result($result, 0, 6).' метрів; Фотографія

Дані за останні 3 доби

'; } $tabname = mssql_result($result, 0, 0); echo ''.$tit.' '.$head.'

'; if($lng == "en") echo ''; else echo ''; // echo ''; //at := Stat + Format(tt, [IntToStr(Trunc(60/(NoOfFields-1))) + '%', Format('%s
', [NoS, FixMEASID.Value, FixLupMeasDesc.Value])]); $sql= 'select _temp.time, _temp.val, _temp.dew, _rainfall.val, _pressure.val, _wind.wd, _wind.wsp from _temp, _rainfall, _pressure, _wind where _temp.id = '.$stno.' and _rainfall.id = '.$stno.' and _pressure.id = '.$stno.' and _wind.id = '.$stno.' and _temp.time > getdate() - 3 and _temp.time *= _rainfall.time and _temp.time *= _pressure.time and _temp.time *= _wind.dt order by _temp.time desc'; $rs= mssql_query ($sql, $con); while ($row1 = mssql_fetch_array ($rs)) { $stt = strtotime($row1[0]); echo ""; echo ''; echo ''; $sg = Date('G', $stt); if ($row1[3] == '') echo ''; else if ($sg == 9 | $sg == 8 | $sg == 21 | $sg == 20) echo ''; else if ($sg == 3 | $sg == 2 | $sg == 15 | $sg == 14) echo ''; /* DecodeTime(Query.Fields.Fields[0].AsDateTime, Hour, Min, Sec, MSec); if Query.Fields.Fields[2].IsNull then Stat := Stat + '' else if (Hour = 9) or (Hour = 8) or (Hour = 21) or (Hour = 20) then Stat := Stat + Query.Fields.Fields[2].AsString + ' (12)' else if (Hour = 3) or (Hour = 2) or (Hour = 15) or (Hour = 14) then Stat := Stat + Query.Fields.Fields[2].AsString + ' (6)' else Stat := Stat + Query.Fields.Fields[2].AsString + ''; */ echo ''; echo ''; echo ''; } mssql_close ($con); ?>
Date and time
Air temperature
Dew point
Precipitation
Air pressure
Wind direction
Wind speed
Дата і час
Температура повітря
Температура точки роси
Опади
Атмосферний тиск
Напрямок вітру
Швидкість вітру
".Date('d.m.Y G:i', $stt)."'.$row1[1].''.$row1[2].''.$row1[3].' (12)'.$row1[3].' (6)'.$row1[4].''.$row1[5].''.$row1[6].'