<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.Master" AutoEventWireup="true" CodeBehind="Menu.aspx.cs" Inherits="SocoShop.Web.Admin.Menu"  %>
<%@ Import Namespace="SocoShop.Business" %>
<%@ Import Namespace="SocoShop.Entity" %>
<%@ Register Assembly="SkyCES.EntLib" Namespace="SkyCES.EntLib" TagPrefix="SkyCES" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>菜单列表</div>
<div  class="listBlock">
    <ul>
       <%foreach(MenuInfo menu in MenuBLL.ReadMenuRootList()){ %>
        <li <%if(fatherID==menu.ID){%>class="listOn"<%} %> onclick="window.location='?FatherID=<%=menu.ID %>'"><%=menu.MenuName %></li>
        <%} %>
    </ul>	
</div>
<ul class="listHead">	
	<li style="width:5%">ID</li>
    <li style="width:30%; text-align:left;text-indent:8px;">菜单标题</li>
    <li style="width:35%">URL</li>
    <li style="width:10%">图标</li>		
    <li style="width:20%">管理</li>    	
</ul>
<asp:Repeater ID="RecordList" runat="server">
    <ItemTemplate>
        <ul class="listMain" onmousemove="ChangeColor(this,'#FFFDD7')" onmouseout="ChangeColor(this,'#FFF')">
 	        <li style="width:5%"><%#Eval("ID")%></li>
            <li style="width:30%; text-align:left;text-indent:8px;"><%#Eval("MenuName") %></li>
            <li style="width:35%"><%#Eval("URL")%></li>
            <li style="width:10%"><img src="/Admin/Style/Icon/<%#Eval("MenuImage")%>-icon.gif" /></li>	
            <li style="width:20%">
                <a href="?Action=Up&ID=<%# Eval("ID") %>&FatherID=<%=fatherID %>"><img src="Style/Images/moveUp.gif" alt="上移" title="上移" /></a> 
                <a href="?Action=Down&ID=<%# Eval("ID") %>&FatherID=<%=fatherID %>"><img src="Style/Images/moveDown.gif" alt="下移" title="下移" /></a>
                <a href="javascript:pop('MenuAdd.aspx?ID=<%# Eval("ID") %>&FatherID=<%=fatherID %>',600,400,'菜单修改','MenuAdd<%# Eval("ID") %>')"><img src="Style/Images/edit.gif" alt="修改" title="修改" /></a> 
                <a href='?Action=Delete&ID=<%# Eval("ID") %>&FatherID=<%=fatherID %>' onclick="return check()"><img src="Style/Images/delete.gif" alt="删除" title="删除" /></a>
            </li>   
        </ul>
    </ItemTemplate>
</asp:Repeater>
<div class="action">
    <input type="button"  value=" 添 加 " class="button"  onclick="pop('MenuAdd.aspx?FatherID=<%=fatherID %>',600,400,'菜单添加','MenuAdd')"/>
</div>
</asp:Content>
