edit.html
12.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<include file="public@header"/>
</head>
<body>
<!--<script type="text/html" id="photos-item-tpl">-->
<!--<li id="saved-image{id}">-->
<!--<input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">-->
<!--<input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"-->
<!--style="width: 200px;" title="图片名称">-->
<!--<img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"-->
<!--onclick="imagePreviewDialog(this.src);">-->
<!--<a href="javascript:uploadOneImage('图片上传','#photo-{id}');">替换</a>-->
<!--<a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>-->
<!--</li>-->
<!--</script>-->
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:url('Question/index')}">问卷调查</a></li>
<li class="active"><a href="#">更多信息</a></li>
</ul>
<form action="{:url('Question/edit')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
<div class="row">
<div class="col-md-9">
<table class="table table-bordered">
<tr>
<th width="100">用户昵称</th>
<td>
<input class="form-control" type="text" name=""
id="user_nickname" value="{$data.user_nickname}" placeholder="请输入用户昵称" readonly/>
<input type="hidden" name="id" value="{$data.id}">
</td>
</tr>
<tr>
<th width="100">姓名</th>
<td>
<input class="form-control" type="text" name="name"
id="name" value="{$data.name}" placeholder="请输入姓名"/>
</td>
</tr>
<tr>
<th width="100">性别</th>
<td>
<label><input type="radio" name="sex" value="男" <eq name="$data.sex" value="男">checked</eq> />男</label>
<label><input type="radio" name="sex" value="女" <eq name="$data.sex" value="女">checked</eq> />女</label>
</td>
</tr>
<tr>
<th width="100">年龄</th>
<td>
<input class="form-control" type="text" name="birthday"
id="birthday" value="{$data.birthday}" placeholder="请输入年龄"/>
</td>
</tr>
<tr>
<th width="100">所在地</th>
<td>
<input class="form-control" type="text" name="area"
id="area" value="{$data.area}" placeholder="请输入所在地"/>
</td>
</tr>
<tr>
<th width="100">家庭结构</th>
<td>
<select class="form-control" name="family_num">
<option value='1-2' <eq name="$data.family_num" value="1-2">selected</eq>>1-2</option>
<option value='3-4' <eq name="$data.family_num" value="3-4">selected</eq>>3-4</option>
<option value='5个以上' <eq name="$data.family_num" value="5个以上">selected</eq>>5个以上</option>
</select>
</td>
</tr>
<tr>
<th width="100">职业</th>
<td>
<select class="form-control" name="occupation">
<option value='职员' <eq name="$data.occupation" value="职员">selected</eq>>职员</option>
<option value='学生' <eq name="$data.occupation" value="学生">selected</eq>>学生</option>
<option value='自由职业' <eq name="$data.occupation" value="自由职业">selected</eq>>自由职业</option>
<option value='企业高管' <eq name="$data.occupation" value="企业高管">selected</eq>>企业高管</option>
<option value='其它' <eq name="$data.occupation" value="其它">selected</eq>>其它</option>
</select>
</td>
</tr>
<tr>
<th width="100">有无吸烟酗酒史</th>
<td>
<label><input type="radio" name="smoke_drink" value="有" <eq name="$data.smoke_drink" value="有">checked</eq> />有</label>
<label><input type="radio" name="smoke_drink" value="无" <eq name="$data.smoke_drink" value="无">checked</eq> />无</label>
</td>
</tr>
<tr>
<th width="100">出行方式</th>
<td>
<select class="form-control" name="going">
<option value='公共交通' <eq name="$data.going" value="公共交通">selected</eq>>公共交通</option>
<option value='自驾' <eq name="$data.going" value="自驾">selected</eq>>自驾</option>
<option value='公共交通+自驾' <eq name="$data.going" value="公共交通+自驾">selected</eq>>公共交通+自驾</option>
</select>
</td>
</tr>
<tr>
<th width="100">有无社保</th>
<td>
<label><input type="radio" name="social" value="有" <eq name="$data.social" value="有">checked</eq> />有</label>
<label><input type="radio" name="social" value="无" <eq name="$data.social" value="无">checked</eq> />无</label>
</td>
</tr>
<tr>
<th width="100">家庭年收入</th>
<td>
<select class="form-control" name="year_income">
<option value='5万以下' <eq name="$data.year_income" value="5万以下">selected</eq>>5万以下</option>
<option value='5-15万' <eq name="$data.year_income" value="5-15万">selected</eq>>5-15万</option>
<option value='15-25万' <eq name="$data.year_income" value="15-25万">selected</eq>>15-25万</option>
<option value='25-35万' <eq name="$data.year_income" value="25-35万">selected</eq>>25-35万</option>
<option value='35万以上' <eq name="$data.year_income" value="35万以上">selected</eq>>35万以上</option>
</select>
</td>
</tr>
<tr>
<th width="100">个人年收入</th>
<td>
<select class="form-control" name="personage_year_income">
<option value='50000' <eq name="$data.personage_year_income" value="50000">selected</eq>>5万以下</option>
<option value='100000' <eq name="$data.personage_year_income" value="100000">selected</eq>>5-15万</option>
<option value='200000' <eq name="$data.personage_year_income" value="200000">selected</eq>>15-25万</option>
<option value='250000' <eq name="$data.personage_year_income" value="250000">selected</eq>>25-35万</option>
<option value='350000' <eq name="$data.personage_year_income" value="350000">selected</eq>>35万以上</option>
</select>
</td>
</tr>
<tr>
<th width="100">有无负债</th>
<td>
<label><input type="radio" name="liabilities" value="有" <eq name="$data.liabilities" value="有">checked</eq> />有</label>
<label><input type="radio" name="liabilities" value="无" <eq name="$data.liabilities" value="无">checked</eq> />无</label>
</td>
</tr>
<tr>
<th width="100">大约未还负债</th>
<td>
<select class="form-control" name="not_return">
<option value='0' <eq name="$data.not_return" value="0">selected</eq>>无</option>
<option value='100000' <eq name="$data.not_return" value="100000">selected</eq>>10-30万</option>
<option value='150000' <eq name="$data.not_return" value="150000">selected</eq>>30-50万</option>
<option value='750000' <eq name="$data.not_return" value="750000">selected</eq>>50-100万</option>
<option value='1000000' <eq name="$data.not_return" value="1000000">selected</eq>>100万以上</option>
</select>
</td>
</tr>
<tr>
<th width="100">有无家族病史</th>
<td>
<label><input type="radio" name="family_disease" value="有" <eq name="$data.family_disease" value="有">checked</eq> />有</label>
<label><input type="radio" name="family_disease" value="无" <eq name="$data.family_disease" value="无">checked</eq> />无</label>
</td>
</tr>
<tr>
<th width="100">你更关心您家人哪方面保障</th>
<td>
<php>$safeguard=explode(',',$data['safeguard']);</php>
<label><input type="checkbox" name="safeguard[]" value="旅游" <foreach name="$safeguard" item="s"><eq name="$s" value="旅游">checked</eq></foreach> />旅游</label>
<label><input type="checkbox" name="safeguard[]" value="意外" <foreach name="$safeguard" item="s"><eq name="$s" value="意外">checked</eq></foreach> />意外</label>
<label><input type="checkbox" name="safeguard[]" value="健康" <foreach name="$safeguard" item="s"><eq name="$s" value="健康">checked</eq></foreach> />健康</label>
</td>
</tr>
<tr>
<th width="100">手机号</th>
<td>
<input class="form-control" type="text" name="phone"
id="phone" value="{$data.phone}" placeholder="请输入手机号"/>
</td>
</tr>
</table>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
</div>
</div>
</div>
<div class="col-md-3">
</div>
</div>
</form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
//编辑器路径定义
var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
$(function () {
editorcontent = new baidu.editor.ui.Editor();
editorcontent.render('content');
try {
editorcontent.sync();
} catch (err) {
}
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
});
$('.btn-cancel-thumbnail1').click(function () {
$('#thumbnail-preview1').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail1').val('');
});
});
</script>
</body>
</html>