123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <!--<div class="ibox-title">-->
- <!--<h5>{$title}</h5>-->
- <!--<div class="ibox-tools">-->
- <!--<a class="toback" href="{:url('index')}">-->
- <!--返回上一页-->
- <!--</a>-->
- <!--</div>-->
- <!--</div>-->
- <div class="ibox-content">
- <form method="post" action="{:url('add')}" class="form-horizontal">
- <input type="hidden" name="id" value="{$info['id']|default='0'}">
- <div class="form-group">
- <label class="col-sm-2 control-label">用户<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <select name="user_id" class="form-control">
- <option value="">请选择</option>
- {foreach $userList as $k=>$v}
- <option value="{$v.id}">{$v.real_name}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">开始时间<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget_view('common/datepicker',['name'=>'start_time', 'val' => isset($info['start_time'])?$info['start_time']:''])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">上下午<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <select name="apm1" class="form-control">
- <option value="1">上午</option>
- <option value="2">下午</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">结束时间<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget_view('common/datepicker',['name'=>'end_time', 'val' =>isset($info['end_time'])?$info['end_time']:''])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">上下午<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <select name="apm2" class="form-control">
- <option value="1">上午</option>
- <option value="2">下午</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">请假类型<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <select name="leave_type" class="form-control">
- <option value="1">事假</option>
- <option value="2">病假</option>
- <option value="3">年假</option>
- <option value="4">婚假</option>
- <option value="5">产假</option>
- <option value="6">丧假</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">请假天数<span class="text-danger">*</span></label>
- <div class="col-sm-6" >
- <input type="number" name="days" class="form-control" value="{$info['days']|default=''}">
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" data-layer_c="1" target-form="form-horizontal" type="submit">确 定</button>
- <button class="btn cancel-btn btn-default" type="button">取 消</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- $(document).ready(function(){
- formSetValue("leave_type", {$info.leave_type|default=1});
- });
- $(document).ready(function(){
- formSetValue("user_id", {$info.user_id|default=''});
- });
- $(document).ready(function(){
- formSetValue("apm1", {$info.apm1|default=1});
- });
- $(document).ready(function(){
- formSetValue("apm2", {$info.apm2|default=1});
- });
- </script>
- {/block}
|