CVS: phpweather test.php,1.6,1.7
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2003-06-14 23:35:41
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1:/tmp/cvs-serv13941 Modified Files: test.php Log Message: Now with the entire decoded METAR. Index: test.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/test.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- test.php 10 Nov 2002 23:10:46 -0000 1.6 +++ test.php 14 Jun 2003 23:35:38 -0000 1.7 @@ -50,13 +50,24 @@ $type = 'pw_text_' . $language; $text = new $type($weather); + + echo "<h2>Report made by <code>$type</code></h2>\n"; - echo "<blockquote>\n" . $text->print_pretty() . "</blockquote>\n"; + echo "<p>\n" . $text->print_pretty() . "</p>\n"; + + echo "<h2>Images selected by <code>pw_images</code></h2>\n"; $icons = new pw_images($weather); echo '<p><img src="'.$icons->get_sky_image().'" /> '; echo '<img src="'.$icons->get_winddir_image().'" /> '; echo '<img src="'.$icons->get_temp_image().'" /></p>'; + + echo "<h2>The decoded METAR follows</h2>\n"; + + echo "<pre>\n"; + print_r($weather->decode_metar()); + echo "</pre>\n"; + } ?> |