<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="List_Map.aspx.cs" Inherits="MYAPP.Manage.Project.Design.Tour.Map.List_Map" %>
<asp:XmlDataSource ID="xds" runat="server"  XPath="/Project/Maps/Map" 
    EnableCaching="False" EnableViewState="False"></asp:XmlDataSource>
<!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="X-UA-Compatible" content="IE=7" />
<title>Tour Scene</title>
<link href="/CSS/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/coe.js"></script>
<Script Language="JavaScript" type="text/JavaScript" src="/js/showo_page.js"></Script>
<script language="JavaScript" type="text/javascript">
    var openwindow;
    function manage_scene_map(index) {
        OpenPopup("Manage_Map_Scene.aspx?action=view&Tour_ID=<%=_Tour_ID%>&MapIndex_ID=" + index);
    }

    function OpenPopup(turl) {
        //wi=screen.availWidth-120;   he=screen.availHeight-120;
        he = screen.availHeight; wi = screen.availWidth;
        ctop = ((screen.availHeight - he) / 2); 
		cleft = ((screen.availWidth - wi) / 2);

        var selProdWnd = window.open(turl, "mappoint", "channelmode=no,directories=no,resizable=yes,width=" + wi + ",height=" + he + ",left=" + cleft + ",top=" + ctop + ",scrollbars=no,status=yes,titlebar=yes,toolbar=no,unadorned=yes");
        if (selProdWnd.opener == null)
            selProdWnd.opener = self;
    }
    function ViewTour(Tour_ID) {
        window.open('/pano/tourpano.aspx?tour_id=' + Tour_ID, '全景漫游', 'toolbar=no;width=800,height=600');
    }		  
</script>
</head>
<body onLoad="top.selectbyvalue('CustomMap');">
<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">[<span class="TabbedPanelsTab">Map Plugin]</span></td>
                  <td width="80" align="center"><input type="button" class="width80px" style="cursor:pointer" onClick="window.location='AD_Map.aspx?action=add&Tour_ID=<%=_Tour_ID%>&ROW=0'" value="添加"/></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="1"  align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB" class="board_kong">
                <tr>
                  <td height="22"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
                      <tr class="table_title">
                        <td width="30" align="center" nowrap="nowrap" bgcolor="#D7F2FF" class="tab_bottom_line">id</td>
                        <td align="center" nowrap="nowrap" bgcolor="#D7F2FF" class="tab_bottom_line">title</td>
                        <td width="120" height="20" align="center" nowrap="nowrap" bgcolor="#D7F2FF" class="tab_bottom_line">name</td>
                        <td align="center" bgcolor="#D7F2FF" class="tab_bottom_line">mapurl</td>
                        <td width="80" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">场景标注</td>
                        <td width="40" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">visible</td>
                        <td width="40" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">复制</td>
                        <td width="40" height="20" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">操作</td>
                      </tr>
                      <asp:Repeater ID="rp_list" runat="server" DataSourceID="xds">
                        <ItemTemplate>
                          <tr onMouseOver="this.className='tr_onmouseover'" onMouseOut="this.className='tr_onmouseout'" row="<%=++_ROW%>">
                            <td align="center" nowrap="nowrap" class="tab_bottom_line"><%# XPath("@id")%></td>
                            <td align="center" nowrap="nowrap" class="tab_bottom_line"><%# XPath("@title")%></td>
                            <td align="center" nowrap="nowrap" class="tab_bottom_line"><%# XPath("@name")%> </td>
                            <td nowrap="nowrap" class="tab_bottom_line"><%# XPath("@url")%></td>
                            <td align="center" nowrap="nowrap" class="tab_bottom_line"><input type="button" class="cursor_pointer" onClick="manage_scene_map(<%=_ROW%>);" value="场景标注"/></td>
                            <td align="center" nowrap="nowrap" class="tab_bottom_line"><%# XPath("@visible")%></td>
                            <td width="40" align="center" nowrap="nowrap" class="tab_bottom_line"><a href="AD_Map.aspx?action=add&Tour_ID=<%=_Tour_ID%>&ROW=<%=_ROW%>">复制</a></td>
                            <td width="40" align="center" nowrap="nowrap" class="tab_bottom_line"><a href="AD_Map.aspx?action=edit&Tour_ID=<%=_Tour_ID%>&ROW=<%=_ROW%>" style="color: #0000FF"><img src="/images/operate/edit.gif" width="16" height="16" border="0" title="Edit" /></a> <a href="AD_Map.aspx?action=del&Tour_ID=<%=_Tour_ID%>&ROW=<%=_ROW%>" style="color:#FF0000" onClick="delete_confirm()"><img src="/images/operate/del.gif" width="16" height="16" border="0" title="删除" /></a></td>
                          </tr>
                        </ItemTemplate>
                      </asp:Repeater>
                  </table></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
</body>
</html>
