Explorar el Código

Merge branch 'master' of http://192.168.1.222:3000/lihai/PingAnYeXianSZCG_Web

zhengbingbing %!s(int64=8) %!d(string=hace) años
padre
commit
015d644b8b

+ 278 - 60
CallCenterWeb.UI/OutboundMessage/LookMessage.html

@@ -19,6 +19,10 @@
19 19
 				min-width: 120px;
20 20
 			}
21 21
 			
22
+			.size-14 {
23
+				font-size: 14px!important;
24
+			}
25
+			
22 26
 			.shark_content_title {
23 27
 				font-size: 14px;
24 28
 				height: 30px;
@@ -37,34 +41,112 @@
37 41
 				width: 24%;
38 42
 				margin-bottom: 10px;
39 43
 			}
44
+			
45
+			#tbr {
46
+				border: 1px solid #ccc;
47
+			}
48
+			
49
+			#tbr td {
50
+				padding: 10px;
51
+				padding: 6px 0 5px 10px;
52
+				color: #717171;
53
+				line-height: 200%;
54
+				border-top: 1px dotted #cccccc;
55
+			}
56
+			
57
+			#tbr th {
58
+				border-right: 1px dotted #cccccc;
59
+				border-top: 1px dotted #cccccc;
60
+				background: #f9f9f9;
61
+				text-align: right;
62
+			}
63
+			
64
+			.Back {
65
+				background-color: #f5f5f5;
66
+			}
67
+			
68
+			label {
69
+				margin-right: 10px;
70
+			}
71
+			
72
+			.Phone_Text ul {
73
+				padding-left: 0;
74
+			}
75
+			
76
+			.Phone_Text li {
77
+				width: 50%;
78
+			}
79
+			
80
+			.Phone_Text label {
81
+				width: 60px;
82
+			}
83
+			
84
+			.Qus_box li {
85
+				list-style: none;
86
+				border: 1px solid #ccc;
87
+				border-bottom: none;
88
+				float: none;
89
+			}
90
+			
91
+			.Qus_box {
92
+				padding-left: 0!important;
93
+			}
94
+			
95
+			.Qus_box div {
96
+				padding: 10px;
97
+				border-bottom: 1px solid #ccc;
98
+			}
99
+			
100
+			.title_ul {
101
+				padding-left: 0;
102
+				margin-bottom: 0;
103
+			}
104
+			
105
+			.title_ul li {
106
+				border: 1px solid #ccc;
107
+				float: none;
108
+			}
109
+			
110
+			.title_ul li label {
111
+				border-right: 1px solid #ccc;
112
+				line-height: 30px;
113
+				margin: 0;
114
+				padding: 10px;
115
+			}
116
+			.checkbox input[type=checkbox]{
117
+				margin-top: 0;
118
+				margin-left: 0;
119
+				position: relative;
120
+			}
121
+			.radio input[type=radio]{
122
+				margin-top: 0;
123
+				margin-left: 0;
124
+				position: relative;
125
+			}
40 126
 		</style>
41 127
 	</head>
42 128
 
43 129
 	<body class="gray-bg">
44
-		<div class="wrapper  ">
45
-			<div class="content_1">
46
-				<div class="shark_content_title">
130
+		<div class="wrapper clearfix">
131
+			<div class="content_1 clearfix">
132
+				<div class="shark_content_title clearfix">
47 133
 					<span>电话信息</span>
48 134
 
49 135
 				</div>
50
-				<div>
51
-					<div style="width: 100%;padding: 10px;">
52
-						<table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
53
-							<thead>
54
-								<tr>
55
-									<th data-field="state" data-checkbox="true"></th>
56
-									<th data-field="F_Phone" data-align="center" data-formatter="Code">号码</th>
57
-									<th data-field="F_UserName" data-align="center">分配坐席</th>
58
-									<th data-field="F_HJJGName" data-align="center">呼叫结果</th>
59
-								</tr>
60
-							</thead>
61
-							<tbody id="tbody"></tbody>
62
-						</table>
63
-					</div>
136
+				<div class="clearfix Phone_Text clearfix">
137
+					<ul class="clearfix">
138
+						<li>
139
+							<label for="">姓名:</label><span class="Name_">18839115206</span>
140
+						</li>
141
+						<li>
142
+							<label for="">电话号码:</label><span class="Phone_"></span>
143
+						</li>
144
+
145
+					</ul>
64 146
 				</div>
65 147
 			</div>
66
-			<div class="content_2">
67
-				<div class="shark_content_title">
148
+			<div class="content_2  clearfix ">
149
+				<div class="shark_content_title clearfix">
68 150
 					<span>呼叫结果</span>
69 151
 
70 152
 				</div>
@@ -75,7 +157,7 @@
75 157
 				</div>
76 158
 			</div>
77 159
 			<div class="content_3 clearfix ">
78
-				<div class="shark_content_title">
160
+				<div class="shark_content_title clearfix">
79 161
 					<span>用户反馈</span>
80 162
 
81 163
 				</div>
@@ -85,63 +167,71 @@
85 167
 					</ul>
86 168
 				</div>
87 169
 			</div>
88
-			<div class="content_3  clearfix ">
89
-				<div class="shark_content_title">
170
+			<div class="content_4  clearfix ">
171
+				<div class="shark_content_title clearfix">
90 172
 					<span>问卷信息</span>
173
+					<div>
174
+						<ul style="padding-left: 0;" class="title_ul">
175
+							<li>
176
+								<label for="">问卷名称</label><span class="Title">5555555555555555</span>
177
+							</li>
178
+							<li>
179
+								<label for="">问卷名称</label><span class="F_Remark"></span>
180
+							</li>
181
+						</ul>
182
+						<ul class="Qus_box">
91 183
 
184
+						</ul>
185
+					</div>
186
+				</div>
187
+			</div>	
188
+			<div class="content_5  clearfix">
189
+				<div>
190
+					<button class="Ce">提交</button>
191
+					<input type="hidden" id="F_CusID"/>
192
+					<input type="hidden" id="F_Id"/>
92 193
 				</div>
93 194
 			</div>
94 195
 		</div>
95
-
196
+		
96 197
 		<script>
198
+			var wid = helper.request.queryString("Str");
199
+			console.log(wid);
97 200
 			$(document).ready(function() {
98
-				initTable();
99 201
 				GetHJJG();
100 202
 				GetYHFK();
203
+				XQ(wid);
101 204
 				/*搜索*/
102 205
 				$("#sc_btns").click(function() {
103 206
 					initTable();
104 207
 				})
105 208
 			})
106 209
 
107
-			function initTable() {
108
-				//先销毁表格
109
-				$('#list').bootstrapTable('destroy');
110
-				//初始化表格,动态从服务器加载数据
111
-				$("#list").bootstrapTable({
112
-					method: "get", //使用get请求到服务器获取数据
113
-					url: huayi.config.callcenter_url + "CallOutPlan/GetMyTaskList", //获取数据的Servlet地址
114
-					striped: true, //表格显示条纹
115
-					pagination: true, //启动分页
116
-					pageSize: 10, //每页显示的记录数
117
-					pageNumber: 1, //当前第几页
118
-					pageList: [10, 20, 50, 100], //记录数可选列表
119
-					search: false, //是否启用查询
120
-					showColumns: false, //显示下拉框勾选要显示的列
121
-					showRefresh: false, //显示刷新按钮
122
-					sidePagination: "server", //表示服务端请求
123
-					//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
124
-					//设置为limit可以获取limit, offset, search, sort, order
125
-					queryParamsType: "undefined",
126
-					queryParams: function queryParams(params) { //设置查询参数
127
-						var param = {
128
-							pageindex: params.pageNumber,
129
-							pagesize: params.pageSize,
130
-							key: $("#key").val(),
131
-							settime: $("#settime").val(),
132
-							token: $.cookie("token")
133
-						};
134
-						return param;
135
-					},
136
-					onLoadSuccess: function() { //加载成功时执行
137
-						//layer.msg("加载成功");
210
+			//详情查看
211
+			function XQ(wid) {
212
+				console.log(wid);
213
+				$.ajax({
214
+					type: "get",
215
+					url: huayi.config.callcenter_url + "CallOutPlan/GetTaskTelModel?",
216
+					dataType: 'json',
217
+					data: {
218
+						id: wid,
219
+						token: $.cookie("token")
138 220
 					},
139
-					onLoadError: function() { //加载失败时执行
140
-						//layer.msg("加载数据失败", { time: 1500, icon: 2 });
221
+					async: true,
222
+					success: function(data) {
223
+						var Count = data.data;
224
+						console.log(Count.taskModel);
225
+						$(".Name_").text(Count.taskModel.F_CusName);
226
+						$(".Phone_").text(Count.taskModel.F_Phone);
227
+						$("#F_CusID").val(Count.taskModel.F_CusID);
228
+						$("#F_Id").val(Count.taskModel.F_Id);
229
+						var pid = Count.paperid;
230
+						WJ(pid)
231
+
141 232
 					}
142 233
 				});
143 234
 			}
144
-
145 235
 			//获取呼叫结果
146 236
 			function GetHJJG() {
147 237
 				$.ajax({
@@ -157,14 +247,81 @@
157 247
 						var Count = data.data;
158 248
 						$("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
159 249
 						for(var i = 0; i < Count.length; i++) {
160
-							console.log(Count[i].F_UserName);
161 250
 							$("<li><label for=''><input type='radio' name='check' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
162 251
 							appendTo($("#Tgetruset"));
252
+
163 253
 						}
164 254
 					}
165 255
 				});
166 256
 			}
167 257
 
258
+			function WJ(pid) {
259
+				$(".tbody").empty();
260
+				$.ajax({
261
+					type: "get",
262
+					url: huayi.config.callcenter_url + "/Questionnaire/GetPagerInfoQ",
263
+					async: true,
264
+					dataType: "json",
265
+					data: {
266
+						pid: pid,
267
+						token: $.cookie("token"),
268
+
269
+					},
270
+					success: function(data) {
271
+						if(data.state.toLowerCase() == 'success') {
272
+							$('.Title').text(data.data.F_Title);
273
+							$(".F_Remark").text(data.data.F_Remark);
274
+							var Questions = data.data.F_Questions;
275
+							var html = '';
276
+							for(var i = 0; i < Questions.length; i++) {
277
+								var questype = Questions[i].questype;
278
+								var Quesid = Questions[i].quesid;
279
+								html += '<li class="" name="ltype' + Quesid + '" >';
280
+								html += '<div class="Back">';
281
+								html += '<h3 class="size-14 QuesTitle"  indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + ' </h3>';
282
+								html += '</div>';
283
+								//判断类型
284
+								if(questype == 2) {
285
+									//选项
286
+									if(Questions[i].quesitems.length > 0) { //单选
287
+										html += '<div class="radio" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
288
+										var quesitems = Questions[i].quesitems;
289
+										for(var j = 0; j < quesitems.length; j++) {
290
+											html += '<label style="font-weight: normal;">'
291
+											html += '' + (j + 1) + '.';
292
+											html += '<input type="radio" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '"  style="margin-left:5px;"> ' + quesitems[j].itemname + '</label>'
293
+										}
294
+										html += '</div>'
295
+										html += '</li>'
296
+									}
297
+								} else if(questype == 1) {
298
+									//问答题
299
+									html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
300
+									html += '<textarea class="Wds" index="' + Questions[i].quesid + '"name="" rows="" cols="" style="width: 100%;"></textarea>'
301
+									html += '</div>'
302
+
303
+								} else {
304
+									if(Questions[i].quesitems.length > 0) { //多选
305
+
306
+										html += '<div class="checkbox" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
307
+										var quesitems = Questions[i].quesitems;
308
+										for(var j = 0; j < quesitems.length; j++) {
309
+											html += '<label style="font-weight: normal;">'
310
+											html += '' + (j + 1) + '.';
311
+											html += '<input type="checkbox" index_="' + quesitems[j].itemid + '"  value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" > ' + quesitems[j].itemname + '</label>'
312
+										}
313
+										html += '</div>'
314
+
315
+										html += '</li >';
316
+									}
317
+								}
318
+
319
+							}
320
+							$(html).appendTo(".Qus_box");
321
+						}
322
+					}
323
+				});
324
+			}
168 325
 			//用户反馈
169 326
 			function GetYHFK() {
170 327
 				$.ajax({
@@ -180,13 +337,74 @@
180 337
 						var Count = data.data;
181 338
 						$("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
182 339
 						for(var i = 0; i < Count.length; i++) {
183
-							console.log(Count[i].F_UserName);
184 340
 							$("<li><label for=''><input type='radio' name='checks' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
185 341
 							appendTo($("#Tg"));
186 342
 						}
187 343
 					}
188 344
 				});
189 345
 			}
346
+			//提交
347
+			var ans = [];
348
+			var type;
349
+			var star_number = [];
350
+			var id;
351
+			var content;
352
+			var str;
353
+			var  strs;
354
+			$(".Ce").click(function() {				
355
+					
356
+					$(".radio").each(function(j,k) {
357
+						str = '';
358
+						var name = $(k).attr("name"); 
359
+						var index = $(k).attr("indexs"); 
360
+						var val=$('input[name="'+ name+'"]:checked').val();
361
+						str=index+'_'+val+'_';
362
+			 		 ans.push(str);
363
+					})
364
+					$(".checkbox").each(function(j,k) {
365
+						strs = '';
366
+						var name = $(k).attr("name"); 
367
+						var index = $(k).attr("indexs"); 
368
+						var val=$('input[name="'+ name+'"]:checked').val();
369
+						str=index+'|'+val+'_';
370
+			 		 ans.push(str);
371
+					})	
372
+					$(".Wd").each(function(j,k) {
373
+						strs = '';
374
+						var name = $(k).attr("name"); 
375
+						var index = $(k).attr("indexs"); 
376
+						var val=$(k).find(".Wds").val();
377
+						str=index+'_0_'+val;
378
+			 		 ans.push(str);
379
+					})	
380
+
381
+
382
+				
383
+				console.log(ans);
384
+				
385
+				//请求
386
+				$.ajax({
387
+					type: "POST",
388
+					url: huayi.config.callcenter_url + "CallOutPlan/Answers",
389
+					dataType: 'json',
390
+					data: {
391
+						taskid: wid,//任务ID
392
+						custelid:$("#F_Id").val(),//客户电话ID
393
+						cusid:$("#F_CusID").val(),//客户档案ID
394
+					ans:ans,//答案,数组形式["15_20_单选选项内容","17_25|36|58_复选选项内容1|选项内容2|选项内容3","30_0_问答题"]
395
+					hjjgid:$('input[name="check"]:checked').val(),//呼叫结果ID
396
+					yhfkid:$('input[name="checks"]:checked').val(),//用户反馈ID
397
+
398
+						token: $.cookie("token")
399
+					},
400
+					async: true,
401
+					success: function(data) {
402
+						var Count = data.data;
403
+						
404
+						console.log(Count)
405
+					}
406
+				});
407
+			})
190 408
 		</script>
191 409
 
192 410
 	</body>

+ 12 - 6
CallCenterWeb.UI/OutboundMessage/MyTask.html

@@ -105,20 +105,26 @@
105 105
 
106 106
 ///操作
107 107
 
108
-     function Code(){
109
-     	return'<div><a onclick="XX()">查看</a></div>'
108
+     function Code(val,row){
109
+     	return'<div><a onclick="XX('+row.F_Id+')">查看</a></div>'
110 110
    
111 111
      }
112 112
      //详情
113
-      function XX(){
113
+      function XX(str){
114
+      	console.log(str);
114 115
       	  	 		layer.open({
115 116
 		type: 2,
116
-		content: "../OutboundMessage/LookMessage.html?Str=", //iframe的url,no代表不显示滚动条
117
+		content: "../OutboundMessage/LookMessage.html?Str="+str, //iframe的url,no代表不显示滚动条
117 118
 		title: '任务信息',
118
-		area: ['40%', '45%'], //宽高
119
+		area: ['40%', '65%'], //宽高
119 120
 	});
120 121
       }
121
-
122
+//
123
+var ans=[];
124
+$('#tbr tbody tr .Back').each(function(){
125
+	var ID=$(this).attr("indexs");
126
+  console.log(ID);
127
+})
122 128
     </script>
123 129
 
124 130
 </body>

+ 77 - 33
CallCenterWeb.UI/Questionnaire/QuestionSetting.html

@@ -59,7 +59,6 @@
59 59
 			#tbr td {
60 60
 				padding: 10px;
61 61
 				padding: 6px 0 5px 10px;
62
-				
63 62
 				color: #717171;
64 63
 				line-height: 200%;
65 64
 				border-top: 1px dotted #cccccc;
@@ -79,19 +78,50 @@
79 78
 			label {
80 79
 				margin-right: 10px;
81 80
 			}
82
-			#tbr{
81
+			
82
+			#tbr {
83 83
 				display: none;
84 84
 			}
85
-			.WJmessage{
85
+			
86
+			.WJmessage {
86 87
 				line-height: 20px;
87 88
 				border-bottom: 1px solid #ccc;
88
-    padding-bottom: 10px;
89
+				padding-bottom: 10px;
89 90
 			}
90
-			.IMG_box{
91
+			
92
+			.IMG_box {
91 93
 				text-align: center;
92 94
 				padding: 10px;
93 95
 				margin-top: 5%;
94 96
 			}
97
+			
98
+			.Qus_box li {
99
+				list-style: none;
100
+				border: 1px solid #ccc;
101
+				border-bottom: none;
102
+			}
103
+			
104
+			.Qus_box {
105
+				padding-left: 0!important;
106
+			}
107
+			
108
+			.Qus_box div {
109
+				padding: 10px;
110
+				border-bottom: 1px solid #ccc;
111
+			}
112
+			.title_ul {
113
+				padding-left: 0;
114
+				margin-bottom: 0;
115
+			}
116
+			.title_ul li{
117
+				border: 1px solid #ccc;
118
+			}
119
+			.title_ul li label{
120
+				border-right: 1px solid #ccc;
121
+    line-height: 30px;
122
+    margin: 0;
123
+    padding: 10px;
124
+			}
95 125
 		</style>
96 126
 	</head>
97 127
 
@@ -128,7 +158,7 @@
128 158
 						<tr>
129 159
 							<th data-field="checkbox" data-align="center" data-formatter="setCode"></th>
130 160
 							<th data-align="center" data-field="F_Title">试卷名称</th>
131
-							<th data-align="center" data-field="F_PagerId"data-formatter="Code">操作</th>
161
+							<th data-align="center" data-field="F_PagerId" data-formatter="Code">操作</th>
132 162
 
133 163
 						</tr>
134 164
 					</thead>
@@ -144,18 +174,18 @@
144 174
 						<img src="../img/wjdc.jpg" alt="" />
145 175
 					</div>
146 176
 				</div>
147
-				<table id="tbr" style="width: 100%;">
177
+				<!--<table id="tbr" style="width: 100%;">
148 178
 					<thead>
149 179
 						<tr>
150 180
 
151 181
 							<th style='width: 150px;'>问卷名称:</th>
152
-							<td colspan="7" ><span class="Title"></span></td>
182
+							<td colspan="7" ><span class="Title">555555555</span></td>
153 183
 
154 184
 						</tr>
155 185
 						<tr>
156 186
 
157 187
 							<th style='width: 150px;'>问卷说明:</th>
158
-							<td  ><span class="F_Remark"></span></td>
188
+							<td  ><span class="F_Remark">55555555555</span></td>
159 189
 
160 190
 						</tr>
161 191
 					</thead>
@@ -187,11 +217,25 @@
187 217
 							</td>
188 218
 						</tr>
189 219
 					</tbody>
190
-				</table>
220
+				</table>-->
221
+				<div>
222
+					<ul style="padding-left: 0;" class="title_ul">
223
+						<li>
224
+							<label for="">问卷名称</label><span>5555555555555555</span>
225
+						</li>
226
+						<li>
227
+							<label for="">问卷名称</label><span></span>
228
+						</li>
229
+					</ul>
230
+					<ul class="Qus_box">
231
+						
232
+						
233
+
234
+					</ul>
235
+				</div>
191 236
 			</div>
192 237
 		</div>
193
-		
194
-			
238
+
195 239
 	</body>
196 240
 	<script src="../js/jquery.min.js?v=2.1.4"></script>
197 241
 	<script src="../js/bootstrap.min.js"></script>
@@ -202,26 +246,26 @@
202 246
 	<script src="../js/jquery.cookie.js"></script>
203 247
 	<script src="../css/layer/layer.js"></script>
204 248
 	<script src="../js/Questions/QuestionSetting.js"></script>
205
-	 <script>
206
-	 	var table=$("#tbr");
207
-	 	var arr=[];
208
-	 	var content;
209
-	 	$(".Root").click(function(){
210
-//	 		$("#tbr tr td .QuesTitle").each(function(){
211
-//	 			var val=$(this).text();
212
-//	 			var index=$(this).attr("indexs");
213
-//	 			arr.push(index+'_'+val);
214
-//	 			
215
-//	 		})
216
-//	 		console.log(arr)
217
-	 		$("#tbr tr td   input[name='ltype']").each(function(){
218
-	 			var val=$(this).val();
219
-	 			var index=$(this).attr("index_")
220
-	 			arr.push(index+'_'+val);
221
-	 			
222
-	 		})
223
-	
224
-	 	})
225
-	 </script>
249
+	<script>
250
+		var table = $("#tbr");
251
+		var arr = [];
252
+		var content;
253
+		$(".Root").click(function() {
254
+			//	 		$("#tbr tr td .QuesTitle").each(function(){
255
+			//	 			var val=$(this).text();
256
+			//	 			var index=$(this).attr("indexs");
257
+			//	 			arr.push(index+'_'+val);
258
+			//	 			
259
+			//	 		})
260
+			//	 		console.log(arr)
261
+			$("#tbr tr td   input[name='ltype']").each(function() {
262
+				var val = $(this).val();
263
+				var index = $(this).attr("index_")
264
+				arr.push(index + '_' + val);
265
+
266
+			})
267
+
268
+		})
269
+	</script>
226 270
 
227 271
 </html>

+ 17 - 21
CallCenterWeb.UI/js/Questions/QuestionSetting.js

@@ -188,7 +188,7 @@ $(".leftAdd").click(function() {
188 188
 ////////////////////////////////////////////////////////////////右边表格
189 189
 //详情展示
190 190
 function XQ(Left_Cids) {
191
-	$(".tbody").empty();
191
+	$(".Qus_box").empty();
192 192
 	$.ajax({
193 193
 		type: "get",
194 194
 		url: huayi.config.callcenter_url + "/Questionnaire/GetPagerInfoQ",
@@ -207,42 +207,38 @@ function XQ(Left_Cids) {
207 207
 				var html = '';
208 208
 				for(var i = 0; i < Questions.length; i++) {
209 209
 					var questype = Questions[i].questype;
210
-
211
-					html += '<tr class="Back">';
212
-					html += '<td colspan="7">';
210
+					 var Quesid =Questions[i].quesid;
211
+					 console.log(Questions[i]);
212
+					html += '<li >';
213
+					html += '<div class="Back">';
213 214
 					html += '<h3 class="size-14 QuesTitle"  indexs="'+Questions[i].quesid+'">' + Questions[i].questitle + ' </h3>';
214
-					html += '</td>';
215
-					html += '</tr>';
215
+					html += '</div>';
216 216
 					//判断类型
217 217
 					if(questype == 2) { //问答题
218 218
 						//选项
219 219
 						if(Questions[i].quesitems.length > 0) {
220
-							html += '<tr >';
221
-							html += '<td colspan="2">';
220
+	
222 221
 							html += '<div>';
223 222
 							var quesitems = Questions[i].quesitems;
224 223
 							for(var j = 0; j < quesitems.length; j++) {
225 224
 								html += '<label style="font-weight: normal;">'	
226 225
 								html +=''+(j+1)+'.';
227
-								html += '<input type="radio" index_="' + quesitems[j].itemid + '" value="'+ quesitems[j].itemname + '" name="ltype"  style="margin-left:5px;"> ' + quesitems[j].itemname + '</label>'
226
+								html += '<input type="radio" index_="' + quesitems[j].itemid + '" value="'+ quesitems[j].itemname + '" name="ltype'+Quesid+'"  style="margin-left:5px;"> ' + quesitems[j].itemname + '</label>'
228 227
 							}
229 228
 							html += '</div>'
230
-							html += '</td>'
231
-							html += '</tr >';
229
+							html += '</li>'
232 230
 						}
233
-					} else if(questype == 1) {				
234
-							html += '<tr >';
235
-							html += '<td colspan="2">';
231
+					} 
232
+					else if(questype == 1) {
233
+
236 234
 							html += '<div>';
237 235
 							html += '<textarea index="' + Questions[i].quesid + '"name="" rows="" cols="" style="width: 100%;"></textarea>'
238 236
 							html += '</div>'
239
-							html += '</td>'
240
-							html += '</tr >';
237
+
241 238
 						
242 239
 					}else{
243 240
 						if(Questions[i].quesitems.length > 0) {
244
-							html += '<tr >';
245
-							html += '<td colspan="2">';
241
+
246 242
 							html += '<div>';
247 243
 							var quesitems = Questions[i].quesitems;
248 244
 							for(var j = 0; j < quesitems.length; j++) {
@@ -251,13 +247,13 @@ function XQ(Left_Cids) {
251 247
 								html += '<input type="checkbox" value="'+ quesitems[j].itemname +'" name="checks" > ' + quesitems[j].itemname + '</label>'
252 248
 							}
253 249
 							html += '</div>'
254
-							html += '</td>'
255
-							html += '</tr >';
250
+
251
+							html += '</li >';
256 252
 						}
257 253
 					}
258 254
 
259 255
 				}
260
-				$(html).appendTo(".tbody");
256
+				$(html).appendTo(".Qus_box");
261 257
 			}
262 258
 		}
263 259
 	});