</script> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" media="all" type="text/css" href="style.css" /> <title>World Map Test</title> </head> <body onload="timeMsg()"> <h4>The world in 850 x 410 pixels</h4> <?php echo "<p>Latitude: {$lat}<br/>Longitude: {$lon}</p>\n"; ?> <div id="worldmap"> <div id="location" style="left:<?php echo $x; ?> px;top:<?php echo $y; ?> px;"> <img name="loeschi" src="img/aussenden_anim0.png" alt="o" /> </div> </div> <?php $url_short = truncateUrl($url); echo "<div class='fig'><a href='{$homepage}'>{$name}</a></div>\n"; echo "<div class='fig'><a href='{$url}'>{$url_short}</a></div>\n"; echo "<div class='fig'>{$city}</div>\n"; echo "<div class='fig'>{$country}</div>\n"; ?> </body> </html>
function displayImportList() { $query = ' select `id`, `name`, `homepage`, `url`, `city`, `country` from `radios_import` where `imported` = false and `url_valid` = true order by `country`, `city`, `name` '; $result = mysql_query($query) or die('Datenbank-Abfrage fehlgeschlagen'); ?> <table id="streamlist"> <tr> <th id="hide"></th> <th>STATION</th> <th>URL</th> <th>CITY</th> <th>COUNTRY</th> </tr> <?php $bgclr = 0; while (list($id, $name, $homepage, $url, $city, $country) = mysql_fetch_array($result)) { echo "<tr class=\"bg{$bgclr}\">\n"; $bgclr += 1; $bgclr = fmod($bgclr, 2); echo " <td class=\"{$class}\"><input class=\"button\" type=\"button\" name=\"active[]\" value=\"{$id}\" /></td>\n"; echo " <td><a href=\"{$homepage}\">{$name}</a></td>\n"; echo " <td><a href=\"{$url}\">" . truncateUrl($url) . "</a></td>\n"; echo " <td>{$city}</td>\n"; echo " <td> {$country}</td>\n"; echo "</tr>\n"; } echo "</table>\n"; echo "<input class=\"button\" type=\"submit\" value=\"Update / Delete\" />"; }