123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <link rel="stylesheet" href="/admin/assets/css/bootstrap.min.css" />
- <link rel="stylesheet" href="/admin/assets/css/font-awesome.min.css" />
- <link rel="stylesheet" href="/admin/assets/css/ace.min.css" />
- <link rel="stylesheet" href="/admin/assets/css/ace-rtl.min.css" />
- <link rel="stylesheet" href="/admin/assets/css/ace-skins.min.css" />
- <script src="/admin/script/jquery.min.js"></script>
- <script src="/admin/script/jquery.form.js"></script>
- <div class="page-content" style="height:450px;overflow:scroll;">
- <div class="page-header">
- <h1>
- ##if(type.type==1){
- 编辑模板用途
- ##}else if(type.type==2){
- 编辑模板行业
- ##}else if(type.type==3){
- 编辑模板节日
- ##}else{
- 编辑模板风格
- ##}
- </h1>
- </div>
- <div class="row">
- <div class="col-xs-12">
- <form class="form-horizontal" action="/admin/diyType/update" method="post" id="submit_form">
- <div class="form-group">
- <label class="col-sm-3 control-label"><span style="color: #f00">*</span>名称</label>
- <div class="col-sm-9">
- <input type="text" name="title" class="col-xs-10 col-sm-5" style="border: 1px solid #ccc" value="${type.title!}" />
- </div>
- </div>
- <div class="space-4"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label"><span style="color: #f00">*</span>顺序</label>
- <div class="col-sm-10">
- <input type="text" name="idx" class="col-xs-10 col-sm-5" style="border: 1px solid #ccc" value="${type.idx!}" />
- </div>
- </div>
- <input type="hidden" value="${type.id!}" name="id" />
- </form>
- </div>
- </div>
- </div>
- <div style="width:100%;text-align: center;">
- <button type="button" class="btn btn-info" onclick="return submitForm()" style="padding:0px 5px;margin-top:5px;">
- <i class="icon-ok bigger-110"></i>确定
- </button>
-
- <button type="reset" class="btn" onclick="parent.hideAlert()" style="padding:0px 5px;margin-top:5px;">
- <i class="icon-undo bigger-110"></i>取消
- </button>
- </div>
- <script>
- function submitForm(){
-
- $('#submit_form').ajaxSubmit({
- success: function(data){
- alert(data.msg);
- if(data.success){
- parent.location.reload();
- }
- }
- });
- }
- </script>
|