edit_money.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <!--<div class="ibox-title">-->
  7. <!--<h5>{$meta_title}</h5>-->
  8. <!--<div class="ibox-tools">-->
  9. <!--<a class="toback" href="{:url('index')}">-->
  10. <!--返回上一页-->
  11. <!--</a>-->
  12. <!--</div>-->
  13. <!--</div>-->
  14. <div class="ibox-content">
  15. <form method="post" action="{:url('edit_money')}" class="form-horizontal">
  16. <input type="hidden" name="id" value="{$info['id']|default='0'}">
  17. <div class="form-group">
  18. <label class="col-sm-2 control-label">总余额</label>
  19. <div class="col-sm-6">
  20. <input type="text" disabled class="form-control" value="{$info.balance|default='0'}">
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-sm-2 control-label">修改余额<span class="text-danger">*(正数增加,负数扣除)</span></label>
  25. <div class="col-sm-6">
  26. <input type="number" class="form-control" name="balance" value="">
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="col-sm-2 control-label">备注</label>
  31. <div class="col-sm-6">
  32. <input type="text" class="form-control" name="remark">
  33. </div>
  34. </div>
  35. <div class="hr-line-dashed"></div>
  36. <div class="form-group">
  37. <div class="col-sm-4 col-sm-offset-2">
  38. <button class="btn btn-primary ajax-post" data-layer_c="1" target-form="form-horizontal" type="submit">确 定</button>
  39. <button class="btn cancel-btn btn-default" type="button">取 消</button>
  40. </div>
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. {/block}
  48. {block name="script"}
  49. <script>
  50. $(document).ready(function(){
  51. formSetValue("enable", {$info.enable|default=1});
  52. formSetValue("nums", {$info.nums|default=0});
  53. //formSetValue("org_id", {$info.org_id|default=0});
  54. });
  55. function click() {
  56. parent.closeAll();
  57. var vals;
  58. parent.$('#ele').val(JSON.stringify(vals))
  59. parent
  60. }
  61. </script>
  62. {/block}