<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="QuestionsManage, App_Web_4plofzsr" stylesheettheme="Themes" theme="Themes" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link href="../css/layerDiv.css" rel="stylesheet" type="text/css" />

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

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

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

    <script type="text/javascript" src="../js/jquery.pngFix.pack.js"></script>

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

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

    <script src="../js/common.js" type="text/javascript"></script>
    
           <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>

    <script language="javascript">
        function CheckAll() {
            var cked = false;
            cked = document.getElementById("chkSelAll").checked;
            for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
                var e = document.getElementsByTagName("*")[i];
                try {
                    if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                        e.checked = cked;
                    }
                }
                catch (exception) {
                }
            }
        }

        function CheckSelect() {
            var count = 0;
            for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
                var e = document.getElementsByTagName("*")[i];
                try {
                    if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                        if (e.checked == true) {
                            count++;
                        }
                    }
                }
                catch (exception) {
                }
            }
            if (count == 0) {
                //alert("请选择您要删除的项！");
                art.dialog({ content: '请选择您要删除的项！', lock: true, icon: 'alert', width: '200px' }, function() { return true; });
                return false;
            }
            else {
                return confirm('您确定要删除所选项吗?');
            }
        }
    </script>

</head>
<body>

    <form id="form1" runat="server">

    <asp:Panel ID="panelGrid" runat="server" Height="100%" CssClass="table_box">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="right_bg">
                    <span class="right_title">
                        <img src="../Images/homen.gif" class="img_style" />
                        您的当前位置：资源管理 &gt; 基础数据管理 &gt; 知识等级</span>
                </td>
            </tr>
            <tr>
                <td class="r_top_box">
                    <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                        <tr>
                            <td align="right">
                                <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" />
                            </td>
                        </tr></table>
                </td>
            </tr>
            <tr>
                <td class="margintop5">
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <asp:GridView ID="gvGrade" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                                    OnRowDataBound="gvGrade_RowDataBound" OnRowEditing="gvGrade_RowEditing" OnRowDeleting="gvGrade_RowDeleting">
                                    <Columns>
                                        <asp:BoundField DataField="Rank" HeaderText="等级" HeaderStyle-Width="70px">
                                            <HeaderStyle Width="70px" />
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="名称">
                                            <ItemStyle HorizontalAlign="Left" CssClass="tdOverflow" />
                                            <ItemTemplate>
                                                <%# Common.CutString(Eval("Name").ToString(), 26).Replace("…", "")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="条件">
                                            <ItemTemplate>
                                                <%# Eval("LowLimit")%>
                                                至
                                                <%# Eval("HighLimit")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:CommandField ShowEditButton="True" EditText="编辑" CancelText="取消" UpdateText="更新"
                                            ShowDeleteButton="True" DeleteText="删除" HeaderText="操作" ControlStyle-CssClass="linkBtn">
                                            <HeaderStyle Width="80" />
                                        </asp:CommandField>
                                    </Columns>
                                    <EmptyDataRowStyle BackColor="#E0E0E0" />
                                    <EmptyDataTemplate>
                                        <img src="../Images/waring_pic01.gif" width="32px" height="32px" class="nodata_img" /><asp:Label
                                            ID="lblEmpty" class="no_found" runat="server" Text="没有符合条件的数据！"></asp:Label>
                                    </EmptyDataTemplate>
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td class="page_bg_left">
                                  <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager" PageSize="10"
                                FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;" 
                                LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页"  ShowCustomInfoSection="Left" CustomInfoTextAlign="Left"
                                ShowInputBox="Always">
                            </cc1:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="panelAdd_Edit" runat="server" Height="100%" Visible="false"
        CssClass="table_box">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="right_bg">
                    <span class="right_title">
                        <img src="../Images/homen.gif" class="img_style" />
                        您的当前位置：知识管理 &gt; 积分等级管理 &gt;
                            <asp:Label ID="lblNav" runat="server" Text=""></asp:Label></span>
                </td>
            </tr>
        <tr>
            <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                <tr>
                    <td id="tab_title">
                        积分等级管理
                    </td>
                    <td align="right">
                        <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
                        <asp:Button ID="btnAddGoOn" runat="server" Text="继续添加" Visible="false" OnClick="btnAddGoOn_Click" />
                        <asp:Button ID="btnReturn" runat="server" Text="返回" OnClick="btnReturn_Click" />
                    </td>
                </tr>
             </table>
            </td>
        </tr>
        <tr>
            <td class="margintop5">
            <table border="0" cellpadding="5" cellspacing="1" width="100%" class="table_notitle">
                <tr height="30px">
                    <td align="right" bgcolor="#ffffff" class="td01">
                        等级:
                    </td>
                    <td bgcolor="#ffffff">
                        <asp:Label ID="lblRank" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" class="td01">
                        名称:
                    </td>
                    <td bgcolor="#ffffff">
                        <asp:TextBox ID="txtName" runat="server" CssClass="input1" MaxLength="10" Width="188px"></asp:TextBox>
                        &nbsp;<span
                            style="color: Red;">*</span>
                        <%--<span style="color:Red; font-size:12px;">*</span>--%>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" class="td01">
                        积分范围：
                    </td>
                    <td bgcolor="#ffffff" colspan="2">
                        <asp:Label ID="lblLowLimit" runat="server" Text="Label"></asp:Label>
                        &nbsp;至
                        <asp:TextBox ID="txtHighLimit" runat="server" MaxLength="8" onkeyup="isDigital('txtHighLimit')"></asp:TextBox>
                        &nbsp;<span style="color: Red;">*</span><br />
                        <span class="warning" style="float: left; margin-top: 10px;">
                            <font>积分添加后不能修改。</font></span>
                    </td>
                </tr>
            </table>
        </td>
                    </tr>
                </table>
    </asp:Panel>
    <asp:TextBox ID="txtClassID" runat="server" Visible="false"></asp:TextBox>
    <asp:TextBox ID="txtProductID" runat="server" Visible="false"></asp:TextBox>
    </form>
      
</body>
</html>
