<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MasterMenuList.aspx.cs" Inherits="KstCMS.KstCMS_Manager.SystemSet.SoftFace.Menu.MasterMenuList" %>
<html>
<head  runat="server">
    <title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">



<asp:Panel ID="Panel1" runat="server" CssClass="MainBox">
       <asp:ScriptManager ID="ScriptManager1" runat="server" AllowCustomErrorsRedirect="false">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>


<table class="PageTitle" width="100%"><tr><td><img src="<%=SysRootUrl %>/KstCMS_Manager/images/menu/system.gif" align="absmiddle" /> 系统主菜单设置</td></tr></table>
<asp:Repeater ID="repMain" runat="server">
<HeaderTemplate><table width="98%" border="0" cellpadding="5" cellspacing="1" class="Table_Gray">
  <tr>
    <td colspan="2" class="TableTd_Gray1"><input type="button" class="bigButton" value="增加主菜单" onclick="parent.document.getElementById('main').src='AddNewMasterMenu.aspx';" /></td>
  </tr>
</HeaderTemplate>
<ItemTemplate>
  <tr class="TableTd_Gray">
    <td nowrap><img src="<%=SysRootUrl %>/KstCMS_Manager/images/menu/<%#DataBinder.Eval(Container.DataItem,"MENU_IMAGE") %>.gif" align="absmiddle" /> <%#DataBinder.Eval(Container.DataItem,"MENU_ID") %>
        <%#DataBinder.Eval(Container.DataItem,"MENU_NAME") %>
    </td>
    <td nowrap>
    
<a href="EditMasterMenu.aspx?MenuId=<%#DataBinder.Eval(Container.DataItem,"MENU_ID") %>" target="main">修改</a>
    
    <a href="SubMenuList.aspx?MenuId=<%#DataBinder.Eval(Container.DataItem,"MENU_ID") %>" target="main">下一级</a>
    
<asp:LinkButton ID="LinkButton1"  CommandName=<%#DataBinder.Eval(Container.DataItem,"MENU_ID") %> runat="server" OnClientClick="return confirm('删除此主菜单，将同连子菜单一并删除。\r\n真的删除么？');">删除</asp:LinkButton>

    
    </td>
  </tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
        </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
           <ProgressTemplate>请稍等...</ProgressTemplate>
        </asp:UpdateProgress>




</asp:Panel>
    </form>
</body>
</html>