<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="AD_Project.aspx.cs" Inherits="MYAPP.Manage.CustomMAP.Project.AD_Project" 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 oWindow = parent;
    var openwindow;

    function GetLLZ() {
        window.open('/google/GetMap_LLZ.aspx?lat=' + $('google_lat').value + '&lng=' + $('google_lng').value + '&zoom=' + $('google_zoom').value, 'googlemap', 'toolbar=no,width=800,height=600');
    }
    function SetLLZ(lat, lng, zoom) {
        $('google_lat').value = lat;
        $('google_lng').value = lng;
        $('google_zoom').value = zoom;
    }

    function GetMAPLLZ() {
        window.open('/map/GetMap_LLZ.aspx?Map_ID=<%=_Project_ID%>&lat=' + $('DefLat').value + '&lng=' + $('DefLng').value + '&zoom=' + $('DefZoom').value, 'CustomeMAP', '');
    }
    function SetMAPLLZ(lng, lat, zoom) {
        $('DefLat').value = lat;
        $('DefLng').value = lng;
        $('DefZoom').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"> [Project]</td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td valign="top"><div id="TabbedPanels1" class="TabbedPanels">
                <ul class="TabbedPanelsTabGroup">
                  <li class="TabbedPanelsTab" tabindex="0">General</li>
                  <li class="TabbedPanelsTab" tabindex="0">漫游场景</li>
                  <li class="TabbedPanelsTab" tabindex="0">MapSet</li>
                  <li class="TabbedPanelsTab" tabindex="0">Google</li>
                  <li class="TabbedPanelsTab" tabindex="0">GeneralField</li>
                  <li class="TabbedPanelsTab" tabindex="0">SiteSet</li>
                  <li class="TabbedPanelsTab" tabindex="0">Announce</li>
<li class="TabbedPanelsTab" tabindex="0">Contact</li>
                  <%if (base.action=="edit"){%><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"> ID:</td>
                        <td align="left"><asp:TextBox ID="ID" Columns="6" MaxLength="6" runat="server"/>                  
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ID"
                                                            Display="Dynamic" ErrorMessage="ID" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                          <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="ID"
                                                            ErrorMessage="ID Must GreaterThan 0" Operator="GreaterThan" Type="Integer" ValueToCompare="0"
                                                            Display="Dynamic" SetFocusOnError="True"></asp:CompareValidator></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title_request"> Name:</td>
                        <td align="left"><asp:TextBox ID="Name" runat="server" Columns="30" MaxLength="20" />                  
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Name"
                                                            Display="Dynamic" ErrorMessage="Name" SetFocusOnError="True">*</asp:RequiredFieldValidator></td>
                      </tr>
                      <tr>
                        <td nowrap="nowrap" class="left_title_request">Date:</td>
                        <td align="left"><asp:TextBox ID="Date" Columns="10" MaxLength="10" runat="server" />                  
                          <img src="/images/date/time.gif" alt="" name="Date" width="15" height="17" id="Date"
                                                        style="cursor: pointer" onclick="show_cele_date(Date,'','',Date)" />
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                        ControlToValidate="Date" Display="Dynamic" ErrorMessage="Date" 
                                                        SetFocusOnError="True">*</asp:RequiredFieldValidator>
                          <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="Date"
                                                        ErrorMessage="Date Error!" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">Property:</td>
                        <td align="left" valign="top"><asp:CheckBox ID="LockTF" runat="server" Text='LockTF' Checked="true" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">Intro:</td>
                        <td align="left" valign="top"><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>
                    </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">漫游项目ID: </td>
                        <td align="left"><asp:TextBox ID="TourID" runat="server"  Columns="10" Text='0'/></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">场景标注类别:</td>
                        <td align="left"><asp:TextBox ID="MarkerType" runat="server"  Columns="10" Text='0'/></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">DefZoom:</td>
                        <td align="left"><asp:TextBox ID="DefZoom" Columns="4" runat="server" Text='1' /></td>
                        <td align="left" class="left_title">&nbsp;</td>
                        <td align="left">&nbsp;</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">MinZoom: </td>
                        <td align="left"><asp:TextBox ID="MinZoom" Columns="4" runat="server" Text='1' /></td>
                        <td align="left" class="left_title">MaxZoom:</td>
                        <td align="left"><asp:TextBox ID="MaxZoom" Columns="4" runat="server" Text='6' /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">TitleWidth:</td>
                        <td align="left"><asp:TextBox ID="TitleWidth" Columns="4" runat="server" Text='256' /></td>
                        <td align="left" class="left_title">TitleHeight:</td>
                        <td align="left"><asp:TextBox ID="TitleHeight" Columns="4" runat="server" Text='256' /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">ImgURL:</td>
                        <td colspan="3" align="left"><asp:TextBox ID="ImgURL" runat="server" Text='${z}/${y}_${x}.jpg' MaxLength="80" />
                          ${z}:ZOOM ${y}:Y; ${x}:X </td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">DefPosition:</td>
                        <td colspan="3" align="left"><span class="left_title">DefLat:</span>
                          <asp:TextBox ID="DefLat" runat="server" Columns="30"  Text="0"/>
                          <span class="left_title">DefLng:
                          <asp:TextBox ID="DefLng" runat="server" Columns="30" Text="0" />
                          <input name="button2" type="button" class="cursor_pointer" id="button2" onclick="GetMAPLLZ();" value=" Get "/>
                          </span></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="google_lng" runat="server"  Columns="10" Text='0'/></td>
                        <td align="left" class="left_title">lat: </td>
                        <td align="left"><asp:TextBox ID="google_lat" runat="server"  Columns="10" Text='0'/></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">zoom:</td>
                        <td align="left"><asp:TextBox ID="google_zoom" runat="server" Columns="4" MaxLength="4" Text='1' />
                          <input name="button" type="button" class="cursor_pointer" id="button" onclick="GetLLZ();" value="From GoogleMap"/></td>
                        <td align="left" class="left_title">&nbsp;</td>
                        <td align="left">&nbsp;</td>
                      </tr>
                      <tr>
                        <td colspan="4" align="center" nowrap="nowrap">显示图标:</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">url:</td>
                        <td colspan="3" align="left"><asp:TextBox ID="google_icon_url" runat="server" Columns="50" MaxLength="255" Text="" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">style:</td>
                        <td colspan="3" align="left"><asp:TextBox ID="google_icon_style" runat="server" Columns="50" MaxLength="255" Text='cursor:pointer' /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">size:</td>
                        <td colspan="3" align="left">width:
                          <asp:TextBox ID="google_icon_width" Columns="6" runat="server" Text='16' />                          
height:
<asp:TextBox ID="google_icon_height" runat="server" Columns="6" Text='16' /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">offset:</td>
                        <td colspan="3" align="left">x:
                          <asp:TextBox ID="google_icon_x" runat="server" Columns="6" Text='8' />                          
y:
<asp:TextBox ID="google_icon_y" runat="server" Columns="6" Text='8' /></td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent"><iframe src="List_GeneralIntro.aspx?Project_ID=<%=_Project_ID%>&Type=" width="100%" scrolling="Auto" frameborder="0" height="443"></iframe></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">logo:</td>
                        <td align="left" nowrap="nowrap"><asp:TextBox ID="site_logo" runat="server" CssClass="width100"/></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">message:</td>
                        <td align="left" nowrap="nowrap"><asp:TextBox ID="site_bbs" runat="server" CssClass="width100"/></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">status:</td>
                        <td align="left" nowrap="nowrap"><asp:HiddenField ID="site_status" runat="server" />
                          <iframe src="/HtmlEditor/index1.html?ID=site_status" frameborder="0" marginheight="0"
                                                            marginwidth="0" scrolling="No" style="height: 200px; width: 100%"></iframe></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">Content:</td>
                        <td align="left" nowrap="nowrap"><asp:HiddenField ID="Announce_content" runat="server" />
                          <iframe src="/HtmlEditor/index1.html?ID=Announce_content" frameborder="0" marginheight="0"
                                                            marginwidth="0" scrolling="No" style="height: 200px; width: 100%"></iframe></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">Content:</td>
                        <td align="left" nowrap="nowrap"><asp:HiddenField ID="Contacts_content" runat="server" />
                          <iframe src="/HtmlEditor/index1.html?ID=Contacts_content" frameborder="0" marginheight="0"
                                                            marginwidth="0" scrolling="No" style="height: 200px; width: 100%"></iframe></td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <iframe src="List_Accessories_Info.aspx?curl=Project/<%=_Project_ID%>/Accessories&dir=Accessories&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="width80px" ID="ButPost" runat="server" Text="提交保存" OnClick="ButPost_Click" />
              <input name="Submit" type="reset" class="width80px" value="重置" />
            <input name="ButReturn" type="button" class="width80px" id="ButReturn" style="cursor: pointer"
                                    onclick="window.location='<%=MyApp.Components.NavUrl.GetUrl(1)%>'" value="返回" /></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
<script type="text/javascript">
<!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
    </script>
</body>
</html>
