addorderreturngoods.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data">
  2. <input type="hidden" name="data[id]" value="{$data['id']}" />
  3. <div class="modal-dialog">
  4. <div class="modal-content">
  5. <div class="modal-header">
  6. <button data-dismiss="modal" class="close" type="button">×</button>
  7. <h4 class="modal-title"><?php if( !empty($data['id'])){ ?>编辑<?php }else{ ?>添加<?php } ?>规则</h4>
  8. </div>
  9. <div class="modal-body">
  10. <div class="form-group">
  11. <label class="col-lg control-label must">原因</label>
  12. <div class="col-sm-9 col-xs-12">
  13. <input type="text" name="data[title]" class="form-control" value="{$data['title']}" data-rule-required="true" />
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-lg control-label must">排序</label>
  18. <div class="col-sm-9 col-xs-12">
  19. <input type="text" name="data[sortby]" class="form-control" value="{$data['sortby']}" data-rule-required="true" />
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="col-lg control-label must">状态</label>
  24. <div class="col-sm-9 col-xs-12">
  25. <label class="radio-inline">
  26. <input type="radio" name="data[state]" value="1" <?php if( empty($data) || $data['state'] == 1){ ?> checked <?php } ?>> 开启
  27. </label>
  28. <label class="radio-inline">
  29. <input type="radio" name="data[state]" value="0" <?php if( !empty($data) && $data['state'] == 0){ ?> checked <?php } ?>> 关闭
  30. </label>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="modal-footer">
  35. <button class="btn btn-primary" type="submit">提交</button>
  36. <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
  37. </div>
  38. </div>
  39. </div>
  40. </form>