<%@ Page Language="c#" Inherits="Web.Wpdcc.grade" CodeBehind="grade.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>网站用户等级设置</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file="../Css/adminCssEdit.htm"-->
      <script type="text/javascript">
          jQuery(function ($) {
              /*列表高度*/
              $('.function-bd').height($(window).innerHeight() - 100);

              $(window).resize(function () {
                  $('.function-bd').height($(window).innerHeight() - 100);
              });
          });
    </script>
</head>
<body>
    <div class="list-func-box func-box">
        <div class="hd">
            您的位置：系统选项 &gt; 等级管理</div>
        <div class="bd">
            <form method="post" runat="server">
            <div class="function-hd">
                <div class="search-box fr">
                    等级名称：<asp:TextBox ID="name" class="input-txt1 input-txt" runat="server" notNull="true"
                        MaxLength="40" msgName="等级名称"></asp:TextBox><asp:HiddenField ID="HiddenFieldGradeId"
                            runat="server" />
                    <asp:Button ID="ok" class="btn" runat="server" Text="添加" OnClientClick="return checkAllValidate();"
                        OnClick="ok_Click"></asp:Button>
                    &nbsp;&nbsp;
                    <asp:Button ID="cancel" class="btn" runat="server" Text="取消" Enabled="False" CausesValidation="False"
                        OnClick="cancel_Click"></asp:Button>
                </div>
                <div class="action-field">
                    <table cellpadding="2" cellspacing="1" border="0">
                        <tr>
                            <td>
                                <a href="grade.aspx" target="_self" class="current">等级管理</a><span class="line">|</span>
                                <a href="department.aspx" target="_self">部门管理</a><span class="line">|</span> <a href="special.aspx"
                                    target="_self">专题管理</a><span class="line">|</span><a href="special.aspx" target="yuzi_frame"></a>
                                <a href="lockIP.aspx" target="_self">内外网管理</a>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="function-bd" style="overflow: auto;">
            <asp:DataGrid class="list-table" AutoGenerateColumns="False" ID="dg" runat="server"
                OnItemCommand="editGrade">
                <Columns>
                    <asp:BoundColumn DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                    <asp:BoundColumn DataField="name" HeaderText="等级名称" HeaderStyle-CssClass="title">
                        <HeaderStyle Width="60%"></HeaderStyle>
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="执行" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:LinkButton ID="edit" runat="server" CausesValidation="False" CommandName="edit"
                                title="编辑"><i class="icon icon-pencil"></i></asp:LinkButton>&nbsp;
                            <asp:LinkButton ID="lbdelete" runat="server" CausesValidation="False" CommandName="del"
                                title="删除" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.name") %>'><i class="icon icon-remove"></i></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
            </asp:DataGrid>
                    </div>
            </form>
        </div>
    </div>
</body>
</html>
