<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List_GigaMap.aspx.cs" Inherits="MYAPP.Manage.Project.Design.GigaMap.List_GigaMap" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>矩阵地图</title>
<link href="/CSS/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/coe.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script language="JavaScript" type="text/javascript" src="/js/odialog.js"></script>
<Script Language="JavaScript" type="text/JavaScript" src="/js/showo_page.js"></Script>
<script language="JavaScript" type="text/javascript">
    function close_dialog()
    {
        new dialog().reset();
    }

function OpenPopup(title,turl)
{
	  	  openWindow(turl, '450', '195', title ,'no');
}

function changevalue(_path,_field,_sceneid,_value)
{
	var ret=AjaxDemo.ChangeValue(<%=_Tour_ID%>,_sceneid,_path,_field,_value).value;
	if (ret=="true")
	{
		if (_field=="Name")
		{
			
		}
	}
	else
	{
		alert(ret);
	}
}

function manage_map_marker(_Map_ID) {
	window.location="List_Hotspot.aspx?Tour_ID=<%=_Tour_ID%>&Map_ID=" + _Map_ID;
        //OpenPopupX("Manage_Map_Marker.aspx?action=view&Tour_ID=<%=_Tour_ID%>&Map_ID=" + _Map_ID);
    }

    function OpenPopupX(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;
    }
</script>
</head>
<body onLoad="top.selectbyvalue('PCollect');">
<form id="theform" runat="server" enableviewstate="false">
  <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">[矩阵地图] => <%=_TypeID%><div id="error"/></td>
                  <td width="200" align="center" ><input type="button" class="width80px" onClick="openWindow('ADD_GigaMap.aspx?action=add&TypeID=<%=_TypeID%>&Tour_ID=<%=_Tour_ID%>&Map_ID=0', '420', '186', '添加场景' ,'no');" value="添加矩阵"/>
                  <input type="button"  value="刷新窗口" onClick="window.location=window.location;" class="width80px" /></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="40" align="center" bgcolor="#D7F2FF" class="tab_bottom_line"><input type="checkbox" onClick="setCheckboxes('theform','checkbox',this.checked)" /></td>
                        <td width="40" align="center" nowrap bgcolor="#D7F2FF" class="tab_bottom_line">MapID</td>
                        <td height="20" align="center" nowrap bgcolor="#D7F2FF" class="tab_bottom_line">名称</td>
                        <td width="70" align="center" nowrap bgcolor="#D7F2FF" class="tab_bottom_line">日期</td>
                        <td width="80" align="center" nowrap bgcolor="#D7F2FF" class="tab_bottom_line">热点标注</td>
                        <td align="center" nowrap 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" DataSource="<%#list_dt%>">
                        <ItemTemplate>
                          <tr onMouseOver="this.className='tr_onmouseover'" onMouseOut="this.className='tr_onmouseout'" >
                            <td align="center" nowrap="nowrap" class="tab_bottom_line"><input type="checkbox" name="checkbox" value="<%# Eval("Name").ToString().Trim()%>" /></td>
                            <td height="18" align="center" nowrap="nowrap" class="tab_bottom_line"><%# Eval("Name").ToString().Trim()%></td>
                            <td nowrap="nowrap" class="tab_bottom_line"><input type="text" value="<%#GetElemValueByPath(Eval("Name"),"Name")%>" onChange="changevalue('krpano','Name','<%# Eval("Name").ToString().Trim()%>',this.value);" style="width:100%"/></td>
                            <td width="80" align="center" nowrap="nowrap" class="tab_bottom_line"><%#GetElemValueByPath(Eval("Name"),"Date")%></td>
                            <td width="80" align="center" nowrap="nowrap" class="tab_bottom_line"><input type="button" class="cursor_pointer" onClick="manage_map_marker(<%# Eval("Name").ToString().Trim()%>);" value="热点标注"/></td>
                            <td width="30" align="center" nowrap="nowrap" class="tab_bottom_line"><a href="/project/<%=_Tour_ID%>/view_tour_0_<%#Eval("Name")%>.aspx" target="_blank">预览</a></td>
                            <td width="40" align="center" nowrap="nowrap" class="tab_bottom_line"><a href="AD_GigaMap.aspx?action=edit&Tour_ID=<%=_Tour_ID%>&Map_ID=<%#Eval("Name")%>" style="color: #0000FF"><img src="/images/operate/edit.gif" width="16" height="16" border="0" title="Edit" /></a> <a href="AD_GigaMap.aspx?action=del&Tour_ID=<%=_Tour_ID%>&Map_ID=<%#Eval("Name")%>" 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>
                
                <tr class="">
                  <td height="24" align="center"><table border="0" cellpadding="0" cellspacing="0">
  <tr >
    <td><script Language=JavaScript>
ShowoPage("<table style='BORDER-COLLAPSE: collapse' borderColor='#111111' height='10' cellSpacing='0' cellPadding='0' width='100%' border='0'><tr><td vAlign='bottom' width='40%' style='font-family: Arial, Helvetica, sans-serif; font-size: 11.5px; line-height: 15px'>","</td></tr></table>","页数:<font color='#006666'>","</font>/","<font color='#FF00FF'>","</font>&nbsp;","&nbsp;<font color='#000080'>","</font> 每页&nbsp;","&nbsp;<font color='orange'>记录</font>:<font color='green'>","</font></td><td vAlign='bottom' align='right' style='font-family: Arial, Helvetica, sans-serif; font-size: 11.5px; line-height: 15px'>","首页","前页","后页","末页","&nbsp;&nbsp;Jump:","<font color='red'>","</font>","","","<font color='red'>","</font>","&nbsp;[","]&nbsp;",<%=RecordCount%>,<%=PageRecord%>,8)
</script></td>
  </tr>
</table>
</td>
                </tr>
            </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
</body>
</html>

