<%@ Page Language="C#" AutoEventWireup="true" Inherits="Web.Wpdcc.manageSensitiveWord"
    CodeBehind="manageSensitiveWord.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head runat="server">
    <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="edit-func-box func-box">
        <div class="hd">
           您的位置：系统选项 &gt; 敏感词管理</div>
        <form id="form1" runat="server">
        <div class="bd">
            <div class="function-hd">
                <div class="search-box fr">
                    
                </div>
                <div class="action-field">
                    <input type="button" value="添加" class="btn" onclick="location.href='manageSensitiveWord.aspx?ac=add';" />
                    &nbsp;&nbsp;
                    <span class="tip">说明：敏感词分三级。第一级，敏感词不过滤；第二级，敏感词将被替换为“*”后允许发布；第三级，不输出所发信息。</span>
                </div>
            </div>
            <div class="function-bd" style="overflow: auto;">
                <div id="ListContainer" runat="server" visible="false">
                    <table class="list-table">
                        <tr>
                            <th>
                                敏感词
                            </th>
                            <th>
                                敏感等级
                            </th>
                            <th>
                                操作
                            </th>
                        </tr>
                        <% for (int i = 0; _words != null && i < _words.Count; i++)
                           { %>
                        <tr>
                            <td>
                                <%= _words[i].Word %>
                            </td>
                            <td>
                                <%= _words[i].Level %>
                            </td>
                            <td>
                                <a href="manageSensitiveWord.aspx?ac=delete&id=<%= _words[i].pkId %>" onclick="if(!confirm('确认要删除本项吗?')){return false;}">
                                   <i class="icon icon-remove"></i></a>
                            </td>
                        </tr>
                        <%} %>
                    </table>
                </div>
                <div id="AddContainer" runat="server" visible="false">
                    <table class="edit-table">
                        <tr>
                            <th>
                                敏感词:
                            </th>
                            <td>
                                <asp:TextBox ID="AddWord" runat="server" CssClass="input-txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                等级:
                            </th>
                            <td>
                                <asp:DropDownList ID="AddLevel" runat="server" CssClass="drop-txt">
                                    <asp:ListItem Text="第一级" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="第二级" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="第三级" Value="3"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                    <div class="ft">
                        <div class="action-field btn-pl">
                            <asp:Button ID="AddSave" runat="server" Text="保存" CssClass="btn" Visible="false" OnClick="AddSave_Click" />
                            &nbsp;&nbsp;
                            <input type="button" value="取消" class="btn" onclick="history.go(-1);" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </form>
    </div>
</body>
</html>