<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
<{* $Id: main_gmap_location.html,v 1.3 2008/12/18 13:23:16 ohwada Exp $ *}>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Thu, 01 Dec 1994 16:00:00 GMT" />
<title>webphoto - <{$lang_title}></title>
<link href="<{$xoops_url}>/modules/<{$xoops_dirname}>/libs/gmap.css" type="text/css" rel="stylesheet"/>
<script src="http://maps.google.com/maps?file=api&amp;hl=<{$xoops_langcode}>&amp;v=2&amp;key=<{$gmap_apikey}>" type="text/javascript" charset="utf-8"></script>
<script src="<{$xoops_url}>/modules/<{$xoops_dirname}>/libs/gmap.js" type="text/javascript"></script>
<{include file="db:`$mydirname`_inc_gmap_js.html" }>
</head>
<body onload="webphoto_gmap_load_get_location_marks()" onunload="GUnload()">

<{* === gmap js === *}>
<{if $show_gmap }>
  <{include file="db:`$mydirname`_inc_gmap_js.html" }>

<{* -- gmap loop -- *}>
  <{counter name="gmap_i" assign="gmap_i" start=0 print=false }><br />
  <{foreach item=gmap from=$gmap_list}>

<script type="text/javascript">
//<![CDATA[

  webphoto_gmap_info[<{$gmap_i}>] = new Array( <{$gmap.item_gmap_latitude}>, <{$gmap.item_gmap_longitude}>, 0, '<{$gmap.info}>' );

//]]>
</script>

  <{counter name="gmap_i" assign="gmap_i" print=false }>
  <{/foreach}>
<{* -- gmap loop end -- *}>

<{/if}>
<{* === gmap js end === *}>

<h4><{$lang_title}></h4>

<noscript>
  <div class="webphoto_error"><{$lang_js_invalid}></div>
</noscript>

<form action="#" onsubmit="webphoto_gmap_searchAddress(this.webphoto_search.value); return false">
<{$lang_address}> 
<input type="text" id="webphoto_search" name="webphoto_search" value="<{$gmap_address}>" size="60" />
<input type="submit" value="<{$lang_search}>" />
</form>
<br />

<b><{$lang_current_location}></b><br />
<div id="webphoto_gmap_current_location"></div>
<br />

<{if $use_nishioka_inverse == 'true' }>
	<b><{$lang_current_location}></b><br />
	<div id="webphoto_gmap_current_address"></div>
	<br />
<{/if}>

<b><{$lang_search_list}></b><br />
<div id="webphoto_gmap_list"></div>
<br />

<div id="webphoto_gmap_map" style="width:95%; height:<{$gmap_height}>px; border:1px solid #909090; margin-bottom:6px;" >Loading ...</div>
<br />

<input type="button" value="<{$lang_get_location}>" onclick="webphoto_gmap_setParentCenterLocation()" />

<{if $show_set_addr_jp }>
  <input type="button" value="<{$lang_get_addr}>" onclick="webphoto_gmap_setAddressJp()" />
<{/if}>

<{if $show_close }>
  <input type="button" value="<{$lang_close}>" onclick="window.close()" />
<{/if}>

<{if $show_disp_off }>
  <input type="button" value="<{$lang_disp_off}>" onclick="webphoto_gmap_dispOff()">
<{/if}>

<br /><br />

</body>
</html>
