topicSetOrder.html
1.93 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
<!DOCTYPE html>
<div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll">
<form name="setOrderForm" id="setOrderForm" 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>
<label>全部排序</label> <br>
<input type="text" min=0 id="topicOrder" name="topicOrder" class="easyui-numberbox" data-options="min:0,precision:0" style="width: 70%;" /><br>
</td>
<td>
<input type="checkbox" id = "visibleOrder"/>全部用户可见
</td>
</tr>
<tr style="height: 60px">
<td>
<label>发布排序</label> <br>
<input type="text" min=0 id="publishOrder" name="topicOrder" class="easyui-numberbox" data-options="min:0,precision:0" style="width: 70%;" /><br>
<span style="color:red">说明:是否可见由上下架状态控制</span>
</td>
</tr>
</table>
</div>
</form>
</div>
<script>
$(function () {
$("#setOrderForm #topicOrder").textbox({
required: false,
prompt: " 填写序号,且为正整数"
});
$("#setOrderForm #publishOrder").textbox({
required: false,
prompt: " 填写序号,且为正整数"
});
var data = paramObject.mkData;
$("#topicOrder").textbox("setValue", data.topicOrder);
$("#publishOrder").textbox("setValue", data.publishOrder);
if(data.visibleOrder == '1'){
$("#visibleOrder").attr("checked",true);
}else{
$("#visibleOrder").attr("checked",false);
}
});
</script>
</html>