-
Notifications
You must be signed in to change notification settings - Fork 5
/
setting.htm
52 lines (49 loc) · 2.04 KB
/
setting.htm
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
<?php include _include(ADMIN_PATH.'view/htm/header.inc.htm');?>
<div class="row">
<div class="col-lg-10 mx-auto">
<div class="card">
<div class="card-body">
<form action="<?php echo url('plugin-setting-ph_ckeditor');?>" method="post" id="form">
<div class="form-group row">
<label class="col-sm-3 form-control-label">css扩展样式:</label>
<div class="col-sm-9">
<?php echo $style; ?>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 form-control-label"></label>
<div class="col-sm-10">
<button type="submit" class="btn btn-primary btn-block" id="submit" data-loading-text="<?php echo lang('submiting');?>...">
<?php echo lang('confirm');?>
</button>
<a role="button" class="btn btn-secondary btn-block mt-3" href="javascript:history.back();">
<?php echo lang('back');?>
</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php include _include(ADMIN_PATH.'view/htm/footer.inc.htm');?>
<script>
var jform = $("#form");
var jsubmit = $("#submit");
var referer = '<?php echo url("plugin-setting-ph_ckeditor");?>';
jform.on('submit', function () {
jform.reset();
jsubmit.button('loading');
var postdata = jform.serialize();
$.xpost(jform.attr('action'), postdata, function (code, message) {
if (code == 0) {
$.alert(message);
jsubmit.text(message).delay(1000).button('reset').location(referer);
} else {
$.alert('提交失败');
jsubmit.button('reset');
}
});
return false;
});
</script>