<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="gradeconfig.aspx.cs" Inherits="FangPage.Admin.gradeconfig" %>

<%@ Register TagPrefix="cc1" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<%@ Register Src="UserControls/PageInfo.ascx" TagName="PageInfo" TagPrefix="uc1" %>
<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户级别管理</title>
    <link href="styles/datagrid.css" type="text/css" rel="stylesheet" />
    <link href="styles/bmsmanager.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" src="js/common.js"></script>

    <script type="text/javascript" src="js/modalpopup.js"></script>

</head>
<body>
    <form id="form1" runat="server">

    <script type="text/javascript">showhint(0, '提示：用户级别的所需积分不能相同。');</script>

    <div class="Navbutton" style="width: 98%;">
        <table cellspacing="1" cellpadding="4" align="left" class="table1">
            <tr>
                <td width="60">&nbsp;
                 <input title="选中/取消选中" onclick="CheckAll(this.form)" type="checkbox" name="chkall"
                        id="chkall" />全选
                </td>
                <td align="left">
                    <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " 
                        ButtonImgUrl="images/dell.gif" onclick="DelRec_Click">
                    </cc1:Button>&nbsp;
                    <button type="button" class="ManagerButton" onclick="javascript:window.location.href='gradeadd.aspx';">
                        <img src="images/add.gif" />
                        新 建
                    </button>
                </td>
            </tr>
        </table>
    </div>
    <cc1:DataGrid ID="DataGrid1" runat="server" AllowPaging="false">
        <Columns>
           <asp:TemplateColumn HeaderText="选择">
                <ItemTemplate>
                    <input id="selid" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.roleid").ToString() %>"
                        name="selid" />
                    <%# DataGrid1.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.roleid").ToString())%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="roleid" HeaderText="roleid" Visible="false"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="级别名称">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container, "DataItem.rolename").ToString()%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="creditshigher" HeaderText="积分下限"></asp:BoundColumn>
            <asp:BoundColumn DataField="creditslower" HeaderText="积分上限"></asp:BoundColumn>
            <asp:BoundColumn DataField="stars" HeaderText="星星数"></asp:BoundColumn>
            <asp:BoundColumn DataField="note" HeaderText="描述"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="操作">
                <ItemTemplate>
                    <a href="gradeedit.aspx?id=<%# DataBinder.Eval(Container, "DataItem.roleid").ToString()%>">
                        编辑</a>
                </ItemTemplate>
            </asp:TemplateColumn>
        </Columns>
    </cc1:DataGrid>
    </form>
</body>
</html>
