a7d51c49d0d8d658727c9ee9796c6a06f751d350.svn-base 11.8 KB
<div class="lg-nav">
    <div class="btn-group form-group-sm btn-mgl-10">
        <select class="form-control" id="filtertypename" filter-list-click>
            <option value="0">选择过滤分组</option>
            <option ng-repeat="filterlist in filterlists" value="{{filterlist.filterid}}">{{filterlist.filtername}}
            </option>
        </select>
    </div>

    <div class="btn-group btn-group-sm btn-mgl-10">
        <button type="button" class="btn btn-default" manage-filter-type><i class="fa fa-server"></i> 管理分组
        </button>
        <button type="button" class="btn btn-default" add-filter-type><i class="fa fa-folder-o"></i> 添加分组</button>

    </div>

    <!--next-->
    <div class="btn-group btn-group-sm btn-mgl-10">
        <button type="button" class="btn btn-default" add-filter-address><i class="fa fa-plus"></i> 添加过滤地址
        </button>
        <button type="button" class="btn btn-default" del-filter-address><i class="fa fa-trash-o"></i> 删除</button>
    </div>
    <div class="input-group input-group-sm lg-input-group lg-w-250 lg-input-group-right btn-mgr-10">
        <input type="search" class="form-control" id="filtersearchcon" placeholder="查询地址...">
               <span class="input-group-btn">
                 <button class="btn btn-default" type="button" filter-search><i class="fa fa-search"></i></button>
               </span>
    </div>
    <!-- /input-group -->
</div>
<div class="lg-con">
    <div class="lg-wrap" scroller-all="160">

        <div class="list-wrap">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th><label allcheck="0" class="checkall"></label></th>
                    <th>过滤地址</th>
                    <th>添加时间</th>
                    <th>所属分组</th>
                    <th>过滤理由</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="listitem in filteraddresslists">
                    <td width="60"><label cid="{{listitem.filteraddrid}}" datafilecheck="0" class="lg-checkbox lg-filter-address"></label></td>
                    <td>
                    	<div title="{{listitem.filteraddress}}" style="max-width: 320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">{{listitem.filteraddress}}</div>
                    </td>
                    <td>{{listitem.filteraddrdate}}</td>
                    <td><div title="{{getfiltername(listitem.filterid)}}" style="max-width: 120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">{{getfiltername(listitem.filterid)}}</div></td>
                    <td><div title="{{listitem.filteraddrreason}}" style="max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">{{listitem.filteraddrreason}}</div></td>
                    <td width="200">
                        <button class="btn btn-default btn-sm" ng-click="editfilteraddress(listitem.filteraddrid,listitem.filterid,listitem.filteraddress,listitem.filteraddrreason)"><i
                                class="fa fa-edit"></i> 编辑
                        </button>
                        <button class="btn btn-default btn-sm" ng-click="delfilteraddress(listitem.filteraddrid)"><i
                                class="fa fa-trash-o"></i> 删除
                        </button>
                    </td>
                </tr>

                </tbody>
            </table>
        </div>
		<div style="line-height: 60px; text-align: center" ng-show="filteraddresslists.length==0">暂无过滤信息</div>

    </div>
    <!-- START 分页-->
    <div class="panel panel-default" ng-show="filteraddresslists.length!=0">
        <div>
            <!-- START row-->
            <div class="row">
                <div class="col-lg-7 col-lg-offset-5">
                    <pagination total-items="TotalItems" ng-model="CurrentPage" max-size="maxSize" boundary-links="true" rotate="false" num-pages="numPages" class="pagination-sm" ng-click="pageChanged()"></pagination>
                </div>
            </div>
            <!-- END row-->
        </div>
    </div>
    <!-- END 分页-->
</div>

<!--管理分组-->
<div id="dialog-settingmail" title="过滤分组管理" style="display: none;">
    <table class="table table-hover">
        <thead>
        <tr>
            <th>序号</th>
            <th>分组名</th>
            <th>建立时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="lp in filterlists">
            <td>{{$index+1}}</td>
            <td style="max-width:120px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;" title="{{lp.filtername}}">
            {{lp.filtername}}</td>
            <td>{{lp.filterdate}}</td>
            <td width="200">
                <div class="btn-group">
                    <button class="btn btn-default btn-xs" ng-click="filtertypeedit(lp.filterid,lp.filtername)"><i class="fa fa-edit"></i>
                        编辑
                    </button>
                    <button class="btn btn-default btn-xs" ng-click="filtertypedel(lp.filterid)"><i class="fa fa-trash-o"></i> 删除
                    </button>
                    <button class="btn btn-default btn-xs" ng-click="filtertypeclear(lp.filterid)"><i class="fa fa-trash-o"></i> 清空
                    </button>
                </div>
            </td>
        </tr>

        </tbody>
    </table>
</div>

<div id="dialog-addtype" title="添加分组" style="display: none">
    <div class="panel-body">
        <input type="text" id="addfilterinput" class="form-control" placeholder="分组名称">
    </div>
</div>
<div id="dialog-edittype" title="编辑分组" style="display: none">
    <div class="panel-body">
        <input type="text" id="editfilterinput" class="form-control" placeholder="分组名称">
    </div>
</div>
<div id="dialog-deltype" title="删除分组" style="display: none">
    <div class="panel-body">
        是否同时删除该组下的过滤地址: <input type="checkbox" name="delfiltercheck">
    </div>
</div>

<div id="dialog-editfilteraddress" title="编辑过滤地址" style="display: none">
    <div class="panel-body">
        <table class="table lg-table-border-bottom lg-bottom-mg0">
            <tbody>
            <tr>
                <td width="110">所属类别</td>
                <td><select class="form-control lg-w-150" id="editfilterid" >
                    <option value="0">选择过滤分组</option>
                    <option ng-repeat="filterlist in filterlists" value="{{filterlist.filterid}}">
                        {{filterlist.filtername}}
                    </option>
                </select></td>

            </tr>
            <tr>
                <td>过滤地址</td>
                <td><input type="text" class="form-control" id="editfilteraddress"></td>

            </tr>
            <tr>
                <td>过滤理由</td>
                <td><input type="text" class="form-control" id="editfilterbody"></td>

            </tr>
            </tbody>
        </table>
    </div>
</div>
<div id="dialog-address" style="display: none;" title="添加过滤地址">
    <div>
        <!-- Nav tabs -->
        <div class="btn-group lg-tab btn-mgl-10">
            <button class="btn btn-sm btn-default btn-primary">单个添加</button>
            <button class="btn btn-sm btn-default">批量导入</button>
        </div>

        <!-- Tab panes -->
        <div class="tab-content">
            <input type="hidden" id="flitertypenum" value="0">

            <div role="tabpanel" class="tab-pane active">

                <div class="lg-container">
                    <div class="lg-mail">
                        <table class="table lg-table-border-bottom lg-bottom-mg0">
                            <tbody>
                            <tr>
                                <td width="110">所属类别</td>
                                <td>
                                    <select class="form-control lg-w-150" id="filterpacketid" >
                                        <option value="0">选择过滤分组</option>
                                        <option ng-repeat="filterlist in filterlists" value="{{filterlist.filterid}}">
                                            {{filterlist.filtername}}
                                        </option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div class=""><p>批量添加过滤地址或域名,(<span class="color-red">*注意:每行一个</span>)</p><textarea
                                            id="filterpacketcon" class="form-control"
                                            rows="4"></textarea></div>
                                </td>
                            </tr>
                            <tr>
                                <td>过滤分组的理由</td>
                                <td><input type="text" id="filterpacketbody" class="form-control lg-w-150"
                                           placeholder="无理由"></td>
                            </tr>
                            </tbody>
                        </table>

                    </div>
                    <!--over-->
                </div>

            </div>
            <div role="tabpanel" class="tab-pane">

                <div class="lg-container">
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <form id="filterimportForm" class="form-horizontal">
                                <div class="form-group form-group-sm">
                                    <label class="col-lg-3 control-label">选择文件</label>

                                    <div class="col-lg-9">
                                        <select class="form-control lg-w-150" id="filterpacketsid">
                                            <option value="0">选择过滤分组</option>
                                            <option ng-repeat="filterlist in filterlists"
                                                    value="{{filterlist.filterid}}">{{filterlist.filtername}}
                                            </option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group form-group-sm">
                                    <label class="col-lg-3 control-label">选择文件</label>

                                    <div class="col-lg-9">
                                        <input type="file" id="filterpacketsfile" name="file" data-button-text="选择文件"
                                               class="form-control"/>
                                    </div>
                                </div>
                                <div class="form-group form-group-sm">
                                    <label class="col-lg-3 control-label">过滤理由</label>

                                    <div class="col-lg-9">
                                        <input type="text" id="filterpacketsbody" class="form-control lg-w-150" placeholder="无理由">
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!--over-->
                </div>

            </div>
        </div>

    </div>
</div>

<div id="dialog-filterresult" title="提示信息" style="display: none">
    <div class="panel-body filterresult">
        <p></p>
    </div>
</div>

<div id="dialog-filterip" title="提示信息" style="display: none;">
  <div class="panel-body">
 		 选中的过滤地址删除后将无法恢复,请确认是否删除?
  </div>
</div>