CVS: phpweather test.php,1.2,1.3
Brought to you by:
iridium
From: Max H. <ir...@us...> - 2002-03-26 18:39:50
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv11600 Modified Files: test.php Log Message: Added icon for windchilled temperature, updated test.php to include images Index: test.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/test.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- test.php 24 Mar 2002 16:43:24 -0000 1.2 +++ test.php 26 Mar 2002 18:39:45 -0000 1.3 @@ -7,7 +7,7 @@ <body> <?php -error_reporting(E_ERROR); +error_reporting(E_ALL); require('phpweather.php'); require('pw_utilities.php'); @@ -18,10 +18,15 @@ $language = "en"; include(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php"); + include(PHPWEATHER_BASE_DIR . "/output/pw_images.php"); $type = 'pw_text_' . $language; $text = new $type($weather, array()); $text->print_pretty(); +$icons = new pw_images($weather, array()); +echo '<img src="'.$icons->get_sky_image().'" />'; +echo '<img src="'.$icons->get_winddir_image().'" />'; +echo '<img src="'.$icons->get_temp_image().'" />'; ?> |