-
Notifications
You must be signed in to change notification settings - Fork 23
/
ckeditor_audiolist.html
113 lines (110 loc) · 3.6 KB
/
ckeditor_audiolist.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="expires" content="wed, 26 feb 1997 08:21:57 gmt">
<title>音频库</title>
<meta name="author" content="phpok.com" />
<link rel="stylesheet" type="text/css" href="{#css#}/artdialog.css" />
<link rel="stylesheet" type="text/css" href="static/admin/layui/{#css#}/layui.css" />
<link rel="stylesheet" type="text/css" href="static/bootstrap/{#css#}/bootstrap.css" />
{func phpok_head_css}
<script type="text/javascript" src="{url ctrl=js ext=jquery.phpok,jquery.artdialog _ext=global.admin.js /}"></script>
{func phpok_head_js}
<script type="text/javascript">
function check_search(obj)
{
var k = $("#keywords").val();
if(!k){
$.dialog.alert('请输入要搜索的关键字');
return false;
}
var url = $(obj).attr("action");
url += "&keywords="+$.str.encode(k);
$.phpok.go(url);
return false;
}
function update_cate(val)
{
var old = "{$cate.id}";
if(old != val){
var url = "{url ctrl=ckeditor func=audiolist CKEditor=$CKEditor CKEditorFuncNum=$CKEditorFuncNum langCode=$langCode /}&cateid="+val;
$.phpok.go(url);
}
}
function save(id)
{
var url = get_url('ckeditor','video','callback={$CKEditorFuncNum}&id='+id);
$.phpok.go(url);
}
</script>
</head>
<body>
<div class="container-fluid mt-1 mb-1">
<form method="post" action="{url ctrl=ckeditor func=audiolist CKEditor=$CKEditor CKEditorFuncNum=$CKEditorFuncNum langCode=$langCode /}" onsubmit="return check_search(this)">
<div class="row">
<div class="col">
{$button}
</div>
<!-- if $catelist -->
<div class="col">
<select class="form-control form-control-sm" name="cateid" id="cateid" onchange="update_cate(this.value)">
<!-- loop from=$catelist key=$key value=$value id=$tmpid -->
<option value="{$value.id}"{if $cate && $value.id == $cate.id} selected{/if}>{$value.title}</option>
<!-- /loop -->
</select>
</div>
<!-- /if -->
<div class="col">
<input type="text" name="keywords" id="keywords" value="{$keywords}" placeholder="{lang请输入要搜索的关键字}" class="form-control form-control-sm" />
</div>
<div class="col">
<div class="btn-group" role="group" aria-label="">
<button type="submit" class="btn btn-primary btn-sm">{lang搜索}</button>
<a href="{url ctrl=ckeditor func=audiolist CKEditor=$CKEditor CKEditorFuncNum=$CKEditorFuncNum langCode=$langCode /}" class="btn btn-warning btn-sm">{lang取消搜索}</a>
</div>
</div>
<div class="col text-right">
<button type="button" class="btn btn-danger btn-sm" onclick="$.phpok.reload()">{lang刷新}</button>
</div>
</div>
</form>
</div>
<table class="table table-hover">
<tr>
<th>ID</th>
<th>名称</th>
<th>上传时间</th>
<th>文件</th>
<th> </th>
</tr>
<!-- loop from=$rslist key=$key value=$value id=$tmpid -->
<tr>
<td>{$value.id}</td>
<td>{$value.title}</td>
<td>{func date 'Y-m-d H:i:s' $value.addtime}</td>
<td>{$value.filename}</td>
<td><input type="button" value="提交" onclick="save('{$value.id}')" class="btn btn-primary btn-sm" /></td>
</tr>
<!-- /loop -->
</table>
<!-- if $pagelist -->
<div class="container-fluid">
<nav aria-label="Page navigation">
<ul class="pagination pagination-sm">
<!-- loop from=$pagelist key=$key value=$value id=$tmpid -->
<li class="page-item{if $value.status} active{/if}"><a class="page-link" href="{$value.url}">{$value.title}</a></li>
<!-- /loop -->
</ul>
</nav>
</div>
<!-- /if -->
<script type="text/javascript" src="static/bootstrap/{#js#}/bootstrap.bundle.js"></script>
<script type="text/javascript">
function stop(){
return false;
}
document.oncontextmenu=stop;
</script>
</body>
</html>