<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="K2.Web.Admin.Menu.List" %>

<!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><title>
	菜单管理
</title><link href="../css/admin.css" type="text/css" rel="stylesheet" charset="utf-8" />

    <link type="text/css" href="../js/msgbox/css/msgbox.css" rel="stylesheet" charset="utf-8" />
    <script type="text/javascript" src="../js/msgbox/script/msgbox.js"></script>
<script type="text/javascript" src="../js/CheckBox.js"></script>
    


</head>
<body>
    <form id="form1" runat="server">
   <asp:Label ID="lblid" runat="server" Text="" Visible="false"></asp:Label>
    <div class="newslistabout">
        <!--Title -->
        <div class="newslist_title">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="borderkuang">
                <tr>
                    <td bgcolor="#FFFFFF" class="newstitle">
                        菜单管理
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#FFFFFF" class="newstitlebody">
                        您可以添加、编辑、删除菜单
                    </td>
                </tr>
            </table>
        </div>
        <!--Title end -->
        <!--Add  -->
        <!--Add end -->
        <!--Search -->
      
        <!--Search end-->
        <br />
        <div class="newslist">
            <div class="newsicon">
                <ul>
                    <li id="ctl00_ContentPlaceHolder1_liAdd" style="background: url(/admin/images/add.gif) no-repeat 5px 3px">
                        <asp:Label ID="lbladd" runat="server" Text=""></asp:Label>
                   
                        <b>|</b> </li>
                    <li id="ctl00_ContentPlaceHolder1_liDel" style="background: url(/admin/images/delete.gif) no-repeat; width: 80px;">
                    
                        <asp:LinkButton ID="LinkButton2" runat="server" onclick="btnDelete_Click">批量删除</asp:LinkButton>
                    <b>|</b></li>
                   <li style="background: url(/admin/images/reload.png) no-repeat"><a href="List.aspx">
                        刷新</a><b>|</b></li>
                </ul>
            </div>
        </div>
        
<style type='text/css'>
.text { mso-number-format:\@; }
.GridViewTyle a{ color:#1317fc;text-decoration: none;}
.GridViewTyle a:hover{ color:#1317fc;}
.GridViewTyle span{  text-align:center;}
</style>
<div>

	<asp:GridView ID="gridView" runat="server" AllowPaging="True" ShowToolBar="false"  
                AutoGenerateColumns="False" Width="100%" ShowExportExcel="False" 
        ShowExportWord="False" ExcelFileName="FileName1"
            CellPadding="3" BorderWidth="0px" ShowCheckAll="true" 
        OnPageIndexChanging ="gridView_PageIndexChanging" DataKeyNames="id" 
                OnRowDataBound="gridView_RowDataBound" UnExportedColumnNames="Modify"
                     RowStyle-HorizontalAlign="Center" 
        OnRowCreated="gridView_OnRowCreated" BackColor="#FFFFCC" BorderColor="#CCCCCC" 
                BorderStyle="Dotted" CssClass="GridViewTyle">
<RowStyle HorizontalAlign="Center" Height="36px"></RowStyle>
                    <Columns>
                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择"    >
                                <HeaderTemplate>
                                   <asp:CheckBox ID="CheckAll"  onclick="CA();"  name="checkall" runat="server" 
                                        />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="DeleteThis"  runat="server" name="allbox" />
                                </ItemTemplate>

<ControlStyle Width="30px"></ControlStyle>
                            </asp:TemplateField> 
                            
		<asp:BoundField DataField="id" HeaderText="编号" SortExpression="id" 
                            ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="Name" HeaderText="菜单名称" SortExpression="pic" 
                            ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		                <asp:BoundField DataField="FatherMenuId" HeaderText="所属父类" />
                        <asp:BoundField DataField="Types" HeaderText="菜单类型" />
		<asp:BoundField DataField="orders" HeaderText="同类排序" SortExpression="orders" 
                            ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>


		<asp:BoundField DataField="url" HeaderText="链接地址" SortExpression="url" 
                            ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>


                            <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" 
                            DataNavigateUrlFields="id" DataNavigateUrlFormatString="Modify.aspx?id={0}"
                                Text="编辑"  >
<ControlStyle Width="50px"></ControlStyle>
                        </asp:HyperLinkField>
                            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除"   Visible="false"  >
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                         Text="删除"></asp:LinkButton>
                                </ItemTemplate>

<ControlStyle Width="50px"></ControlStyle>
                            </asp:TemplateField>
                        </Columns>
                <HeaderStyle BackColor="#999999" BorderColor="#CCCCCC" Height="36px" />
                </asp:GridView>
</div>
        <table border="0" cellpadding="0" cellspacing="1" style="width: 100%; height: 100%;">
            <tr>
                <td style="width: 1px;">
                </td>
                <td>
                   
                      <asp:Button ID="btnDelete" runat="server" Text="批量删除" OnClick="btnDelete_Click" OnClientClick="return confirm($(this).attr(&quot;ConfirmText&quot;));"  class="adminsubmit" ConfirmText="你确认要删除吗？"/>    
                </td>
            </tr>
        </table>
    </div>
    </div>
    
    

    

    </form>
</body>
</html>