<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Master/AdminMP.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MyCms.Manage.Navs.Default" %>
<%@ MasterType VirtualPath="~/Manage/Master/AdminMP.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="table_normal" cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <th>编号</th>
                <th>导航文字</th>
                <th>链接</th>
                <th>打开方式</th>
                <th>排序</th>
                <th>操作</th>
            </tr>
        </thead>    
        <tbody>
            <asp:Repeater ID="rpNavs" runat="server">
                <ItemTemplate>
                    <tr>
                        <td><%#Eval("NavID") %></td>
                        <td><%#Eval("NavText") %></td>
                        <td><%#Eval("NavUrl") %></td>
                        <td><%#Eval("Target") %></td>
                        <td><%#Eval("Sort") %></td>
                        <td><a href="NavEdit.aspx?navid=<%#Eval("NavID") %>">编辑</a> <a href="javascript:del(<%#Eval("NavID") %>);">删除</a></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            
        </tbody>
    </table>
    <script>function del(id) {
    if (confirm("删除后无法恢复，是否继续？")) {
        document.location = "<%=ResolveUrl("~/Handler/Action.ashx?action=del&target=nav&id=") %>" + id;
            }
        }</script>
</asp:Content>
