<%@ Page Language="C#" AutoEventWireup="true" CodeFile="menulist.aspx.cs" Inherits="etw_c_m_menulist" ValidateRequest="false" %>

<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>功能菜单管理</title>
<link rel="stylesheet" type="text/css" href="css.css">
<style type="text/css">
.table01{ background:#E8EFF5; width:100%; line-height:30px;}
</style>
</head>
<body>
<div id="right">
  <div id="title">功能菜单管理</div>
  <div id="con">
    <form  runat="server">
      <table border="0" width="99%" class="table01">
        <tbody><tr>
          <td colspan="3" style="text-align: center; font-size: 14px;">
              添加菜单</td>
        </tr>
        <tr>
          <td style="width: 106px"></td>
          <td align="right" style="width: 176px">父类:&nbsp;</td>

          <td>&nbsp;<asp:DropDownList ID="ddlClass" runat="server"></asp:DropDownList></td>
        </tr>
        <tr id="trans">
          <td style="width: 106px"></td>
          <td style="text-align: right; width: 176px;"> 名称:</td>

          <td width="462">
              <asp:TextBox ID="menuname" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
          <td style="width: 106px"></td>
          <td style="text-align: right; width: 176px;">链接地址:</td>

          <td>
              <asp:TextBox ID="url" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
          <td style="width: 106px"></td>
          <td style="text-align: right; width: 176px;">显示顺序:</td>

          <td><asp:TextBox ID="orderby" runat="server" Width="44px">1</asp:TextBox></td>
        </tr>
        <tr>
          <td style="width: 106px"></td>
          <td style="text-align: right; width: 176px;">SQL查询语句:</td>
          <td><asp:TextBox ID="sqltext" runat="server" Width="448px"></asp:TextBox></td>
        </tr>
        <tr>
          <td style="width: 106px"></td>
          <td style="width: 176px">&nbsp;</td>
          <td>&nbsp;
              <asp:Button ID="Button1" runat="server" OnClientClick="window.parent.frames.leftFrame.location.reload()"  Text="添加" OnClick="Button1_Click" />
              </td>

        </tr>
      </tbody>
     </table>
     <table width="99%" border="1" class="tables" cellpadding="0" cellspacing="0" style="font-size:13px; text-align:center;">
             <tr class="gren">
               <th width="5%">序号</th>
               <th width="25%" >菜单名称</th>
               <th width="10%" >链接</th>
               <th width="10%" >显示顺序</th>
               <th width="20%" >所属分类</th>
               <th width="10%" >修改/删除</th> 
             </tr>
             <asp:Repeater ID="Repeater1" runat="server" >
              <ItemTemplate>
                <tr>
                 <td><%#Container.ItemIndex + 1 %></td>
                 <td><%#Eval("menuname") %></td>
                 <td><%#Eval("Url") %>&nbsp;</td>  
                 <td><%#Eval("orderby") %>&nbsp;</td>  
                 <td><%#Cutclass(Eval("parentid").ToString())%></td>
                 <td><a href="menuedit.aspx?menuid=<%#Eval("id") %>">修改</a>/<a href="menudel.aspx?menuid=<%#Eval("id") %>" onclick="return confirm('真的要删除吗？');">删除</a></td>
                </tr>
             </ItemTemplate>
            </asp:Repeater>
       </table>
       <br /><br />
    </form>
  </div>
</div>
</body></html>