|
|
@@ -83,10 +83,10 @@
|
|
83
|
83
|
|
|
84
|
84
|
.Qus_box li {
|
|
85
|
85
|
list-style: none;
|
|
86
|
|
- border: 1px solid #ccc;
|
|
87
|
|
- border-bottom: none;
|
|
88
|
|
- float: none;
|
|
89
|
|
- border-top: none
|
|
|
86
|
+ border: 1px solid #ccc;
|
|
|
87
|
+ border-bottom: none;
|
|
|
88
|
+ float: none;
|
|
|
89
|
+ border-top: none
|
|
90
|
90
|
}
|
|
91
|
91
|
|
|
92
|
92
|
.Qus_box {
|
|
|
@@ -94,8 +94,8 @@
|
|
94
|
94
|
}
|
|
95
|
95
|
|
|
96
|
96
|
.Qus_box div {
|
|
97
|
|
- padding: 10px;
|
|
98
|
|
- border-top: 1px solid #ccc;
|
|
|
97
|
+ padding: 10px;
|
|
|
98
|
+ border-top: 1px solid #ccc;
|
|
99
|
99
|
}
|
|
100
|
100
|
|
|
101
|
101
|
.title_ul {
|
|
|
@@ -104,16 +104,29 @@
|
|
104
|
104
|
}
|
|
105
|
105
|
|
|
106
|
106
|
.title_ul li {
|
|
107
|
|
- border: 1px solid #ccc;
|
|
108
|
|
- float: none;
|
|
109
|
|
- border-bottom: none;
|
|
|
107
|
+ border: 1px solid #ccc;
|
|
|
108
|
+ float: none;
|
|
|
109
|
+ margin-top: -1px;
|
|
|
110
|
+ overflow: hidden;
|
|
|
111
|
+ }
|
|
|
112
|
+
|
|
|
113
|
+ .title_ul li span {
|
|
|
114
|
+ width: 90%;
|
|
|
115
|
+ line-height: 30px;
|
|
|
116
|
+ /*text-indent: 2em;*/
|
|
|
117
|
+ border-left: 1px solid #ccc;
|
|
|
118
|
+ display: block;
|
|
|
119
|
+ float: left;
|
|
|
120
|
+ padding: 0 10px;
|
|
110
|
121
|
}
|
|
111
|
122
|
|
|
112
|
123
|
.title_ul li label {
|
|
113
|
|
- border-right: 1px solid #ccc;
|
|
114
|
124
|
line-height: 30px;
|
|
115
|
125
|
margin: 0;
|
|
116
|
|
- padding: 10px;
|
|
|
126
|
+ text-align: center;
|
|
|
127
|
+ width: 10%;
|
|
|
128
|
+ display: block;
|
|
|
129
|
+ float: left;
|
|
117
|
130
|
}
|
|
118
|
131
|
|
|
119
|
132
|
.checkbox input[type=checkbox] {
|
|
|
@@ -131,20 +144,25 @@
|
|
131
|
144
|
.wrapper {
|
|
132
|
145
|
margin-bottom: 20px;
|
|
133
|
146
|
}
|
|
|
147
|
+
|
|
134
|
148
|
.Ul {
|
|
135
|
149
|
float: left;
|
|
136
|
|
- padding-left: 0;
|
|
137
|
|
- border: none
|
|
|
150
|
+ padding-left: 0;
|
|
|
151
|
+ border: none
|
|
138
|
152
|
}
|
|
139
|
|
- .Ul li{
|
|
|
153
|
+
|
|
|
154
|
+ .Ul li {
|
|
140
|
155
|
float: left;
|
|
141
|
|
- border: none;
|
|
142
|
|
- padding: 5px;
|
|
|
156
|
+ border: none;
|
|
|
157
|
+ padding: 5px;
|
|
143
|
158
|
}
|
|
144
|
|
- .checkbox, .radio{
|
|
|
159
|
+
|
|
|
160
|
+ .checkbox,
|
|
|
161
|
+ .radio {
|
|
145
|
162
|
margin-bottom: 0;
|
|
146
|
163
|
}
|
|
147
|
|
- .Wd{
|
|
|
164
|
+
|
|
|
165
|
+ .Wd {
|
|
148
|
166
|
border-bottom: 1px solid #ccc;
|
|
149
|
167
|
}
|
|
150
|
168
|
</style>
|
|
|
@@ -202,7 +220,7 @@
|
|
202
|
220
|
<label for="">问卷名称</label><span class="Title"></span>
|
|
203
|
221
|
</li>
|
|
204
|
222
|
<li>
|
|
205
|
|
- <label for="">问卷名称</label><span class="F_Remark"></span>
|
|
|
223
|
+ <label for="">问卷说明</label><span class="F_Remark"></span>
|
|
206
|
224
|
</li>
|
|
207
|
225
|
</ul>
|
|
208
|
226
|
<ul class="Qus_box ">
|
|
|
@@ -211,7 +229,7 @@
|
|
211
|
229
|
</div>
|
|
212
|
230
|
</div>
|
|
213
|
231
|
</div>
|
|
214
|
|
-
|
|
|
232
|
+
|
|
215
|
233
|
<script>
|
|
216
|
234
|
var wid = helper.request.queryString("Str");
|
|
217
|
235
|
console.log(wid);
|
|
|
@@ -219,8 +237,7 @@
|
|
219
|
237
|
GetHJJG();
|
|
220
|
238
|
//GetYHFK();
|
|
221
|
239
|
XQ(wid);
|
|
222
|
|
-
|
|
223
|
|
-
|
|
|
240
|
+
|
|
224
|
241
|
})
|
|
225
|
242
|
|
|
226
|
243
|
//详情查看
|
|
|
@@ -247,77 +264,77 @@
|
|
247
|
264
|
//循环填表
|
|
248
|
265
|
var html = '';
|
|
249
|
266
|
var Questions = Count.paperModel.F_Questions;
|
|
250
|
|
-
|
|
|
267
|
+
|
|
251
|
268
|
for(var i = 0; i < Questions.length; i++) {
|
|
252
|
|
- var questype = Questions[i].questype;
|
|
253
|
|
- var quesanswers = Questions[i].quesanswers;
|
|
254
|
|
- var Quesid = Questions[i].quesid;
|
|
255
|
|
- html += '<li class="" name="ltype' + Quesid + '" >';
|
|
256
|
|
- html += '<div class="Back">';
|
|
257
|
|
- html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + ' </h3>';
|
|
258
|
|
- html += '</div>';
|
|
259
|
|
- //判断类型
|
|
260
|
|
- if(questype == 2) {
|
|
261
|
|
- //选项
|
|
262
|
|
- if(Questions[i].quesitems.length > 0) { //单选
|
|
263
|
|
- html += '<div class="radio clearfix" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
|
|
264
|
|
- var quesitems = Questions[i].quesitems;
|
|
265
|
|
- html+='<ul class="Ul">'
|
|
266
|
|
- for(var j = 0; j < quesitems.length; j++) {
|
|
267
|
|
- html+='<li>'
|
|
268
|
|
- html += '<label style="font-weight: normal;">'
|
|
269
|
|
- html += '' + (j + 1) + '.';
|
|
270
|
|
- var chk='';
|
|
271
|
|
- if(quesanswers==quesitems[j].itemid){
|
|
272
|
|
- chk='checked="checked"';
|
|
|
269
|
+ var questype = Questions[i].questype;
|
|
|
270
|
+ var quesanswers = Questions[i].quesanswers;
|
|
|
271
|
+ var Quesid = Questions[i].quesid;
|
|
|
272
|
+ html += '<li class="" name="ltype' + Quesid + '" >';
|
|
|
273
|
+ html += '<div class="Back">';
|
|
|
274
|
+ html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + ' </h3>';
|
|
|
275
|
+ html += '</div>';
|
|
|
276
|
+ //判断类型
|
|
|
277
|
+ if(questype == 2) {
|
|
|
278
|
+ //选项
|
|
|
279
|
+ if(Questions[i].quesitems.length > 0) { //单选
|
|
|
280
|
+ html += '<div class="radio clearfix" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
|
|
|
281
|
+ var quesitems = Questions[i].quesitems;
|
|
|
282
|
+ html += '<ul class="Ul">'
|
|
|
283
|
+ for(var j = 0; j < quesitems.length; j++) {
|
|
|
284
|
+ html += '<li>'
|
|
|
285
|
+ html += '<label style="font-weight: normal;">'
|
|
|
286
|
+ html += '' + (j + 1) + '.';
|
|
|
287
|
+ var chk = '';
|
|
|
288
|
+ if(quesanswers == quesitems[j].itemid) {
|
|
|
289
|
+ chk = 'checked="checked"';
|
|
273
|
290
|
//html += '<input type="radio" checked="checked" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
|
|
274
|
|
- }
|
|
275
|
|
- html += '<input type="radio" '+chk+' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
|
|
276
|
|
- html+='</li>'
|
|
277
|
|
-
|
|
278
|
291
|
}
|
|
279
|
|
- html+='</ul>'
|
|
280
|
|
- html += '</div>'
|
|
|
292
|
+ html += '<input type="radio" ' + chk + ' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
|
|
281
|
293
|
html += '</li>'
|
|
|
294
|
+
|
|
282
|
295
|
}
|
|
283
|
|
- } else if(questype == 1) {
|
|
284
|
|
- //问答题
|
|
285
|
|
-
|
|
286
|
|
- html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
|
|
287
|
|
- html += '<textarea class="Wds" "index="' + Questions[i].quesid + '"name="" rows="" cols="" style="width: 100%;">'+quesanswers+'</textarea>'
|
|
|
296
|
+ html += '</ul>'
|
|
288
|
297
|
html += '</div>'
|
|
|
298
|
+ html += '</li>'
|
|
|
299
|
+ }
|
|
|
300
|
+ } else if(questype == 1) {
|
|
|
301
|
+ //问答题
|
|
289
|
302
|
|
|
290
|
|
- } else {
|
|
291
|
|
- if(Questions[i].quesitems.length > 0) { //多选
|
|
|
303
|
+ html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
|
|
|
304
|
+ html += '<textarea class="Wds" "index="' + Questions[i].quesid + '"name="" rows="" cols="" style="width: 100%;">' + quesanswers + '</textarea>'
|
|
|
305
|
+ html += '</div>'
|
|
292
|
306
|
|
|
293
|
|
- html += '<div class="checkbox clearfix" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
|
|
294
|
|
- var quesitems = Questions[i].quesitems;
|
|
295
|
|
- html+='<ul class="Ul">'
|
|
296
|
|
- for(var j = 0; j < quesitems.length; j++) {
|
|
297
|
|
- html+='<li>'
|
|
298
|
|
- html += '<label style="font-weight: normal;">'
|
|
299
|
|
- html += '' + (j + 1) + '.';
|
|
300
|
|
- var arr=quesanswers.split('|');
|
|
301
|
|
- var chk='';
|
|
302
|
|
- for(var k = 0; k < arr.length; k++){
|
|
303
|
|
- chk='';
|
|
304
|
|
- if(arr[k]==quesitems[j].itemid){
|
|
305
|
|
- chk='checked="checked"';
|
|
306
|
|
- break;
|
|
307
|
|
- }
|
|
|
307
|
+ } else {
|
|
|
308
|
+ if(Questions[i].quesitems.length > 0) { //多选
|
|
|
309
|
+
|
|
|
310
|
+ html += '<div class="checkbox clearfix" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
|
|
|
311
|
+ var quesitems = Questions[i].quesitems;
|
|
|
312
|
+ html += '<ul class="Ul">'
|
|
|
313
|
+ for(var j = 0; j < quesitems.length; j++) {
|
|
|
314
|
+ html += '<li>'
|
|
|
315
|
+ html += '<label style="font-weight: normal;">'
|
|
|
316
|
+ html += '' + (j + 1) + '.';
|
|
|
317
|
+ var arr = quesanswers.split('|');
|
|
|
318
|
+ var chk = '';
|
|
|
319
|
+ for(var k = 0; k < arr.length; k++) {
|
|
|
320
|
+ chk = '';
|
|
|
321
|
+ if(arr[k] == quesitems[j].itemid) {
|
|
|
322
|
+ chk = 'checked="checked"';
|
|
|
323
|
+ break;
|
|
308
|
324
|
}
|
|
309
|
|
- html += '<input type="checkbox" '+chk+' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" ><span> ' + quesitems[j].itemname + '</span></label>'
|
|
310
|
|
- //html += '<input type="checkbox" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" > ' + quesitems[j].itemname + '</label>'
|
|
311
|
|
- html+='</li>'
|
|
312
|
325
|
}
|
|
313
|
|
- html+='</ul>'
|
|
314
|
|
- html += '</div>'
|
|
315
|
|
-
|
|
316
|
|
- html += '</li >';
|
|
|
326
|
+ html += '<input type="checkbox" ' + chk + ' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" ><span> ' + quesitems[j].itemname + '</span></label>'
|
|
|
327
|
+ //html += '<input type="checkbox" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" > ' + quesitems[j].itemname + '</label>'
|
|
|
328
|
+ html += '</li>'
|
|
317
|
329
|
}
|
|
318
|
|
- }
|
|
|
330
|
+ html += '</ul>'
|
|
|
331
|
+ html += '</div>'
|
|
319
|
332
|
|
|
|
333
|
+ html += '</li >';
|
|
|
334
|
+ }
|
|
320
|
335
|
}
|
|
|
336
|
+
|
|
|
337
|
+ }
|
|
321
|
338
|
$(html).appendTo(".Qus_box");
|
|
322
|
339
|
}
|
|
323
|
340
|
});
|
|
|
@@ -345,7 +362,6 @@
|
|
345
|
362
|
});
|
|
346
|
363
|
}
|
|
347
|
364
|
|
|
348
|
|
-
|
|
349
|
365
|
//用户反馈
|
|
350
|
366
|
function GetYHFK() {
|
|
351
|
367
|
$.ajax({
|