<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List_Marker.aspx.cs" Inherits="MYAPP.Manage.CustomMAP.Project.Marker.List_Marker" %>
<asp:XmlDataSource ID="xds" runat="server"  XPath="/Project/MapMarker/Markers/item" 
    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">
<title>Map Polygon</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/showo_page.js"></Script>
<script language="JavaScript" type="text/javascript">
function MoveInfo(_id)
{
	if (_id!="")
	{
		if ($('Class_ID').value>0)
		{
			var ret=AjaxDemo.MoveInfo(<%=_Project_ID%>,_id,$('Class_ID').value).value;
			if (ret=="true")
			{
				alert("移动成功!!!");
				window.location=window.location;
			}
			else
			{
				alert("错误!!!"+ret);
				window.location=window.location;
			}
		}
		else
		{
			alert('当前类别不允许选择!!!');
		}
	}
	else
	{
		alert("请选择信息!!!");
	}
}
</script>
</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">[Marker] =&gt; <%=_Class_ID%></td>
                </tr>
            </table></td>
          </tr>
          <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="30" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">ROW</td>
                    <td width="50" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">Class_ID</td>
                    <td height="20" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">Name</td>
                    <td align="center" bgcolor="#D7F2FF" class="tab_bottom_line">hint</td>
                    <td width="50" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">visible</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"><input type="checkbox" name="checkbox" value="<%# XPath("@id")%>" /></td>
                        <td width="30" align="center" nowrap="nowrap" class="tab_bottom_line"><%=_ROW%></td>
                        <td width="50" align="center" nowrap="nowrap" class="tab_bottom_line"><%# XPath("@classid")%></td>
                        <td height="18" align="center" nowrap="nowrap" class="tab_bottom_line"><%# XPath("@name")%></td>
                        <td align="center" nowrap="nowrap" class="tab_bottom_line"><%# XPath("@hint")%></td>
                        <td width="50" 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_Marker.aspx?action=edit&Project_ID=<%=_Project_ID%>&Class_ID=<%# XPath("@classid")%>&ID=<%# XPath("@id")%>&ROW=<%=_ROW%>" style="color: #0000FF"><img src="/images/operate/edit.gif" width="16" height="16" border="0" title="Edit" /></a> <a href="AD_Marker.aspx?action=del&Project_ID=<%=_Project_ID%>&Class_ID=<%# XPath("@classid")%>&ID=<%# XPath("@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>
                <%if (Convert.ToInt32(_Type_ID)>0){%>
                <tr>
                  <td height="24" align="center"><input type="button" class="width80px" style="cursor:pointer" onClick="window.location='AD_Marker.aspx?action=add&Project_ID=<%=_Project_ID%>&Class_ID=<%=_Class_ID%>&ID=0&ROW=0'" value="添加"/></td>
                </tr><%}%>
                                <tr>
                  <td height="24" align="center"><table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <td align="center" nowrap="nowrap" class="left_title_request">移动信息:</td>
                      <td align="left"><asp:DropDownList ID="Class_ID" runat="server">
                        <asp:ListItem Value="-1">默认</asp:ListItem>
                      </asp:DropDownList>
                        <input type="button" class="width80px" onClick="MoveInfo(getCheckboxesValue('theform','checkbox'));" value="移动信息"/></td>
                    </tr>
                  </table></td>
                </tr>
        </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
</body>
</html>
