示例#1
0
文件: wetter.php 项目: mp84/pool
<?php

include 'YahooWeather.class.php';
// create an instance of the class with L.A.'s WOEID
$weather = new YahooWeather(682994, 'c');
$temperature = $weather->getTemperature();
$city = $weather->getLocationCity();
$country = $weather->getLocationCountry();
//$weather->getForecastHigh(4);
//echo "It is now $temperature in $city, $country. ";
$condition = $weather->getForecastConditionCode(0);
//echo "<img src=\"../icons/wetter/" . $condition . ".png\" height=\"70\">";
$count = count($weather->weather_forecast);
//echo $count;
$var = <<<HTML
<div class="wetterAppletHeute">
\t<div class="wetterTag">
\t\tHeute
\t\t<hr/>
\t</div>
\t<div class="wetterIcon">
\t\t<img src="../icons/wetter/{$weather->getForecastConditionCode(0)}.png" height="70">
\t</div>
\t<div class="wetterGradHeute">
\t\t{$weather->getTemperature()}
\t</div>
\t<div class="wetterTextHeute">
\t\t{$weather->getDescription()} 
\t</div>
\t<div style=""></div>
\t<div class="wetterHighHeute">