index.html
3.5 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
<include file="public/layout" />
<style type="text/css">
input,select,.ncap-btn-big{
width: 80px;
}
.mlr5 {
margin: 0 5px;
}
.dataNum li{
padding: 10px;
vertical-align: middle;
display: inline-block;
*display: inline;
*zoom: 1;
}
.dataNum li input{
margin-left: 5px;
}
.txtBox{
width: 320px;
height: 88px;
resize: none;
}
</style>
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
<div class="fixed-bar">
<div class="item-title">
<div class="ftitle">
<h3>参数设置</h3>
<h5></h5>
<div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>
</div>
</div>
</div>
<!-- 操作说明 -->
<div id="explanation" class="explanation" style="color: rgb(44, 188, 163); background-color: rgb(237, 251, 248); width: 99%; height: 100%;">
<div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
<h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
<span title="收起提示" id="explanationZoom" style="display: block;"></span>
</div>
<ul>
<li>每1份可设置多少元(邮费)</li>
</ul>
</div>
<form class="form-horizontal" id="handleposition" method="post">
<input name="edit" value="{$info.id}" type="hidden">
<div class="ncap-form-default">
<dl class="row">
<dt class="tit">
<label>是否启用</label>
</dt>
<dd class="opt">
<div class="onoff">
<label for="state1" class="cb-enable <if condition="$info.state eq 1">selected</if>">开启</label>
<label for="state0" class="cb-disable <if condition="$info.state eq 0">selected</if>">关闭</label>
<input id="state1" name="state" value="1" <if condition="$info.state eq 1"> checked="checked"</if> onkeydown="strkeydown(event, this, 'submitbtn')" type="radio">
<input id="state0" name="state" value="0" onkeydown="strkeydown(event, this, 'submitbtn')" <if condition="$info.state eq 0"> checked="checked"</if> type="radio">
</div>
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label>每位邮费</label>
</dt>
<dd class="opt">
<input type="text" name="add_expressprice" value="{$info.add_expressprice|default='10'}" class="mlr5" /> 元
</dd>
</dl>
</div>
</form>
<div class="ncap-form-default">
<div class="bot">
<a class="ncap-btn-big ncap-btn-red" href="JavaScript:void(0);" onclick="submitqd();">确认提交</a>
<a class="ncap-btn-big ncap-btn-gray" href="JavaScript:void(0);">重置</a>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript">
function submitqd() {
$.ajax({
type: "POST",
url: "/index.php?m=Admin&c=Giftuser&a=index&is_ajax=1", //+tab,
data: $('#handleposition').serialize(), // 你的formid
dataType:'json',
success: function (result) {
// alert(result.status);
if(result.status==0)
{
layer.msg('修改成功!',{icon:1,time:1000});
// setTimeout(function () {
// location.href='/index.php/admin/Marketing/round_list';
// },1000);
}
else
{
layer.msg(result.msg,{icon:2,time:1000});
}
//layer.closeAll();
}
})
}
</script>