<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="AD_Company.aspx.cs" Inherits="MYAPP.Manage.CustomMAP.Project.AD_Company" ValidateRequest="false" %>
<!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">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="/CSS/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/date.js"></script>
<script type="text/javascript" src="/js/coe.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
    var openwindow;
    function GetMapPolygon() {
        window.open('/map/GetMap_Polygon.aspx?MAP_ID=<%=_Project_ID%>&lat=' + $('lat').value + '&lng=' + $('lng').value + '&zoom=' + $('zoom').value, 'GetPolygon', '');
    }
    function GetMapPolygonStr() {
        return $('map_polygon').value;
    }
    function SetMapPolygon(str) {
        $('map_polygon').value = str;
    }

    function GetMAPLLZ() {
        window.open('/map/GetMap_LLZ.aspx?MAP_ID=<%=_Project_ID%>&lat=' + $('lat').value + '&lng=' + $('lng').value + '&zoom=' + $('zoom').value, 'CustomeMAP', '');
    }
    function SetMAPLLZ(lng, lat, zoom) {
        $('lat').value = lat;
        $('lng').value = lng;
        $('zoom').value = zoom;
    }
</script>
<link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="theform" runat="server">
  <table width="100%" cellspacing="2" border="1" align="center" cellpadding="0" bordercolor="#CCCCCC"
            class="board_kong">
    <tr>
      <td><table cellspacing="1" cellpadding="0" width="100%" border="0">
          <tr>
            <td style="border-bottom: #CCCCCC 1px solid; height: 24px"><table class="title_table">
                <tr>
                  <td class="l_title">[Company]</td>
                  <td width="100" align="center" class="l_title">&nbsp;</td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td><div id="TabbedPanels1" class="TabbedPanels">
                <ul class="TabbedPanelsTabGroup">
                  <li class="TabbedPanelsTab" tabindex="0">General</li>
                  <li class="TabbedPanelsTab" tabindex="0">Polygon</li>
                  <li class="TabbedPanelsTab displaynone" tabindex="0">Field</li>
                  <li class="TabbedPanelsTab" tabindex="0">Events</li>
                  <li class="TabbedPanelsTab" tabindex="0">Accessories</li>
                </ul>
                <div class="TabbedPanelsContentGroup">
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title_request">type:</td>
                        <td align="left"><asp:DropDownList ID="type" runat="server"> </asp:DropDownList></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title_request">名称:</td>
                        <td align="left"><asp:TextBox ID="name" runat="server" Columns="30" />                  
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="name"
                                                            Display="Dynamic" ErrorMessage="name" SetFocusOnError="True">*</asp:RequiredFieldValidator></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">地址:</td>
                        <td align="left"><asp:TextBox Columns="80" ID="address" runat="server" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">电话:</td>
                        <td align="left"><asp:TextBox Columns="80" ID="phone" runat="server" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">网站:</td>
                        <td align="left"><asp:TextBox Columns="80" ID="web" runat="server" />
                          &quot;http://&quot;</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">罗略图:</td>
                        <td align="left"><asp:TextBox Columns="80" ID="spic" runat="server" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">logo:</td>
                        <td align="left"><asp:TextBox Columns="80" ID="logo" runat="server" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">打开地址:</td>
                        <td align="left"><asp:TextBox Columns="80" ID="openurl" runat="server" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">属性:</td>
                        <td align="left"><asp:CheckBox ID="visible" runat="server" Text='visible' Checked="true" />                  
                        <asp:CheckBox ID="enabled" runat="server" Text='enabled'  Visible="true" Checked="true"/></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">简介</td>
                        <td align="left"><asp:TextBox CssClass="width100" ID="sintro"  runat="server" Rows="4" TextMode="MultiLine"/></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">介绍:</td>
                        <td align="left"><asp:TextBox CssClass="displaynone" ID="intro" Rows="4" runat="server"/><iframe src="/HtmlEditor/index1.html?ID=intro" frameborder="0" marginheight="0"
                                                            marginwidth="0" scrolling="No" style="height: 200px; width: 100%"></iframe></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">提示:</td>
                        <td align="left"><asp:TextBox Columns="60" CssClass="width100" ID="hint" runat="server" TextMode="MultiLine" Rows="4" Text="{name}"/></td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">lng: </td>
                        <td align="left"><asp:TextBox ID="lng" runat="server" Columns="30" Text="0" /></td>
                        <td align="left" class="left_title">lat: </td>
                        <td align="left"><asp:TextBox ID="lat" runat="server" Columns="30"  Text="0"/></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">zoom:</td>
                        <td align="left"><asp:TextBox ID="zoom" Columns="4" runat="server" Text='1' />                    
                          <input type="button" class="cursor_pointer" onclick="GetMAPLLZ();" value=" Get "/></td>
                        <td align="left" class="left_title">&nbsp;</td>
                        <td align="left">&nbsp;</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">Polygon:</td>
                        <td colspan="3" align="left"><input type="button" class="cursor_pointer" onclick="GetMapPolygon();" value=" Get " />
                          <asp:TextBox ID="map_polygon" runat="server" TextMode="SingleLine" Columns="80" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">default:</td>
                        <td colspan="3" align="left">strokeWidth:
                          <asp:TextBox ID="map_default_strokeWidth" runat="server" Text='1' Columns="4" MaxLength="4" />                      
                          strokeColor:
                          <asp:TextBox ID="map_default_strokeColor" runat="server" Text='#52CC33' />
                          <img border="0" src="/images/pickcolor.gif" width="18" onclick="selColor(map_default_strokeColor,this)" onload="this.style.backgroundColor=$('map_default_strokeColor').value;"/> strokeOpacity:
                          <asp:TextBox ID="map_default_strokeOpacity" runat="server" Text='1' Columns="4" MaxLength="4" />
                          fillColor:
                          <asp:TextBox ID="map_default_fillColor" runat="server" Columns="10" Text='#52CC33' />
                          <img border="0" src="/images/pickcolor.gif" width="18" onclick="selColor(map_default_fillColor,this)" onload="this.style.backgroundColor=$('map_default_fillColor').value;"/> fillOpacity:
                          <asp:TextBox ID="map_default_fillOpacity" runat="server" Text='0.1' Columns="4" MaxLength="4" /></td>
                      </tr>
                      <tr class="displaynone">
                        <td align="center" nowrap="nowrap" class="left_title">mouseover:</td>
                        <td colspan="3" align="left">strokeWidth:
                          <asp:TextBox ID="map_over_strokeWidth" runat="server" Text='1' Columns="4" MaxLength="4" />                      
                          strokeColor:
                          <asp:TextBox ID="map_over_strokeColor" runat="server" Text='#ff9933' />
                          <img border="0" src="/images/pickcolor.gif" width="18" onclick="selColor(map_over_strokeColor,this)" onload="this.style.backgroundColor=$('map_over_strokeColor').value;"/> strokeOpacity:
                          <asp:TextBox ID="map_over_strokeOpacity" runat="server" Text='1' Columns="4" MaxLength="4" />
                          fillColor:
                          <asp:TextBox ID="map_over_fillColor" runat="server" Columns="10" Text='#ffcc66' />
                          <img border="0" src="/images/pickcolor.gif" width="18" onclick="selColor(map_over_fillColor,this)" onload="this.style.backgroundColor=$('map_over_fillColor').value;"/> fillOpacity:
                          <asp:TextBox ID="map_over_fillOpacity" runat="server" Text='0.3' Columns="4" MaxLength="4" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">select:</td>
                        <td colspan="3" align="left">strokeWidth:
                          <asp:TextBox ID="map_select_strokeWidth" runat="server" Text='1' Columns="4" MaxLength="4" />                      
                          strokeColor:
                          <asp:TextBox ID="map_select_strokeColor" runat="server" Text='#F73809' />
                          <img border="0" src="/images/pickcolor.gif" width="18" onclick="selColor(map_select_strokeColor,this)" onload="this.style.backgroundColor=$('map_select_strokeColor').value;"/> strokeOpacity:
                          <asp:TextBox ID="map_select_strokeOpacity" runat="server" Text='1' Columns="4" MaxLength="4" />
                          fillColor:
                          <asp:TextBox ID="map_select_fillColor" runat="server" Columns="10" Text='#F73809' />
                          <img border="0" src="/images/pickcolor.gif" width="18" onclick="selColor(map_select_fillColor,this)" onload="this.style.backgroundColor=$('map_select_fillColor').value;"/> fillOpacity:
                          <asp:TextBox ID="map_select_fillOpacity" runat="server" Text='0.2' Columns="4" MaxLength="4" /></td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">Temp</div>
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">click:</td>
                        <td><asp:TextBox CssClass="width100" ID="click" runat="server" TextMode="MultiLine" Rows="4" Text="{click}"/></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">mouseover:</td>
                        <td><asp:TextBox CssClass="width100" ID="mouseover" runat="server" TextMode="MultiLine" Rows="4"  Text="{hint}"/></td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <iframe src="List_Accessories_Info.aspx?curl=Project/<%=_Project_ID%>/Companys&dir=Companys&Info_ID=<%=_Project_ID%>" id="mainACFrame" name="mainACFrame" width="100%" scrolling="Auto" frameborder="0" height="380"></iframe>
                  </div>
                </div>
              </div></td>
          </tr>
          <tr>
            <td height="26" align="center"><asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="True" ShowSummary="False" />
              <asp:Button CssClass="cursor_pointer" ID="ButPost" runat="server" Text="提交保存" OnClick="ButPost_Click" />
              <input name="Submit" type="reset" class="cursor_pointer" value="重置" />
              <input name="ButReturn" type="button" class="cursor_pointer" id="ButReturn" style="cursor: pointer"
                                    onclick="window.location='<%=MyApp.Components.NavUrl.GetUrl(2)%>'" value="返回" /></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
<script type="text/javascript">
<!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
    </script>
</body>
</html>
