12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- {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="sn" value="{$info.sn|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="org_id" class="form-control">-->
- <!-- <option value="0">请选择</option>-->
- <!-- {foreach $orgList as $k=>$v}-->
- <!-- <option value="{$v.id}">{$v.name}</option>-->
- <!-- {/foreach}-->
- <!-- </select>-->
- <!-- </div>-->
- <!-- </div>-->
- <div class="form-group">
- <label class="col-sm-2 control-label">地点</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="address" value="{$info.address|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="1" target-form="form-horizontal" type="submit">确 定</button>
- <!-- <a href="{:url('index')}" class="btn btn-default">取 消</a>-->
- </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}
|