<%@ page language="C#" autoeventwireup="true" inherits="EMap_Com_Account_Map, ZhaoPinXiTong" enableEventValidation="false" %>

<%@ Register Tagprefix="UserControls" TagName="Right" Src="../Controls/Right_Company_Basic.ascx" %>
<%@ Register Tagprefix="UserControls" TagName="Header" Src="../Controls/Header_Company_User.ascx" %>
<%@ Register Tagprefix="UserControls" TagName="Footer" Src="../Controls/Footer.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
  <head>
    <title><%= "招聘中心 - 电子地图_" + pub_WebName %></title>
    <meta name="author" content="www.zhaopinxitong.com,无忧招聘系统开发制作" />
    <LINK rel="stylesheet" type="text/css" href="../Css/Style.css">
<script language="javascript">
    function initMap() {
        var url = "proxy.aspx?api=template1000&CID=zpxt&tid=tid1000&cityName=" + encodeURIComponent(document.getElementById("cityName").value) +
		  "&nid=" + document.getElementById("nid").value + "&width=550&height=350&zoom=10&control=2";
        document.getElementById("map").src = url;
    }
    function updateMap() {
        if (!map.getLatLon()) {
            alert("请先标注位置");
            return;
        }
        var url = "proxy.aspx?api=poiUpdate&CID=zpxt&tid=tid1000&cityName=" + encodeURIComponent(document.getElementById("cityName").value) +
          "&nid=" + document.getElementById("nid").value +
          "&name=" + encodeURIComponent(document.getElementById("name").value) +
          "&address=" + encodeURIComponent(document.getElementById("address").value) +
          "&phone=" + encodeURIComponent(document.getElementById("phone").value) +
          "&latLon=" + map.getLatLon();
        document.getElementById("mapSubmit").src = url;
    }
    function setNid(nid) {
        document.getElementById("nid").value = nid;
    }
	</script>
  </head>
  <body onLoad="initMap()">
  <form id="Form1" method="post" Runat=server>
  <!--页面顶部-->
  <UserControls:Header Runat=server id="Header1"></UserControls:Header>
  <!--页面主体-->
  <table width="992" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr><td align="center" bgcolor="#FFFFFF"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr valign="top"> 
<td width="188"  class="UserMenu_bg"><!--菜单--><UserControls:Right Runat=server id="Right1" /></td>
          <td bgcolor="#FFFFFF">
          <!--右侧-->
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="userbg_top"></td>
            </tr>
            <tr>
              <td valign="top"  background="../Images/Usercenter/right1_bg.gif" style="padding-left:8px;padding-right:8px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="28" valign="bottom" background="../Images/Company/title1_bg.gif" style="padding-left:5px;padding-right:5px;"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr height="28">
                      <td class="userbuttom12"><a href="../Company/Com_Account_Basic.aspx">基本信息</a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="../Company/Com_Department.aspx">部门管理</a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="../Company/Com_Picture_Logo.aspx">公司图片</a></td>
                      <td width="5"></td>
                       <td class="userbuttom12"><a href="../Company/Com_CompanyImage.aspx">形象图片</a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="../Company/Com_Picture_Cert.aspx">营业执照</a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="../Company/Com_Template.aspx">公司模板</a></td>
                      <td width="5"></td>
                      <td class="userbuttom11"><a href="../EMap/Com_Account_Map.aspx" class="white"><b>电子地图</b></a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="../Company/Com_Mail_Template.aspx">邮件模板</a></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td height="5"></td>
              </tr>
            </table>
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr><td height="25" style="PADDING-LEFT: 12px; PADDING-TOP: 3px; BORDER-BOTTOM: #d3d3d3 1px solid"><strong>电子地图</strong></td></tr>
	 </table>
<form name="f">
<table>
<tr valign=top><td>

 <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td>公司名</td>
            <td><input Runat=server id="name" type="text" name="name" readonly /></td>
          </tr>
          <tr>
            <td width="60">城市</td>
            <td><input Runat=server id="cityName" type="text" name="cityName" value="北京市" onChange="map.go2City(this.value)"/></td>
          </tr>
          <tr>
            <td valign=top>地址</td>
            <td><input Runat=server id="address" type="text" name="address"/><br>
            <input name="button" type="button" onClick="map.go2Search(document.getElementById('address').value);" value="在地图上匹配地址"/>
            </td>
          </tr>
          <tr>
            <td>电话</td>
            <td><input Runat=server id="phone" type="text" name="phone"/></td>
          </tr>
          <tr>
            <td>标注ID</td>
            <td><input Runat=server id="nid" type="text" name="nid" value=""/><!-- 此输入框用于接收返回的地图标点NID值 --></td>
          </tr>
        </table>
        <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td><input type="button" name="submit" value=" 标注 " onClick="updateMap()"/>&nbsp;
				<input type="reset" name="reset" value="复位"/>&nbsp;
				<input type="button" name="submit2" value="重载地图" onClick="initMap()"/></td>
          </tr>
        </table>

</td><td width="550">
<iframe id="map" name="map" src="" width=550 height=350 frameborder=0 scrolling=no></iframe>
<iframe id="mapSubmit" name="mapSubmit" src="" width=0 height=0 frameborder=0 scrolling=no></iframe>
操作流程
1：在全国下拉中找到所在城市2：点击 在图上匹配地址按钮 3：点击 标注按钮 4：保存。

</td></tr>
</table>
<!--保存-->
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr valign="top" bgcolor="#ffffff"><td height="8"></td></tr>
	<tr valign="top" bgcolor="#ffffff">
		<td style="PADDING-LEFT: 220px; PADDING-TOP: 6px; BORDER-Top: #d3d3d3 1px solid">
		<asp:Button Runat=server ID="btn_Submit" Text="保存" Width="60" Height="30" OnClick="btn_Submit_Click"></asp:Button>
			<asp:Label Runat=server ID="lbl_Error" ForeColor="#ff0000"></asp:Label>
		</td>
	</tr>
</table>
</form>
</td>
                  </tr>
                  <tr>
              <td class="userbg_bottom"></td>
            </tr>
                </table></td>
              </tr>
            </table></td>
              </tr>
            </table>
			<!--页面底部-->
<UserControls:Footer Runat=server id="Footer1"></UserControls:Footer>
  </form>
  </body>
</html>

