12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <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>添加专题</h1>
- </div>
- <div class="row">
- <div class="col-xs-12">
- <form class="form-horizontal" action="/admin/subject/save" 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" />
- </div>
- </div>
- <div class="space-4"></div>
- <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="idx" class="col-xs-10 col-sm-5" style="border: 1px solid #ccc" />
- </div>
- </div>
- </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>
|