<?php
$path = "../../../../../";
require_once ($path . 'core/includes/header.inc.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>Google Map Coordinates Selector</title>
	<script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="//maps.google.com/maps/api/js?libraries=places&key=<?=GOOGLE_MAPS_JS_API_KEY?>"></script>
	<script src="jquery.input_hint.js" type="text/javascript" charset="utf-8"></script>
	<script src="map.js" type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" href="styles/map.css" type="text/css" media="screen" charset="utf-8" />

</head>

<body>

	<div id="wrapper">
		<div id="map_canvas"></div>
		<form id="search_map_form" class="clearfix">
			<input type="text" name="search_map" value="" title="Search Address, City, State, or Zipcode" id="search_map" />
			<input style="display: none;" type="submit" name="search_address_submit" value="Search" id="search_address_submit" />
			<input type="hidden" name="long" value="" id="long" />
			<input type="hidden" name="lat" value="" id="lat" />
			<input type="hidden" name="input" value="<?=$_GET['input']?>" id="input" />
			<a href="javascript:;" id="search_address_button">Search Address</a>
			<a href="javascript:;" id="select_coords_button">Set Coordinates</a>
			<p class="field_tip">Search by address or drag the push-pin to the desired coordinates.</p>
			<p id="on_coords"><span id="on_lat"></span>, <span id="on_long"></span></p>
		</form>
	</div>

</body>
</html>
