-
Notifications
You must be signed in to change notification settings - Fork 2
/
goods_category_view_add_form.php
42 lines (39 loc) · 1.47 KB
/
goods_category_view_add_form.php
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
<?php
/*
* @auther lion
* @date 2013-2-1
*/
?>
<h3>新增产品类别</h3>
<hr class="bs-docs-separator">
<div class="div-form">
<form class="form-horizontal" action="./index.php?mod=goods_category&action=add_post" method="post">
<div class="control-group">
<label class="control-label" for="goods_category_name">产品类别名称</label>
<div class="controls">
<input type="text" id="goods_category_name" placeholder="" name="goods_category_name" required>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary">添加</button>
<a class="btn" href="javascript:history.go(-1);">返回</a>
</div>
</div>
</form>
</div>
<script>
$(function () { $("input,select,textarea").not("[type=submit]").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// Here I do nothing, but you could do something like display
// the error messages to the user, log, etc.
},
submitSuccess: function($form, event) {
},
filter: function() {
return $(this).is(":visible");
}
});
} );
</script>