<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="ADD_Scene.aspx.cs" Inherits="MYAPP.Manage.Project.Design.Scene.ADD_Scene" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<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 ViewScene() {
        openwindow = window.open('/pano/view_scene.aspx?Tour_ID=<%=_Tour_ID%>&Scene_ID=<%=_Scene_ID%>', 'GetHeading', 'toolbar=no');
    }
    function setvalue(obj, variable) {
        if (openwindow != null) {
            try {
                $(obj).value = Number(openwindow.krpano().get(variable)).toFixed(2);
            }
            catch (err) {
                top._msg_show('Open Scene Viewer First!', '', '65', 'title');
            }
        }
        else {
            top._msg_show('Open Scene Viewer First!', '', '65', 'title');
        }
    }
    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 GetHeading() {
        openwindow = window.open('/pano/view_scene.aspx?action=heading&Tour_ID=<%=_Tour_ID%>&Scene_ID=<%=_Scene_ID%>', 'GetHeading', 'toolbar=no');
    }
    function SetLLZ(lat, lng, zoom) {
        $('google_lat').value = lat;
        $('google_lng').value = lng;
        $('google_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"> [添加场景]</td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td valign="top"><div id="TabbedPanels1" class="TabbedPanels">
                <ul class="TabbedPanelsTabGroup">
                  <li class="TabbedPanelsTab displaynone" tabindex="0">General</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="12" MaxLength="30" 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">场景模板:</td>
                        <td align="left"><asp:DropDownList ID="ddl_Template" runat="server"> </asp:DropDownList>
&quot;/Data/Templates/Scene/*.xml&quot;</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title_request"> 场景名称:</td>
                        <td align="left"><asp:TextBox ID="Name" runat="server" Columns="50"  />
                          <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">拍摄日期:</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">全景图片:</td>
                        <td align="left" valign="top"><asp:FileUpload ID="fu_file" runat="server" />
                          (.jpg) </td>
                      </tr>
                    </table>
                  </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="but_close" type="button" class="width80px" id="but_close" onclick="parent.close_dialog();" value="关闭"/></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
<script type="text/javascript">
<!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
    </script>
</body>
</html>
