add.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">{:__('收费项目')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <select name="row[item_id]" class="form-control selectpicker">
  6. {if $type eq 'shuifei'}
  7. <option value="1" selected>水费</option>
  8. {/if}
  9. {if $type eq 'dianfei'}
  10. <option value="2" selected>电费</option>
  11. {/if}
  12. {if $type eq 'tingchefei'}
  13. <option value="999999999" selected>停车位服务费</option>
  14. {/if}
  15. </select>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('开始时间')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM" data-use-current="true" name="row[start_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('结束时间')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  28. </div>
  29. </div>
  30. {if $type eq 'shuifei' || $type eq 'dianfei'}
  31. <div class="form-group">
  32. <label class="control-label col-xs-12 col-sm-2">{:__('用量')}:</label>
  33. <div class="col-xs-12 col-sm-8">
  34. <input id="c-yongliang" class="form-control" name="row[yongliang]" type="text" value="">
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label class="control-label col-xs-12 col-sm-2">{:__('单价')}:</label>
  39. <div class="col-xs-12 col-sm-8">
  40. <input id="c-danjia" class="form-control" name="row[danjia]" type="text" value="">
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label class="control-label col-xs-12 col-sm-2">{:__('单位')}:</label>
  45. <div class="col-xs-12 col-sm-8">
  46. <input id="c-danwei" class="form-control" name="row[danwei]" type="text" value="">
  47. </div>
  48. </div>
  49. {/if}
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('应付款')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="">
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="control-label col-xs-12 col-sm-2">{:__('实付款')}:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-true_price" data-rule="required" class="form-control" step="0.01" name="row[true_price]" type="number" value="">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('收款方式')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <select name="row[pay_type]" class="form-control" >
  66. <option value="现金" >现金</option>
  67. <option value="微信">微信</option>
  68. <option value="支付宝" >支付宝</option>
  69. <option value="转账" >转账</option>
  70. </select>
  71. </div>
  72. </div>
  73. <div class="form-group">
  74. <label class="control-label col-xs-12 col-sm-2">{:__('支付状态')}:</label>
  75. <div class="col-xs-12 col-sm-8">
  76. <div class="col-xs-12 col-sm-8">
  77. {:build_radios('row[pay_status]', ['0'=>__('未付款'),'1'=>__('已付款')])}
  78. </div>
  79. </div>
  80. </div>
  81. <div class="form-group">
  82. <label class="control-label col-xs-12 col-sm-2">{:__('支付时间')}:</label>
  83. <div class="col-xs-12 col-sm-8">
  84. <input id="c-pay_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  85. </div>
  86. </div>
  87. <div class="form-group">
  88. <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
  89. <div class="col-xs-12 col-sm-8">
  90. <input id="c-mark" class="form-control" name="row[mark]" type="text" value="">
  91. </div>
  92. </div>
  93. <input id="c-hu_id" class="form-control" name="row[hu_id]" type="hidden" value="{$hu_id}">
  94. <!-- <input id="c-type" class="form-control" name="row[type]" type="hidden" value="{$type}">-->
  95. <div class="form-group layer-footer">
  96. <label class="control-label col-xs-12 col-sm-2"></label>
  97. <div class="col-xs-12 col-sm-8">
  98. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  99. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  100. </div>
  101. </div>
  102. </form>