123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('收费项目')}:</label>
- <div class="col-xs-12 col-sm-8">
- <select name="row[item_id]" class="form-control selectpicker">
- {if $type eq 'shuifei'}
- <option value="1" selected>水费</option>
- {/if}
- {if $type eq 'dianfei'}
- <option value="2" selected>电费</option>
- {/if}
- {if $type eq 'tingchefei'}
- <option value="999999999" selected>停车位服务费</option>
- {/if}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('开始时间')}:</label>
- <div class="col-xs-12 col-sm-8">
- <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')}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('结束时间')}:</label>
- <div class="col-xs-12 col-sm-8">
- <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')}">
- </div>
- </div>
- {if $type eq 'shuifei' || $type eq 'dianfei'}
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('用量')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-yongliang" class="form-control" name="row[yongliang]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('单价')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-danjia" class="form-control" name="row[danjia]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('单位')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-danwei" class="form-control" name="row[danwei]" type="text" value="">
- </div>
- </div>
- {/if}
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('应付款')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('实付款')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-true_price" data-rule="required" class="form-control" step="0.01" name="row[true_price]" type="number" value="">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('收款方式')}:</label>
- <div class="col-xs-12 col-sm-8">
- <select name="row[pay_type]" class="form-control" >
- <option value="现金" >现金</option>
- <option value="微信">微信</option>
- <option value="支付宝" >支付宝</option>
- <option value="转账" >转账</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('支付状态')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="col-xs-12 col-sm-8">
- {:build_radios('row[pay_status]', ['0'=>__('未付款'),'1'=>__('已付款')])}
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('支付时间')}:</label>
- <div class="col-xs-12 col-sm-8">
- <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')}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-mark" class="form-control" name="row[mark]" type="text" value="">
- </div>
- </div>
- <input id="c-hu_id" class="form-control" name="row[hu_id]" type="hidden" value="{$hu_id}">
- <!-- <input id="c-type" class="form-control" name="row[type]" type="hidden" value="{$type}">-->
- <div class="form-group layer-footer">
- <label class="control-label col-xs-12 col-sm-2"></label>
- <div class="col-xs-12 col-sm-8">
- <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
|