topicSetTop.html
1.27 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
<!DOCTYPE html>
<div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll">
<form name="setTopForm" id="setTopForm" method="post">
<div style="margin-top: 20px;margin-left: 30px">
<table border="0" style="width:95%;margin-top:5px;line-height:30px;" id="tab">
<tr style="height: 60px">
<td>
<span style="color:red">*</span><label>内容ID</label> <br>
<input id="topArticleIds" name="topArticleIds" class="easyui-textbox" style="width: 500px;" /><br>
<span style="color:red">注:至多填写5个,设置的内容必须关联该话题</span>
</td>
</tr>
</table>
</div>
</form>
</div>
<script>
$(function () {
$("#setTopForm #topArticleIds").textbox({
required: true,
missingMessage: "内容ID不能为空",
prompt: " 填写置顶的内容ID,且以半角逗号隔开"
});
var data = paramObject.mkData;
if (data) {//编辑窗口
$("#topArticleIds").textbox("setValue", data.topArticles);
}else{
$("#topArticleIds").textbox("setValue", "");
}
});
</script>
</html>