<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SystemMenuSet.aspx.cs" Inherits="Admin_SystemConfig_SystemMenuSet"
    EnableViewState="true" %>
<%@ Register Src="../Controls/EditionItem.ascx" TagName="EditionItem" TagPrefix="uc2" %>
<!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></title>
    <link href="../Stylesheet/Main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div id="toolItem">
            <ul class="tool">
                <li class="tool_li_ac">
                    <img src="../Images/icon_add.gif" width="14" height="14" align="absmiddle" />
                    <a href="AdminMenuSet.aspx" title="添加系统前台菜单">添 加</a></li>
                <li>
                    <div class="tool_back">
                        <a href="javaScript:history.back(-1)">返回上一步</a></div>
                </li>
            </ul>
        </div>
        <div class="main_body">
            <h1>
                <asp:Literal ID="litTitle" runat="server"></asp:Literal>系统前台菜单设置</h1>
            <uc2:editionitem id="EditionItem1" runat="server" />
            <div class="ht2">
            </div>
            <div class="divbox2">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tbbox">
                    <tr>
                        <th>
                            菜单名称
                        </th>
                        <th width="22%">
                            菜单链接
                        </th>
                        <th width="18%">
                            所属上级
                        </th>
                        <th width="7%">
                            状态
                        </th>
                        <th width="6%">
                            排序
                        </th>
                        <th width="15%">
                            操作
                        </th>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:TextBox ID="txtMenuName" runat="server" Width="96%"></asp:TextBox>
                        </td>
                        <td align="center">
                            <asp:TextBox ID="txtMenuLink" runat="server" Width="96%"></asp:TextBox>
                        </td>
                        <td align="center">
                            <asp:DropDownList ID="dropMenu" runat="server" DataTextField="TreeMode" DataValueField="ID">
                            </asp:DropDownList>
                        </td>
                        <td align="center">
                            <asp:DropDownList ID="dropState" runat="server">
                                <asp:ListItem Value="1">启用</asp:ListItem>
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="center">
                            <asp:TextBox ID="txtSortOrder" runat="server" Width="96%"></asp:TextBox>
                        </td>
                        <td align="center">
                            <asp:LinkButton ID="lbtnAdd" runat="server" CssClass="btn_bg" OnClick="lbtnAdd_Click">添加</asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="ht">
            </div>
            <div class="item">
                <ul class="item_list">
                    <li class="item_list_cell_ac margin_left_2px">
                        <div>
                            <asp:Literal ID="litTitle3" runat="server"></asp:Literal>系统前台菜单列表
                        </div>
                    </li>
                </ul>
            </div>
            <div class="ht2">
            </div>
            <div class="divbox2">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tbbox">
                    <tr>
                        <th>
                            菜单名称
                        </th>
                        <th width="35%">
                            菜单链接
                        </th>
                        <th width="7%">
                            状态
                        </th>
                        <th width="6%">
                            排序
                        </th>
                        <th width="8%">
                            操作
                        </th>
                    </tr>
                    <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#Eval("TreeMode")%>
                                </td>
                                <td>
                                    <%#Eval("MenuLink")%>
                                    &nbsp;
                                </td>
                                <td align="center">
                                    <%#Eval("State") != DBNull.Value && Eval("State").ToString()=="1" ? "启用" : "未启用"%>
                                </td>
                                <td align="center">
                                    <%#Eval("SortOrder")%>
                                </td>
                                <td align="center">
                                    <a href="SystemMenuSet.aspx?ID=<%#Eval("ID")%>&AC=Edit" title="编辑当前信息">
                                        <img src="../images/icon_bj.gif" border="0" align="absmiddle" /></a>
                                    <asp:LinkButton ID="lbtnDel" runat="server" CommandArgument='<%#Eval("ID")%>' CommandName="Del_CommandName"
                                        OnClientClick="return confirm('确认删除当前项？')" ToolTip="删除当前项"><img src="../images/icon_sc.gif" border="0" align="absmiddle" /></asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <div class="ht">
            </div>
            <div class="ht">
            </div>
            <ul class="ac_intro">
                <li class="ac_intro_title">说明：</li>
                <li class="ac_intro_item">1. 系统前台菜单的设置。</li>
            </ul>
        </div>
    </form>
</body>
</html>
