a7d51c49d0d8d658727c9ee9796c6a06f751d350.svn-base
11.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<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>