modifyRights.html
1.61 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
<div class="page-head">
<div class="page-title">
<h1>进出站油电信息编辑</h1>
</div>
</div>
<ul class="page-breadcrumb breadcrumb">
<li><span class="active">编辑权限</span></li>
</ul>
<div class="portlet light bordered">
<div class="portlet-title">
<div class="caption">
<i class="icon-equalizer font-red-sunglo"></i> <span
class="caption-subject font-red-sunglo bold uppercase"></span>
</div>
</div>
<div class="portlet-body form">
<form action="/addYlb" class="form-horizontal" id="ylb_add_form" >
<div class="alert alert-danger display-hide">
<button class="close" data-close="alert"></button>
您的输入有误,请检查下面的输入项
</div>
<input type="hidden" value="0" name="yhlx" />
<div class="form-body">
<div class="form-group">
<label class="col-md-3 control-label">修改历史油/电权限:</label>
<div class="col-md-2">
<input type="text" class="form-control" name="modify_rights" id="modify_rights" readonly="readonly">
</div>
<button type="button" class="btn green" id="change" >修改</button>
</div>
</div>
</form>
<!-- END FORM-->
</div>
</div>
<script>
(function(){
function getModifyRights(){
$get('/ylb/getModifyRights',"",function(result){
$("#modify_rights").val(result.text);
});
}
getModifyRights();
$("#change").on('click', function () {
var par={};
par["modify_rights"] = $("#modify_rights").val();
$get('/ylb/modifyRightsChange',par,function(result){
layer.msg(result.text);
getModifyRights();
});
});
})();
</script>