notspeak.html
37.9 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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head th:replace="../templates/common/head::head"></head>
<style type="text/css">
.fixed-table-toolbar .bs-bars, .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
margin-top: 0px;
}
.table {
margin-bottom: 0;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switch input {
display: none;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: red;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}
</style>
<body class="skin-blue sidebar-mini">
<div class="wrapper">
<div th:replace="../templates/common/frame::frame"></div>
<div class="content-wrapper" style="min-height: 788px;">
<section class="content-header">
<h1>
禁言管理
</h1>
<ol class="breadcrumb">
<li>首页</li>
<li>系统管理</li>
<li class="active">禁言管理</li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box box-info">
<div class="box-body">
<div class="clearfix">
<div class="btn-group margin-bottom pull-right">
<div class="btn-group margin-bottom">
<button type="button" id="quanbu"
class="btn btn-sm margin-r-5 action_bottom"
th:onclick="'javascript:quanbu()'">查询
</button>
<button type="button" id="jinyan"
class="btn btn-sm margin-r-5 action_bottom"
>禁言中
</button>
<button type="button" id="jiejin"
class="btn btn-sm margin-r-5 action_bottom"
>已解禁
</button>
<!-- <button type="button" id="yishen" -->
<!-- class="btn btn-sm margin-r-5 action_bottom" -->
<!-- >我的已审 -->
<!-- </button> -->
</div>
<button type="button" class="btn btn-primary btn-sm margin-r-5" id="query"
onclick="openOrClose('forms')">
<span id="a_up">展开▼</span><span id="a_down" style="display: none;">收起▲</span>
</button>
</div>
</div>
<div class="form-horizontal form-group-sm" id="forms" style="display: none;">
<form id="commentForm">
<div class="btn-group margin-bottom col-md-6" style="padding: 0;">
<div class="col-md-5" style="padding: 0">
<label for="user_id" class="control-label cb-toolbar">用户id:</label>
<div class="col-sm-8" style="padding: 0;">
<input class="form-control" name="user_id" type="text"
id="user_id" th:value="${User_id}">
</div>
</div>
<div class="col-md-5" style="padding: 0">
<label for="user_name" class="control-label cb-toolbar">用户昵称:</label>
<div class="col-sm-8" style="padding: 0;">
<input class="form-control" name="user_name" th:value="${User_name}"
type="text" id="user_name">
</div>
</div>
<!-- <div class="col-md-3" style="padding: 0"> -->
<!-- <label for="state" class="control-label cb-toolbar">状态:</label> -->
<!-- <div class="col-sm-6" style="padding: 0;"> -->
<!-- <select class="form-control col-sm-2" id="state" name="state"> -->
<!-- <option value="">全部</option> -->
<!-- <option value="0" >已解禁</option> -->
<!-- <option value="1" >禁言中</option> -->
<!-- </select> -->
<!-- </div> -->
<!-- </div> -->
</div>
</form>
</div>
<div class="fixed-table-container" style="padding-bottom: 0px;">
<div class="fixed-table-body">
<table data-toggle="table" data-pagination="true" data-search="false"
data-show-refresh="true"
data-show-toggle="true" data-show-columns="true" data-toolbar="#toolbar"
class="table table-hover">
<thead>
<tr>
<th style="text-align: center; width: 3%;" data-field="sp_id" tabindex="0">
<div class="th-inner ">用户ID</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 10%;" data-field="sp_id_brief"
tabindex="0">
<div class="th-inner ">用户昵称</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 5%;" data-field="type" tabindex="0">
<div class="th-inner ">用户头像</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 3%;" data-field="type" tabindex="0">
<div class="th-inner ">使用平台</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 3%;" data-field="type" tabindex="0">
<div class="th-inner ">禁言状态</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 3%;" data-field="type" tabindex="0">
<div class="th-inner ">禁言次数</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 3%;" data-field="type" tabindex="0">
<div class="th-inner ">修改人</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 10%;" data-field="upload_time"
tabindex="0">
<div class="th-inner ">禁言开始时间</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 10%;" data-field="updated_at"
tabindex="0">
<div class="th-inner ">禁言结束时间</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 30%;" data-field="msg" tabindex="0">
<div class="th-inner ">禁言消息</div>
<div class="fht-cell"></div>
</th>
<!-- <th style="text-align: center; width: 10%;" data-field="action" tabindex="0"> -->
<!-- <div class="th-inner ">操作</div> -->
<!-- <div class="fht-cell"></div> -->
<!-- </th> -->
</tr>
</thead>
<tbody>
<tr th:data-index="${notspeakStat.index}"
th:each="notspeak : ${notspeakPage.list}">
<td style="text-align: center; width: 5%;" th:text="${notspeak.user_id}">
82
</td>
<td style="text-align: center; width: 6%;" th:text="${notspeak.user_name}">
视讯中国
</td>
<td style="text-align: center; width: 6%;">
<div style="width:60px;height:60px;"><img
th:src="@{${notspeak.user_avatar}}" width="60px"
alt="用户头像"></div>
</td>
<td style="text-align: center; width: 6%;"
th:text="${notspeak.spid_desc}"></td>
<td style="text-align: center; width: 6%;" th:if="${notspeak.state==0}">
<label class="switch"><input type="checkbox" checked
th:id="'id'+${notspeak.id}"
th:user_name="${notspeak.user_name}"
th:spid_desc="${notspeak.spid_desc}"><span
class="slider round" th:id="${notspeak.id}"></span></label>
</td>
<td style="text-align: center; width: 6%;" th:if="${notspeak.state==1}">
<label class="switch"><input type="checkbox" th:id="'id'+${notspeak.id}"
th:user_name="${notspeak.user_name}"
th:spid_desc="${notspeak.spid_desc}"><span
class="slider round" th:id="${notspeak.id}"></span></label>
</td>
<td style="text-align: center; width: 6%;" th:text="${notspeak.count}"></td>
<td style="text-align: center; width: 6%;"
th:text="${notspeak.updater}"></td>
<td style="text-align: center; width: 10%;"
th:text="${#dates.format(notspeak.start_time, 'yyyy-MM-dd HH:mm:ss')}">
2018-11-22
23:08:48
</td>
<td style="text-align: center; width: 10%;"
th:text="${#dates.format(notspeak.end_time, 'yyyy-MM-dd HH:mm:ss')}">
2016-08-03
14:27:17
</td>
<td style="text-align: center; width: 25%;">
<!-- <span th:text="${notspeak.msg}"></span> -->
<textarea class="form-control" name="msg" cols="50" rows="3"
id="msg" th:text="${notspeak.msg}">禁言信息</textarea>
</td>
<!-- <td style="text-align: center; width: 10%;"> -->
<!-- <span> </span> -->
<!-- <a class="edit" th:href="'javascript:edit('+${notspeak.id}+',\''+${notspeak.user_name}+'\',\''+${notspeak.time}+'\',\''+${notspeak.time} +'\')'"> -->
<!-- <button class="btn btn-danger btn-xs">禁言</button> -->
<!-- </a><span> </span><span> </span> -->
<!-- <span> </span> -->
<!-- <a class="delete" th:href="'javascript:deleted('+${notspeak.id}+')'"> -->
<!-- <button class="btn btn-primary btn-xs">解除</button> -->
<!-- </a><span> </span><span> </span></td> -->
</tr>
</tbody>
</table>
</div>
<div class="fixed-table-pagination" style="display: block;">
<div class="pull-left pagination-detail">
<span class="pagination-info"
th:text="'共 '+${notspeakPage.total}+' 条记录,每页显示'">共 0 条记录</span>
<select class="" id="pageSize" name="pageSize"
onchange="selectPageSize()">
<option value="10" th:selected="${pageSize==10}">10</option>
<option value="20" th:selected="${pageSize==20}">20</option>
<option value="50" th:selected="${pageSize==50}">50</option>
<option value="100" th:selected="${pageSize==100}">100</option>
</select> <span class="pagination-info">条记录</span>
</div>
<div class="pull-right pagination">
<ul class="pagination" th:if="${notspeakPage.pages>1}">
<li class="page-pre"><a
th:href="'javascript:fanye(1);'">‹‹</a></li>
<li class="page-pre" th:if="${!notspeakPage.isFirstPage}"><a
th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-1}+'\');'">‹</a>
</li>
<li class="page-number" th:if="${notspeakPage.pageNum-3>=1}"><a
th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-3}+'\');'"
th:text="${notspeakPage.pageNum-3}">2</a></li>
<li class="page-number" th:if="${notspeakPage.pageNum-2>=1}"><a
th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-2}+'\');'"
th:text="${notspeakPage.pageNum-2}">2</a></li>
<li class="page-number" th:if="${notspeakPage.pageNum-1>=1}"><a
th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-1}+'\');'"
th:text="${notspeakPage.pageNum-1}">2</a></li>
<li class="page-number active"><a
href="javaScript:void(0);" th:text="${notspeakPage.pageNum}">2</a>
</li>
<li class="page-number"
th:if="${notspeakPage.pageNum+1<=notspeakPage.pages}"><a
th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+1}+'\');'"
th:text="${notspeakPage.pageNum+1}">2</a></li>
<li class="page-number"
th:if="${notspeakPage.pageNum+2<=notspeakPage.pages}"><a
th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+2}+'\');'"
th:text="${notspeakPage.pageNum+2}">2</a></li>
<li class="page-number"
th:if="${notspeakPage.pageNum+3<=notspeakPage.pages}"><a
th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+3}+'\');'"
th:text="${notspeakPage.pageNum+3}">2</a></li>
<li class="page-next" th:if="${!notspeakPage.isLastPage}"><a
th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+1}+'\');'">›</a>
</li>
<li class="page-next"><a
th:onclick="'javascript:fanye(\''+${notspeakPage.pages}+'\');'">››</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</section>
</div>
<!-- 模态框(Modal) -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" style="margin-top: 30%;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">编辑邮件消息</h4>
</div>
<div class="modal-body">
<form action="/notspeak/write" method="post" id="editWrite">
<input type="text" name="redirect_url" value="" class="hide" id="redirect_url"/>
<div class="form-group hide">
<label class="control-label col-sm-3" style="font-size: 15px;">Id:</label>
<div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;">
<input class="form-control" style="width:30%;" type="text" value="" id="id" name="id">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" style="font-size: 15px;">邮件地址:</label>
<div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;">
<input class="form-control" style="width:40%;" type="text" value="" id="notspeak_edit"
name="notspeak">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" style="font-size: 15px;">邮件人:</label>
<div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;">
<input class="form-control" style="width:20%;" type="text" value="" id="remark_edit"
name="remark">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" style="font-size: 15px;">邮件类型:</label>
<div class="col-sm-9" style="float: left">
<div th:each="bu:${notspeak_message}" style="padding-right: 30px;" class="write_check">
<span th:text="${bu.value}" style="font-size: 15px"></span>
<input type="checkbox" name="write_business" th:value="${bu.key}"
th:id="'write_check_'+${bu.key}">
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="javascript:$('#editWrite').submit();">提交
</button>
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<!-- 模态框,禁言框(Modal) -->
<div class="modal fade" id="speakModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" style="margin-top: 30%;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">禁言选项</h4>
</div>
<div class="modal-body">
<input type="text" name="speak_id" value="" class="hide" id="speak_id"/>
<div class="form-group">
<label class="control-label col-sm-3" style="font-size: 15px;">用户昵称:</label>
<div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;">
<input class="form-control" readonly="readonly" style="width:40%;" type="text" value=""
id="userName" name="userName">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" style="font-size: 15px;">发言平台:</label>
<div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;">
<input class="form-control" readonly="readonly" style="width:40%;" type="text" value=""
id="sp_desc" name="sp_desc">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" style="font-size: 15px;">禁言时长:</label>
<div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;">
<input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')"
style="display:inline;width:10%;" type="text" value="0" id="noSpeak_days"
name="noSpeak_days">
<span> 天 </span>
<input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')"
style="display:inline;width:10%;" type="text" value="0" id="noSpeak_hours"
name="noSpeak_hours">
<span> 时 </span>
<input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')"
style="display:inline;width:10%;" type="text" value="0" id="noSpeak_minutes"
name="noSpeak_minutes">
<span> 分 </span>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="javascript:submitSpeak();">提交</button>
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<script th:inline="javascript">
// 获取路径参数
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
// 状态==2是展开状态 触发展开
$(function () {
if (GetQueryString("expand_list_state") == "2") {
$("#query").click();
}
//按钮颜色设置
var state = [[${param.state}]] ? [[${param.state}]][0] : null;
var stateIsNull = $.trim(state) == "";
if (stateIsNull) {
$("#quanbu").addClass("btn-success");
} else if (state == '1') {
$("#jinyan").addClass("btn-danger");
} else if (state == '0') {
$("#jiejin").addClass("btn-info");
}
// else if (!stateIsNull && state != '0' && receive == '1') {
// $("#yishen").addClass("btn-warning");
// }
})
var user_id = "";//活动id
var user_name = "";//内容
var state = "";//状态
var count = "";//每页显示数量
function query() {
user_id = $("#user_id").val();
user_name = $("#user_name").val();
count = $("#pageSize").val();
var expand_list_state = $("#forms").attr("expand_list_state");
window.location.href = "/notSpeak/page?user_id=" + user_id + "&user_name=" + user_name + "&state=" + state + "&page=" + 1 + "&pageSize=" + count + "&expand_list_state=" + expand_list_state;
}
//全部
function quanbu() {
query();
}
//禁言
$('#jinyan').click(function () {
state = 1;
query();
});
//解禁
$('#jiejin').click(function () {
state = 0;
query();
});
//开关的点击事件
$(".slider").on('click', function (e) {
var myId = $(this).prop("id");
// var myIndex = $(".slider").index($(this));
var checked = $("#id" + myId).prop("checked");//获取当前状态,下一个状态用!checked表示
var user_name = $("#id" + myId).attr("user_name");
var spid_desc = $("#id" + myId).attr("spid_desc");
if (checked) {//当前用户没有被禁言,现在要执行禁言操作
speakModal(myId, user_name, spid_desc);
} else {//当前用户已被禁言,现在执行解除禁言操作
var r = confirm("您确定要解除当前用户的禁言操作吗?");
if (r == true) {
$.post("/notSpeak/speak?notSpeakId=" + myId + "&type=0&time=0", function (data) {
if (data.errorCode == 0) {
alert(data.errorMessage);
location.href = location.href;
} else {
alert(data.errorMessage);
location.href = location.href;
}
})
}
}
})
//禁言(弹窗)
function speakModal(speak_id, userName, sp_desc) {
$('#speak_id').val(speak_id);
$('#userName').val(userName);
$('#sp_desc').val(sp_desc);
$('#speakModal').modal('show');
}
//提交禁言
function submitSpeak() {
var speak_id = $("#speak_id").val();
var noSpeak_days = Number($("#noSpeak_days").val());
var noSpeak_hours = Number($("#noSpeak_hours").val());
var noSpeak_minutes = Number($("#noSpeak_minutes").val());
var time = noSpeak_days * 24 * 60 + noSpeak_hours * 60 + noSpeak_minutes;//单位为分钟
$.post("/notSpeak/speak?notSpeakId=" + speak_id + "&time=" + time + "&type=1", function (data) {
if (data.errorCode == 0) {
alert(data.errorMessage);
location.href = location.href;
} else {
alert(data.errorMessage);
}
})
}
//翻页函数
function fanye(page) {
var param = location.search;
if (param.indexOf("page=") != -1) {
var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
var split = se.split("&");
var h = "";
for (var i = 0; i < split.length; i++) {
var s = split[i];
if (s.indexOf("page=") < 0) h = h + "&" + split[i];
}
h = h.substring(1, h.length);
window.location.href = "/notSpeak/page?" + h + "&page=" + page;
} else {
param = param.substring(1, param.length);
window.location.href = "/notSpeak/page?" + param + "&page=" + page;
}
}
//选择每页数量触发函数
function selectPageSize() {
var pageSize = $("#pageSize").val();
var param = location.search;
if (param.indexOf("pageSize=") != -1) {
var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
var split = se.split("&");
var h = "";
for (var i = 0; i < split.length; i++) {
var s = split[i];
if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i];
}
h = h.substring(1, h.length);
window.location.href = "/notSpeak/page?" + h + "&page=" + 1 + "&pageSize=" + pageSize;
} else {
var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
var split = se.split("&");
var h = "";
for (var i = 0; i < split.length; i++) {
var s = split[i];
if (s.indexOf("page=") < 0) h = h + "&" + split[i];
}
h = h.substring(1, h.length);
window.location.href = "/notSpeak/page?" + h + "&page=" + 1 + "&pageSize=" + pageSize;
}
}
//鼠标回车事件
$(document).keyup(function (event) {
if (event.keyCode == 13) {
quanbu();
}
});
//打开编辑窗口
// function edit(Id,notspeak,remark,write_business){
// $("#myModalLabel").text("编辑邮件消息");
// $("#id").val(Id);
// $("#notspeak_edit").val(notspeak);
// $("#notspeak_edit").attr("readonly","true");
// $("#remark_edit").val(remark);
// $("#redirect_url").val(location.pathname+location.search);
// $(".write_check input").prop("checked",false);
// if($.trim(write_business)!=''){
// var array = write_business.split(",")
// for (var i=0;i<array.length;i++){
// $("#write_check_"+array[i]).prop("checked",true);
// }
// }
// $('#editModal').modal('show');
// }
//打开添加窗口
// function add(){
// $("#id").val("");
// $("#notspeak_edit").val("");
// $("#notspeak_edit").removeAttr("readonly");
// $("#remark_edit").val("");
// $(".write_check input").prop("checked",false);
// $("#redirect_url").val(location.pathname+location.search);
// $("#myModalLabel").text("添加邮件消息");
// $('#editModal').modal('show');
// }
//删除操作
// function deleted(id){
// var r = confirm("您确定删除本条内容吗?");
// if (r == true) {
// $.post("/notspeak/deleted?id=" + id, function (data) {
// if (data.errorCode == 0) {
// alert(data.errorMessage);
// location.href = location.href;
// } else {
// alert(data.errorMessage);
// }
// })
// }
// }
/*查询样式*/
function openOrClose(id_name_str) {
var id_name = '#' + id_name_str;
if ($(id_name).css('display') == 'block') {
$(id_name).slideUp(350);
$('#a_up').show();
$('#a_down').hide();
$("#forms").attr("expand_list_state", "1");
} else {
$(id_name).slideDown(350);
$('#a_up').hide();
$('#a_down').show();
$("#forms").attr("expand_list_state", "2");
}
}
</script>
<footer th:replace="../templates/common/foot::foot"></footer>
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="control-sidebar-bg" style="position: fixed; height: auto;"></div>
</div><!-- ./wrapper -->
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script type="text/javascript">
$('div.alert').not('.alert-danger').delay(3000).slideUp(300);
</script>
<!-- AdminLTE App -->
<script src="../../static/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../static/js/sidebar.js"></script>
</body>
</html>