123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <form method="post" action="{:url('add')}" class="form-horizontal">
- <input type="hidden" name="id" value="{$info['id']|default='0'}">
- {if condition="isset($info) and $info['type'] eq 2"}
- <div class="form-group" style="display: none;">
- <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="account" value="{$info.account|default=''}">
- </div>
- </div>
- {else /}
- <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="account" value="{$info.account|default=''}">
- </div>
- </div>
- {/if}
- <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="real_name" value="{$info.real_name|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">密码</label>
- <div class="col-sm-6">
- <input type="password" autocomplete="off" class="form-control" name="password" placeholder="新增时必填,不修改不用填" value="">
- </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="mobile" value="{$info.mobile|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="depId" class="form-control">
- <option value="0">选择科室/部门</option>
- {volist name="deps" id="v"}
- <option value="{$v.id}">{$v.title}</option>
- {/volist}
- </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="rolesId" class="form-control">
- <option value="0">选择角色</option>
- {volist name="roles" id="v"}
- <option value="{$v.id}">{$v.title}</option>
- {/volist}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">护士站始发空间</label>
- <div class="col-sm-6">
- {:widget('common/select',['name'=>'addr_id','lists'=>$address,'value'=>isset($info.addr_id)?$info.addr_id:""])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">排序</label>
- <div class="col-sm-6">
- <input type="number" class="form-control" name="sort" value="{$info.sort|default='0'}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">状态</label>
- <div class="col-sm-6">
- <label class="cr-inline">
- <input type="radio" value="1" name="enable">正常
- </label>
- <label class="cr-inline">
- <input type="radio" value="0" name="enable">禁用
- </label>
- </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>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- $(document).ready(function(){
- formSetValue("enable", {$info.enable|default=1});
- formSetValue("depId", {$info.dep_id|default=0});
- formSetValue("rolesId", {$info.roles_id|default=0});
- });
- </script>
- {/block}
|