<%@ 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">
    <!--#include file = "../Css/head.htm" -->
  
</head>
<body>
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa  fa-desktop"></i>
                    <a href="../welcome.aspx">主页</a>
                </li>
                <li>基础数据设置
                </li>
                <li class="active">敏感词</li>
            </ul>
            <!-- /.breadcrumb -->

            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->

                    <div class="edit-func-box func-box">
                        <form id="form1" runat="server">
                            <!-- #section:elements.tab.option -->
                            <div class="tabbable">
                                <ul class="nav nav-tabs" id="myTab4">
                                    <li>
                                        <a aria-expanded="false" href="department.aspx" data-toggle="tab">部门管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="grade.aspx" data-toggle="tab">等级管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="lockIP.aspx" data-toggle="tab">内外网管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="special.aspx" data-toggle="tab">专题管理</a>
                                    </li>
                                    <li class="active">
                                        <a aria-expanded="false" href="manageSensitiveWord.aspx" data-toggle="tab">敏感词</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="ManageSignUpField.aspx" data-toggle="tab">自定义表单</a>
                                    </li>
                                </ul>
                            </div>
                            <!-- /section:elements.tab.option -->
                            <div class="bd tab-content">
                                <div class="page-header clearfix">
                                    <div class="action-field">
                                        <div class="function-hd">
                                            <div class="search-box fr">
                                            </div>
                                            <div class="action-field">
                                                <input id="add" type="button" runat="server" value="添加" class="btn btn-sm btn-primary" onclick="location.href = 'manageSensitiveWord.aspx?ac=add';" />
                                                &emsp;<input type="button" runat="server" id="FancyBox_imp" class="btn btn-sm btn-primary" value="敏感词导入" />
                                                &emsp;<span title="" class="help-button" data-original-title="说明" data-toggle="popover" data-rel="popover" data-placement="right" data-content="敏感词分三级：第一级，敏感词不过滤；第二级，敏感词将被替换为“*”后允许发布；第三级，不输出所发信息。" data-trigger="hover">?</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="function-bd">
                                    <div id="ListContainer" runat="server" visible="false">
                                        <table class="table table-striped table-bordered table-hover">
                                            <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>
                                                    <div class="action-buttons">
                                                        <a href="manageSensitiveWord.aspx?ac=delete&id=<%= _words[i].pkId %>" onclick="if(!confirm('确认要删除本项吗?')){return false;}">
                                                            <i class="ace-icon fa fa-trash-o bigger-120 red"></i></a>
                                                    </div>
                                                </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-md"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>等级:
                                                </th>
                                                <td>
                                                    <asp:DropDownList ID="AddLevel" runat="server" CssClass="input-md">
                                                        <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 btn-sm btn-primary" Visible="false" OnClick="AddSave_Click" />
                                                &nbsp;&nbsp;
                            <input type="button" value="取消" class="btn btn-sm btn-primary" onclick="history.go(-1);" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
        <!-- /.page-content -->
    </div>
</body>
<!--#include file = "../Css/foot.htm" -->
     <script type="text/javascript">
         $(function () {
             $('[data-toggle="popover"]').popover()
         })
            </script>
      <script type="text/javascript" lang="javascript">

          $(document).ready(function () {
              $("#FancyBox_imp").click().fancybox({
                  'width': 550,
                  'height': 240,
                  autoSize: false,
                  'hideOnOverlayClick': false,
                  'transitionIn': 'elastic',
                  'transitionOut': 'elastic',
                  'type': 'iframe',
                  'padding': 0,
                  'href': 'SensitiveWordimport.aspx'
              });

          });
    </script>
</html>
