<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="webmapconfig.aspx.cs" Inherits="FangPage.Admin.webmapconfig" %>

<%@ Register TagPrefix="cc1" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="UserControls/TextareaResize.ascx" %>
<!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">
<head id="Head1" runat="server">
    <title>电子地图标注</title>

    <script type="text/javascript" src="js/common.js"></script>

    <link href="styles/bmsmanager.css" type="text/css" rel="stylesheet" />
    <link href="styles/modelpopup.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" src="js/modalpopup.js"></script>
    
    <script language="javascript">
      function insertMap() {
        var url = "proxy.aspx?api=template1000&CID=48516&tid=tid1000&width=600&height=400&zoom=10&control=2&nid=" + document.getElementById("<%= txtMap.ClientID %>").value;
	    var winname = window.open(url, '_blank');
      }
 
      function setNid(nid) {
        document.getElementById("<%= txtMap.ClientID %>").value = nid;
      }
  
    </script>
    <script type="text/javascript" language="javascript">
    function GetOpenDialogImg(txtID,imgID) 
    {
        var strImgPath= window.showModalDialog("../ImageManager.aspx?RelativePath=map","","dialogwidth:526px;dialogheight:600px;center:yes;status:no;scroll:no;help:no");
        
        var serverTxt=document.getElementById(txtID);
        var oldserverTxt=serverTxt.value;
        serverTxt.value=strImgPath;
        
        var serverImg=document.getElementById(imgID);
        var oldserverImg=serverImg.src;
        serverImg.src=strImgPath;
        
        if(serverTxt.value=="undefined")
        {
            serverImg.src=oldserverImg;
            serverTxt.value=oldserverTxt;
        }
    }
    function funClearImg(txtID,imgID)
    {
       document.getElementById(txtID).value="";
       document.getElementById(imgID).src="/UpLoadFiles/noPic.gif";
    }
    </script>

</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5">
    <div class="ManagerForm">
        <form id="Form1" method="post" runat="server" name="Form1">
        <fieldset>
            <legend style="background: url(images/icons/map.gif) no-repeat 3px;padding-left:50px;">电子地图标注</legend>
            <script type="text/javascript">showhint(0, '可将您公司所在的地理位置标注在地图上，让客户快速的了解您公司的地址。');</script>
            <table class="table1" cellspacing="0" cellpadding="8" width="100%" align="center">
                <tr>
                    <td colspan="4">
                        <table width="100%">
                            <tr>
                                <td style="width: 200px" align="right" valign="bottom">
                                   电子地图代码：
                                </td>
                                <td align="left" valign="middle">
                                  <asp:TextBox ID="txtMap" runat="server" CssClass="intput_sub" Width="240px"></asp:TextBox>
                                  <input type="button" name="insert" value="插入地图" class="ManagerButton" onClick="insertMap();" id="Button1"/>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td height="20">
                    </td>
                </tr>
            </table>
        </fieldset>
        <cc1:Hint ID="Hint1" runat="server" HintImageUrl="images"></cc1:Hint>
        <div align="center">
            <cc1:Button ID="SaveInfo" runat="server" Text="保 存" OnClick="SaveInfo_Click"></cc1:Button>
        </div>
        </form>
    </div>
</body>
</html>