File "wamap.php"
Full path: /www/ttest/nagoya/wamap/wamap.php
File size: 2.24 KiB (2296 bytes)
MIME-type: text/x-php
Charset: utf-8
<?php
$seldate = isset($_GET["date"]) ? htmlspecialchars($_GET["date"]) : "";
$selall = isset($_GET["all"]) ? htmlspecialchars($_GET["all"]) : "";
$selrows = isset($_GET["rows"]) ? htmlspecialchars($_GET["rows"]) : "";
//var_dump($_GET);
$fdata = file("../output/". $seldate);
$data = "";
if ($selall == "true")
{
$len = count($fdata);
for($i = 0; $i < $len; $i++)
{
if ($i == 0)
continue;
if (strcmp($data, "") != 0)
$data .= "#";
$data .= trim($fdata[$i]);
}
}
else
{
$idx = explode(",", $selrows);
$len = count($idx);
for($i = 0; $i < $len; $i++)
{
if (strcmp($data, "") != 0)
$data .= "#";
$data .= trim($fdata[$idx[$i]]);
}
}
//print $data;
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n";
print "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\" >\r\n";
print "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"ja\" lang=\"ja\">\r\n";
print "<head>\r\n";
print "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\" />\r\n";
print "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\r\n";
print "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\r\n";
print "<meta equiv=\"expires\" content=\"0\" />\r\n";
print "<meta http-equiv=\"imagetoolbar\" content=\"no\" />\r\n";
print "<!--ie image gizmo OFF!-->\r\n";
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"./css/style.css\" />\r\n";
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"/library/jquery-ui-1.10.3/jquery-ui.css\" />\r\n";
print "<script src=\"/library/jquery-1.10.2/jquery-1.10.2.min.js\"></script>\r\n";
print "<script src=\"/library/jquery-ui-1.10.3/jquery-ui.min.js\"></script>\r\n";
print "<script src=\"/map/mapserver-extensions/OpenLayers-2.10/OpenLayers.js\"></script>\r\n";
print "<script type=\"text/javascript\">";
?>
var seldata = "<?php echo $data; ?>";
seldata = seldata.split("#");
<?php
print "</script>";
print "<script src=\"./mapdraw.js\"></script>\r\n";
print "<title>航跡波警報システム-試験-</title>\r\n";
print "</head>\r\n";
print "<body>\r\n";
print "<div id=\"map\"></div>\r\n";
print "<a href=\"./list.php?date=". $seldate. "\" id=\"to_top\">データ選択に戻る</a><br>\r\n";
print "</body>\r\n";
print "</html>\r\n";
?>