edit.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {extend name="layout" /}
  2. {block name="content"}
  3. <div class="row">
  4. <div class="col-md-12">
  5. <div class="box nav-tabs-custom">
  6. <div class="box-header with-border">
  7. <h3 class="box-title">{$page_title|default=""|htmlspecialchars}</h3>
  8. </div>
  9. <div class="box-body tab-content">
  10. <div class="tab-pane active">
  11. <div class="block-content">
  12. {php}
  13. $url_param = input('param.');
  14. {/php}
  15. <!-- 表单验证请保留id="form",否则验证不起作用 -->
  16. <form class="form row" name="form" id="form" action="{:url('',$url_param)}" method="post" data-validator-option="{timely:1, theme:'bootstrap'}">
  17. {include file="../public/theme/admin/public/form.html" /}
  18. <div class="form-group col-md-12 col-xs-12">
  19. <div class="col-xs-12">
  20. {neq name="btn_hide" value="1"}
  21. <button class="btn btn-primary btn-flat" type="submit"> 提交 </button>
  22. {/neq}
  23. <button class="btn btn-default btn-flat" type="button" onClick="javascript:history.back(-1);return false;"> 返回 </button>
  24. </div>
  25. </form>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. {/block}
  33. {block name="style"}
  34. {volist name="set_style" id="s"}<link rel="stylesheet" href="{$s}" />{/volist}
  35. {/block}
  36. {block name="script"}
  37. {volist name="set_script" id="s"}<script type="text/javascript" src="{$s}"></script>{/volist}
  38. {/block}