<?php

require_once("config.php");
require_once("modules/Resource.php");

$zone=intval($_GET['zone']);
$idResourceName=intval($_GET['idResourceName']);
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="css/femap.css" />
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="js/femap.js"></script>
<script type="text/javascript" src="points.php?zone=<?php print $zone?>&idResourceName=<?php print $idResourceName?>"></script>
</head>
<body>
<div id="map-container">
	<div id="map" class="map-zone-<?php print $zone?>">
		<div id="point-info"></div> 
	</div>
</div>
Filter: <select name="idResourceName" onChange="document.location.href='map.php?zone=<?php print $zone?>&idResourceName='+$(this).val();">
<?php	
	echo('<option value="0">Show All</option>');
	$types=ResourceName::getAllNames();
	foreach($types as $t){
		if($t->id==$idResourceName){
			echo('<option selected="selected" value="'.$t->id.'">'.$t->name.'</option>');
		}else{
			echo('<option value="'.$t->id.'">'.$t->name.'</option>');
		}
	}
?>
</select>
<p><a href="addMap.php?zone=<?php print $zone?>">&gt;&gt; add new points</a></p>
<p><a href="index.php">&gt;&gt; choose zone</a></p>
<p><a href="http://forums.fallenearth.com/fallenearth/showthread.php?p=385340#post385340">&gt;&gt; Feedback?</a></p> 
<p>Code by <a href="mailto:femap@roguishness.com?subject=Fallen Earth Resource Map">Flimgoblin</a>, map images by <a href="http://www.globaltechatlas.info">GlobalTech Atlas</a> and CarnagePool. Sector 3 scaling provided by CarnagePool.</p>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-11482494-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>

