123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data">
- <input type="hidden" name="data[id]" value="{$data['id']}" />
-
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button data-dismiss="modal" class="close" type="button">×</button>
- <h4 class="modal-title"><?php if( !empty($data['id'])){ ?>编辑<?php }else{ ?>添加<?php } ?>规则</h4>
- </div>
- <div class="modal-body">
- <div class="form-group">
- <label class="col-lg control-label must">原因</label>
- <div class="col-sm-9 col-xs-12">
- <input type="text" name="data[title]" class="form-control" value="{$data['title']}" data-rule-required="true" />
- </div>
- </div>
- <div class="form-group">
- <label class="col-lg control-label must">排序</label>
- <div class="col-sm-9 col-xs-12">
- <input type="text" name="data[sortby]" class="form-control" value="{$data['sortby']}" data-rule-required="true" />
- </div>
- </div>
- <div class="form-group">
- <label class="col-lg control-label must">状态</label>
- <div class="col-sm-9 col-xs-12">
- <label class="radio-inline">
- <input type="radio" name="data[state]" value="1" <?php if( empty($data) || $data['state'] == 1){ ?> checked <?php } ?>> 开启
- </label>
- <label class="radio-inline">
- <input type="radio" name="data[state]" value="0" <?php if( !empty($data) && $data['state'] == 0){ ?> checked <?php } ?>> 关闭
- </label>
- </div>
- </div>
-
-
- </div>
- <div class="modal-footer">
- <button class="btn btn-primary" type="submit">提交</button>
- <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
- </div>
- </div>
- </div>
- </form>
|