1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- {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>{$meta_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">设备号</label>
- <div class="col-sm-6">
- <input type="text" {if isset($info['id'])} readonly {/if} class="form-control" name="imei" value="{$info.imei|default=''}">
- </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="nickname" value="{$info.nickname|default=''}">
- </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="age" value="{$info.age|default=''}">
- </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="height" value="{$info.height|default=''}">
- </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="weight" value="{$info.weight|default=''}">
- </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="form-group">
- <label class="col-sm-2 control-label">选择性别</label>
- <div class="col-sm-6">
- <select name="sex" class="form-control" id="user">
- <option value="0">选择性别</option>
- {volist name='$sex' id='v' key='k'}
- <option {if isset($info['sex']) && $info['sex']==$k} selected {/if} value="{$k|default=''}">{$v}</option>
- {/volist}
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" 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>
- </script>
- {/block}
|