|
|
1
|
+<include file="public@header" />
|
|
|
2
|
+</head>
|
|
|
3
|
+<body>
|
|
|
4
|
+<div class="wrap js-check-wrap">
|
|
|
5
|
+ <ul class="nav nav-tabs">
|
|
|
6
|
+ <li><a href="{:url('rbac/index')}">{:lang('ADMIN_RBAC_INDEX')}</a></li>
|
|
|
7
|
+ <li class="active"><a>编辑信息</a></li>
|
|
|
8
|
+ </ul>
|
|
|
9
|
+ <form class="form-horizontal js-ajax-form margin-top-20" action="{:url('')}" method="post">
|
|
|
10
|
+ <div class="form-group">
|
|
|
11
|
+ <label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>用户姓名</label>
|
|
|
12
|
+ <div class="col-md-6 col-sm-10">
|
|
|
13
|
+ <input type="text" class="form-control" id="input-name" name="name" value="{$user.user_login}">
|
|
|
14
|
+ </div>
|
|
|
15
|
+ </div>
|
|
|
16
|
+ <div class="form-group">
|
|
|
17
|
+ <label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>用户昵称</label>
|
|
|
18
|
+ <div class="col-md-6 col-sm-10">
|
|
|
19
|
+ <input type="text" class="form-control" id="input-name" name="name" value="{$user.user_nickname}">
|
|
|
20
|
+ </div>
|
|
|
21
|
+ </div>
|
|
|
22
|
+
|
|
|
23
|
+ <div class="form-group">
|
|
|
24
|
+ <label for="input-remark" class="col-sm-2 control-label">用户简介</label>
|
|
|
25
|
+ <div class="col-md-6 col-sm-10">
|
|
|
26
|
+ <textarea type="text" class="form-control" id="input-remark" name="describe">{$user.describe}</textarea>
|
|
|
27
|
+ </div>
|
|
|
28
|
+ </div>
|
|
|
29
|
+
|
|
|
30
|
+ <div class="form-group">
|
|
|
31
|
+ <label for="input-remark" class="col-sm-2 control-label">联系电话</label>
|
|
|
32
|
+ <div class="col-md-6 col-sm-10">
|
|
|
33
|
+ <input type="text" class="form-control" id="input-name" name="mobile" value="{$user.mobile}">
|
|
|
34
|
+ </div>
|
|
|
35
|
+ </div>
|
|
|
36
|
+
|
|
|
37
|
+ <div class="form-group">
|
|
|
38
|
+ <label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>用户头像</label>
|
|
|
39
|
+ <div class="col-md-6 col-sm-10">
|
|
|
40
|
+ <div style="text-align: center;">
|
|
|
41
|
+ <input type="hidden" name="avatar" id="thumbnail"
|
|
|
42
|
+ value="{$user.avatar|default=''}">
|
|
|
43
|
+ <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
|
|
|
44
|
+ <if condition="empty($user.avatar)">
|
|
|
45
|
+ <img src="__TMPL__/public/assets/images/default-thumbnail.png"
|
|
|
46
|
+ id="thumbnail-preview"
|
|
|
47
|
+ width="135" style="cursor: pointer"/>
|
|
|
48
|
+ <else/>
|
|
|
49
|
+ <img src="{:cmf_get_image_preview_url($user.avatar)}"
|
|
|
50
|
+ id="thumbnail-preview"
|
|
|
51
|
+ width="135" style="cursor: pointer"/>
|
|
|
52
|
+ </if>
|
|
|
53
|
+ </a>
|
|
|
54
|
+ <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
|
|
|
55
|
+ </div>
|
|
|
56
|
+ </div>
|
|
|
57
|
+ </div>
|
|
|
58
|
+
|
|
|
59
|
+ <div class="form-group">
|
|
|
60
|
+ <label for="input-remark" class="col-sm-2 control-label">职位级别</label>
|
|
|
61
|
+ <div class="col-md-6 col-sm-10">
|
|
|
62
|
+
|
|
|
63
|
+ <select class="form-control valid" name="job" id="input-site_adminstyle" aria-invalid="false">
|
|
|
64
|
+ <volist name="jobs" id="job">
|
|
|
65
|
+ <option value="{$job.id}" selected="">{$job.name}</option>
|
|
|
66
|
+ </volist>
|
|
|
67
|
+ <option value="{$user.job}" selected="1">{$user.job_name}</option>
|
|
|
68
|
+ </select>
|
|
|
69
|
+
|
|
|
70
|
+ </div>
|
|
|
71
|
+ </div>
|
|
|
72
|
+
|
|
|
73
|
+ <div class="form-group">
|
|
|
74
|
+ <label for="input-remark" class="col-sm-2 control-label">所在地区-省</label>
|
|
|
75
|
+ <div class="col-md-6 col-sm-10">
|
|
|
76
|
+ <input type="text" class="form-control" id="input-name" name="province" value="{$user.province}">
|
|
|
77
|
+ </div>
|
|
|
78
|
+ </div>
|
|
|
79
|
+
|
|
|
80
|
+ <div class="form-group">
|
|
|
81
|
+ <label for="input-remark" class="col-sm-2 control-label">所在地区-市</label>
|
|
|
82
|
+ <div class="col-md-6 col-sm-10">
|
|
|
83
|
+ <input type="text" class="form-control" id="input-name" name="city" value="{$user.city}">
|
|
|
84
|
+ </div>
|
|
|
85
|
+ </div>
|
|
|
86
|
+
|
|
|
87
|
+ <div class="form-group">
|
|
|
88
|
+ <label for="input-remark" class="col-sm-2 control-label">所在地区-区</label>
|
|
|
89
|
+ <div class="col-md-6 col-sm-10">
|
|
|
90
|
+ <input type="text" class="form-control" id="input-name" name="town" value="{$user.town}">
|
|
|
91
|
+ </div>
|
|
|
92
|
+ </div>
|
|
|
93
|
+
|
|
|
94
|
+ <div class="form-group">
|
|
|
95
|
+ <label for="input-remark" class="col-sm-2 control-label">所在医院</label>
|
|
|
96
|
+ <div class="col-md-6 col-sm-10">
|
|
|
97
|
+ <select class="form-control valid" name="hospital" id="input-site_adminstyle" aria-invalid="false">
|
|
|
98
|
+
|
|
|
99
|
+ <volist name="hospitals" id="vo">
|
|
|
100
|
+ <option value="{$vo.id}" selected="">{$vo.name}</option>
|
|
|
101
|
+ </volist>
|
|
|
102
|
+ <option value="{$user.hospital}" selected="1">{$user.hospital_name}</option>
|
|
|
103
|
+ </select>
|
|
|
104
|
+ </div>
|
|
|
105
|
+ </div>
|
|
|
106
|
+
|
|
|
107
|
+ <div class="form-group">
|
|
|
108
|
+ <label for="input-remark" class="col-sm-2 control-label">所在科室</label>
|
|
|
109
|
+ <div class="col-md-6 col-sm-10">
|
|
|
110
|
+ <select class="form-control valid" name="hospital" id="input-site_adminstyle" aria-invalid="false">
|
|
|
111
|
+ <option value="{$user.office}" selected="1">{$user.office_name}</option>
|
|
|
112
|
+ </select>
|
|
|
113
|
+ </div>
|
|
|
114
|
+ </div>
|
|
|
115
|
+
|
|
|
116
|
+ <div class="form-group">
|
|
|
117
|
+ <label for="input-remark" class="col-sm-2 control-label">所在平台</label>
|
|
|
118
|
+ <div class="col-md-6 col-sm-10">
|
|
|
119
|
+ <select class="form-control valid" name="hospital" id="input-site_adminstyle" aria-invalid="false">
|
|
|
120
|
+
|
|
|
121
|
+ <volist name="platforms" id="vo">
|
|
|
122
|
+ <option value="{$vo.id}" selected="">{$vo.name}</option>
|
|
|
123
|
+ </volist>
|
|
|
124
|
+ <option value="{$user.platform}" selected="1">{$user.platform_name}</option>
|
|
|
125
|
+ </select>
|
|
|
126
|
+ </div>
|
|
|
127
|
+ </div>
|
|
|
128
|
+
|
|
|
129
|
+ <div class="form-group">
|
|
|
130
|
+ <div class="col-sm-offset-2 col-sm-10">
|
|
|
131
|
+ <input type="hidden" name="id" value="{$user.id}"/>
|
|
|
132
|
+ <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
|
|
|
133
|
+ <a class="btn btn-default" href="{:url('admin/rbac/index')}">{:lang('BACK')}</a>
|
|
|
134
|
+ </div>
|
|
|
135
|
+ </div>
|
|
|
136
|
+
|
|
|
137
|
+
|
|
|
138
|
+ </form>
|
|
|
139
|
+</div>
|
|
|
140
|
+<script src="__STATIC__/js/admin.js"></script>
|
|
|
141
|
+</body>
|
|
|
142
|
+</html> |