1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- {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">
- <input type="text" class="form-control" name="title" value="{$info.title|default=''}">
- </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="distance" class="form-control">
- <option value="100">100</option>
- <option value="200">200</option>
- <option value="300">300</option>
- <option value="500">500</option>
- <option value="800">800</option>
- <option value="1000">1000</option>
- <option value="1500">1500</option>
- <option value="2000">2000</option>
- <option value="2500">2500</option>
- <option value="3000">3000</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">地图标注</label>
- <div class="col-sm-6">
- {:widget_view('common/gdmap',['name'=>'latlng', 'val' => isset($info['latlng'])&&!empty($info['latlng'])?$info['latlng']:''])}
- </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("enable", {$info.enable|default=1});
- });
- $(document).ready(function(){
- formSetValue("distance", {$info.distance|default='100'});
- });
- var val=$('#value').attr('value');
- document.getElementById("value").value=val;
- </script>
- {/block}
|