Exemplo n.º 1
0
}
if (!$nohtml || $format == 'shapefile') {
    $t = new MyView();
    $t->title = "Network Station Tables";
    $t->thispage = "iem-networks";
    $page = 'single.phtml';
    $sextra = "";
    if (isset($_REQUEST['station'])) {
        $t->sites_current = "tables";
        include "setup.php";
        $page = 'sites.phtml';
        $sextra = sprintf("<input type=\"hidden\" value=\"%s\" name=\"station\">", $_REQUEST["station"]);
    }
    $ar = array("html" => "HTML Table", "csv" => "Comma Delimited", "shapefile" => "ESRI Shapefile", "gempak" => "GEMPAK Station Table", "awips" => "AWIPS Station Table", "madis" => "MADIS Station Table");
    $fselect = make_select("format", $format, $ar);
    $nselect = selectNetwork($network, array("_ALL_" => "All Networks"));
    $t->content = <<<EOF
<h3>Network Location Tables</h3>

<div class="well pull-right">
<a href="new-rss.php"><img src="/images/rss.gif" style="border: 0px;" alt="RSS" /></a> Feed of newly 
added stations.

<br /><strong>Special Table Requests</strong>
<ul>
 <li><a href="networks.php?special=allasos&format=gempak&nohtml">Global METAR in GEMPAK Format</a></li>
</ul>
</div>


<p>With this form, you can generate a station table for any
Exemplo n.º 2
0
include "../../include/imagemaps.php";
include "../../include/myview.php";
$network = isset($_GET["network"]) ? $_GET["network"] : "IA_ASOS";
$t = new MyView();
$t->title = "Site Locator";
$t->thispage = "iem-sites";
$t->headextra = <<<EOF
<link rel="stylesheet" href="/vendor/openlayers/3.5.0/ol.css" type="text/css">
<link type="text/css" href="/vendor/openlayers/3.5.0/ol3-layerswitcher.css" rel="stylesheet" />
EOF;
$t->jsextra = <<<EOF
<script src="/vendor/openlayers/3.5.0/ol.js" type="text/javascript"></script>
<script src='/vendor/openlayers/3.5.0/ol3-layerswitcher.js'></script>
<script src="/js/olselect.php?network={$network}"></script>
EOF;
$nselect = selectNetwork($network);
$n2select = networkSelect($network, "");
$t->content = <<<EOF
<h3>IEM Site Information</h3><p>

<p>The IEM collects information from many sites.  These sites are organized into
networks based on their geography and/or the organization who administers the
network.  This application provides some metadata and site specific applications
you may find useful.</p>

<p>
<form name="switcher">
<table class="table table-condensed table-striped">
<tr>
 <th>Select By Network:</th>
 <td>{$nselect}</td>