summaryrefslogtreecommitdiff
path: root/WebRoot/page/detection/addDetecSetInfo.jsp
blob: 9d1b77da64a39c8138bcb52339dab7e82c90dbed (plain)
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>i18n_adsi.message.title_n81i</title>
		<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
			type="text/css" />
		<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
			type="text/css" />
		<link href="<c:url value='/js//dtree/css/dtree.css'/>"
			rel="stylesheet" type="text/css" />
		<script language="javascript" type="text/javascript"
			src="<c:url value='/js/jquery1.11.3.js'/>"></script>
		<script language="javascript" type="text/javascript"
			src="<c:url value='/js/onmouse.js'/>"></script>
		<script language="javascript" type="text/javascript"
			src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
		<script language="javascript" type="text/javascript"
			src="<c:url value='/js/jquery.tools.js'/>"></script>
		<script type="text/javascript"
            src="<c:url value='/js/WebCalendar.js' />"></script>
        <script type="text/javascript"
			src="<c:url value='/js/jquery.suggest.js' />"></script>
		<script language="javascript" type="text/javascript" 
			src="<c:url value="/js/fileInput.js"/>"></script>
	</head>
	<script language="javascript" type="text/javascript">	
   
	
	function add(){
		if(checkSpecial($("#processIdenName").val())){
			$("#processIdenName").next().html("i18n_adsi.message.inputInfo_n81i");
			return;
		}
		
	    var type = $("#checkTypeId").find("option:selected").val();
		var startType = $("input[id='isControlStart']:checked").val();
		var userViewLevel = $("input[type=radio][name='detectionSetInfo.viewLevel']:checked").val();
		var emailFlag=${session.emailFlag==0 };
		var checkedSize = $("#userEmail input[name=userEmailIds]:checked").size();
		
		//节点组可以为空,为空表示选择所有的节点组,但是如果选择了节点组,而节点组内无有效的节点,需要提示
		var nodeGroupsId = jQuery("#groupId").val();//选中节点组
		if(nodeGroupsId!="") {
			//当ip为空时,验证所选节点组内是否包含有效节点
			var nodeIds = jQuery("#nodeIp").val();//节点ids:nodeIds为选中的节点的id(用逗号连接的)
			if(nodeIds=="") {
				var validIpFlag = true;
				jQuery.ajaxSetup({async:false});
				jQuery.post("<%=path%>/nodeGroupManage/nodeGroupManage!executeAction.do?action=getNodesByNodeGroupId",{"groupId":nodeGroupsId},
				            function(datas){
				            	if(datas.length==0){//所选节点组内无有效的节点
				            		$("#jdz").html("i18n_adsi.message.noValidNodes_n81i");
				            		validIpFlag = false;
				            		return false;
				            	}
							},
							"json");
				if(!validIpFlag) {return false;}
			}
		
		}
		
		
		if(userViewLevel==2){//组查看
			if($("#usergroupid").val()==""){
				$("#usergroupid").next().html("i18n_adsi.message.usergroupid_n81i");
				return;
			}
		}
		
		//去空格
		$("#processIden").val($.trim($("#processIden").val()));
		
		if(false == (
				$id("processIdenName","","i18n_adsi.message.processIdenName_n81i") && $id("checkTypeId","xz","i18n_adsi.message.checkTypeId_n81i")
				&& $id("processIden","","i18n_adsi.message.processIden_n81i") && containSpecial1("processIden", "i18n_adsi.message.processIden_n81i") 
				&& $id("checkGap","sz","i18n_adsi.message.checkGapTitle_n81i")  
	    		&& $id("checkOutTime","sz","i18n_adsi.message.checkOutTime_n81i") && $id("checkMaxTimes","sz","i18n_adsi.message.checkMaxTimes_n81i")
    		)) {
			return;
		}
		if(Number(type)==8){
			if(Number(type) > 7 && startType == 0){ // 手动启动
				if(false ==(
						$id("processFile","","i18n_adsi.message.processFile_n81i")
						|| $id("processSearchCode","","i18n_adsi.message.processSearchCodeTitle_n81i")
					)){
					alert("i18n_pidFile.keyword.allblank_n81i");
					return;
				}
			}
			if(Number(type) > 7 && startType == 1){ // 单次启动
				if(false ==(
						$id("processFile","","i18n_adsi.message.processFile_n81i")
						|| $id("processSearchCode","","i18n_adsi.message.processSearchCodeTitle_n81i")
					)){
					alert("i18n_pidFile.keyword.allblank_n81i");
					return;
				}else{
					if(! $id("processPath","","i18n_adsi.message.processPathTitle_n81i")){
						return;
					}
				}
			}
			if(Number(type) > 7 && startType == 2){ // 周期启动
				if($("#myFile").val()==''){
					$("#myFile").next().html("i18n_adsi.message.myFile_n81i");
					return;
				}
			}
		}
		
		
		/* TODO */
   		if($("#checkGap").val() >=5){
   			if(userViewLevel!=4 && userViewLevel!=1 && emailFlag){//不是自己和无限制
    			if(checkedSize>0){//有选中
	    			document.Mkform.action="<%=path%>/detection/detectionSet.do?action=doAdd";
					document.Mkform.submit();		
    			}else{//无选中
    				$("#lxr").html("i18n_adsi.message.leastOneUser_n81i<br>");
    				return;
    			}
    		}else{
    			document.Mkform.action="<%=path%>/detection/detectionSet.do?action=doAdd";
				document.Mkform.submit();	
    		}
   		}else{
   			$("#checkGap").next().html("i18n_adsi.message.checkGapInfo_n81i");
   			return;
   		}   
	}
	
	//验证非中文和特殊字符
	function containSpecial1(id,info)       
	{       
   		var s = document.getElementById(id).value;
   		var cs = /^\w+$/;  
   		resu = cs.test(s);     
   		if((cs.test(s))){
   			return true;
   		}else{
   			$("#pIdenFont").html("<div style='display:inline'><font color='red'>i18n_adsi.message.pIdenFont_n81i</font></div>");
   			return false;
   		}
	} 
	
	function goBack(){
		window.location="<%=path%>/detection/detectionSet.do?action=query";	
	}

	function sreachNode(ngId){
		$("#addNip").empty();
		$("#addNip").append("<option value=''>i18n_adsi.message.selectDefault_n81i</option>");
		if(ngId!=null && ngId!=""){
			jQuery.post("<%=path%>/detection/detectionSet.do?action=getAllNode",
			{"gid":ngId},function(datas){
				
				$.each(datas, function(k, da) {	
					$("#addNip").append("<option value="+da+">"+da+"</option>");
				});	       
			},"json");
		}
	}
	
	function onLoad(){   
		var checkType = document.Mkform.checkTypeId.value;
		var startType = $("input[id='isControlStart']:checked").val();
		var is = $('#checkTypeId').find("option:selected").attr('issn');
		
		//alert(checkType + "," + startType + "," + is);
		
		if(checkType <= 7){
			$(".controlstarts").css('display','none');			
			$(".asd").css('display','none');			
			$(".bsd").css('display','none');
			$(".dsd").css('display','none');
			$(".csd").css('display','none');			
			$(".esd").css('display','none');			
		}else if(checkType == 8){
			$(".controlstarts").removeAttr("style");
			$(".controlstart3").css('display','none');
			$(".asd").removeAttr("style");
			$(".csd").removeAttr("style");				
			$(".esd").css('display','none');
			if(startType==1){					
				$(".bsd").removeAttr("style");
				$(".dsd").removeAttr("style");
			} else if(startType==0){						
				$(".bsd").css('display','none');
				$(".dsd").css('display','none');
			}
		}else{ //大于8 不是默认的
			if(!is || is=="2"){//不是SNMP
				$(".controlstarts").removeAttr("style");
				$(".controlstart3").removeAttr("style");
				if(startType==0) {
					$(".asd").removeAttr("style");
					$(".csd").removeAttr("style");
					$(".bsd").css('display','none');
					$(".dsd").css('display','none');
					$(".esd").css('display','none');
				} else if(startType==1) {
					$(".asd").removeAttr("style");
					$(".bsd").removeAttr("style");
					$(".dsd").removeAttr("style");
					$(".csd").removeAttr("style");
					$(".esd").css('display','none');
				} else if(startType==2) {
					$(".bsd").removeAttr("style");
					$(".esd").removeAttr("style");
					$(".asd").css('display','none');
					$(".csd").css('display','none');
					$(".dsd").css('display','none');
				}
			} else { // SNMP
				$(".controlstarts").css('display','none');			
				$(".asd").css('display','none');			
				$(".bsd").css('display','none');
				$(".dsd").css('display','none');
				$(".csd").css('display','none');			
				$(".esd").css('display','none');
			}
		}
	}
	
	$(function(){
		$("#checkTypeId").change(function(){
			$("#jj").text("*");
			var startType = $("input[id='isControlStart']:checked").val();	
			var selId=$(this).val();
			var is = $(this).find("option:selected").attr('issn');
			$("#cpId").val(selId);
			
			if(selId <= 7){							
				$("input[id='isControlStart'][value=1]").attr('checked','checked');
				$("#isSnmpType").val("n");
			
			} else if(selId == 8){//默认的进程
				$("input[id='isControlStart'][value=0]").attr('checked','checked');
				$("#isSnmpType").val("n");

			} else{//大于8 不是默认的,判断是否为SNMP监控
				
				if(!is || is=="2"){//不是SNMP
					$("input[id='isControlStart'][value=2]").attr('checked','checked');
					$("#isSnmpType").val("n");
				
 				}else{ // SNMP
					$("input[id='isControlStart'][value=0]").attr('checked','checked');
					$("#isSnmpType").val("y");
				}
			}
			
			onLoad();
		})
		
		//jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3');
		//-- 查看权限事件绑定
	 	jQuery("input[type=radio][name='detectionSetInfo.viewLevel']").click(function(){
	 		if(jQuery(this).val() == 1){	//个人
	 			//隐藏用户组选项
	 			jQuery("#usergroupid").val("");
	 			jQuery("td[id=usergroup]").hide();
	 			jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3');
	 			//隐藏联系人选项 但进行默认选择
	 			$("#userEmail_Line").hide();
	 			$.post("<%=path%>/detection/detectionSet.do?action=queryUserInfo",{viewType:$(this).val()},function(datas){viewUserEmail(datas);},"json");
	 		}else if(jQuery(this).val() == 2){	//用户组显示且必选
	 			//显示 用户组选项
	 			jQuery("#usergroupid").val("");
	 			jQuery("td[id=usergroup]").show();
	 			jQuery("td[id=viewLevel0]").attr('colspan',1).addClass('td_3').removeClass('td_2');
	 			//显示联系人 清空联系人选项
	 			$("#userEmail_Line").show();
	 			$("#userEmail").text("");
	 			jQuery("#usergroupid").trigger('change');
	 		}else if(jQuery(this).val() ==3){	//系统
	 			//隐藏用户组选项
	 			jQuery("#usergroupid").val("");
	 			jQuery("td[id=usergroup]").hide();
	 			jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3');
	 			//显示联系人 清空联系人选项
		 		$("#userEmail_Line").show();
		 		$("#userEmail").text("");
	 			//请求获取用户Email信息 默认全选
	 			$.post("<%=path%>/detection/detectionSet.do?action=queryUserInfo",{viewType:$(this).val()},function(datas){viewUserEmail(datas);},"json");
	 		}else if(jQuery(this).val() ==4){
	 			//隐藏用户组选项
	 			jQuery("#usergroupid").val("");
	 			jQuery("td[id=usergroup]").hide();
	 			jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3');
	 			//隐藏联系人选项 并清空内容
	 			$("#userEmail_Line").hide();
	 			$("#userEmail").text("");
	 		}
	 	});
	 	$("#usergroupid").bind({change:function(){
	 		if($("#usergroupid").val() != ""){
		 		$.post("<%=path%>/detection/detectionSet.do?action=queryUserInfo",{viewType:$("input[type=radio][name='detectionSetInfo.viewLevel']:checked").val(),userGroupId:$("#usergroupid").val()},function(datas){viewUserEmail(datas);},"json");
	 		}else{
	 			$("#userEmail").text("");
	 		}
	 	}})
	 	function viewUserEmail(datas){
	 		$("#userEmail").text("");
	 		if(datas!=null){
			 	for(var i = 0;i<datas.length;i++){
			 		$("#userEmail").append("<span title='"+datas[i].email+"' ><input type='checkbox' name='userEmailIds' value='"+datas[i].yhid+"'  /> "+datas[i].yhmc+"</span>");
			 		if(i!=0&&i%10==0){$("#userEmail").append("<br />")}
			 	}
			 	$("#userEmail span").attr("width",'100px');
	 		}
	 		$("input[type='checkbox'][name='checkAll']").attr('checked',true);
	 		$("#userEmail input[type='checkbox']").attr('checked',true);
	 	}
	 	//指定联系人 绑定click事件
	 	$("input[type='checkbox'][ name='checkAll']").bind({
	 		click:function(){
	 			//if($(this).val()==1){//全选
	 				//$(this).next().attr('checked',false);
	 				$("#userEmail input[type='checkbox']").attr('checked',$(this).attr('checked'));
	 			//}else{//反选
	 			//}
	 		}
	 	});
	 	$("#userEmail span input[type='checkbox']").on(
	 	'click',function(){
	 		if($("#userEmail input[type='checkbox']").size()==$("#userEmail input[type='checkbox']:checked").size()){	//达成全选
	 			$("input[type='checkbox'][ name='checkAll']:first").attr('checked',true);
	 		}else{	//未达成全选
	 			$("input[type='checkbox'][ name='checkAll']:first").attr('checked',false);
	 		}
	 	});
	 	jQuery("input[type=radio][name='detectionSetInfo.viewLevel']:first").trigger('click');
	})
	$(document).ready(function(){
		$(".controlstart").change(function(){
			onLoad();
		})
	})
	
	//选择节点组---begin
	function selectNodeAndNodeGroup() {
		var type = $("#checkTypeId").find("option:selected").val();//所选监测类别
		if(type == null || type ==""){
			$("#jj").text("i18n_adsi.message.monitorCategory_n81i");
			return;
		}
		var groupId = jQuery("#groupId").val();//选中节点组
		var nodeId = jQuery("#nodeIp").val();//选中ip	
		var url = "<%=path%>/nodeGroupManage/nodeGroupManage!executeAction.do?action=toSelectNodeAndNodeGroup&groupId="+groupId+"&nodeId="+nodeId; //转向网页的地址;
		var name; 
		//改为layer-20180831-chenjs---
		parent.layer.open({
			type: 2,
			title: "i18n_tsnang.text.selectNodeGroup_n81i",
			area:['850px', '610px'],
			shade: 0.6,
			closeBtn: 1,
			maxmin:true,
			content: url
		});
		
		
		/* if(window.hasOpenWindow){
			window.newWindow.focus();
		}
		var openOption = 'width=850px,height=560px,left='+(window.screen.width-850)/2+',top='+(window.screen.height-30-650)/2;
		window.hasOpenWindow = true;
		window.newWindow = window.open(url,name,openOption);
		var loop = setInterval(function(){
			if(newWindow.closed) {
				clearInterval(loop);
				top.$("#ly").css("display", "none");
			}
		}, 500);
		
		top.$("#ly").css("display", "block");
		top.$("#ly").width(parent.document.body.clientWidth);
		top.$("#ly").height(parent.document.body.clientHeight); */
		
		/* document.all.ly.style.display="block";
		document.all.ly.style.width=document.body.clientWidth;
		document.all.ly.style.height=document.body.clientHeight; */
	}
	
	function reciveNodeAndNodeGroup(nodeGroupIds,nodeGroupNames,nodeIds,nodeIps){
			document.getElementById("groupIdShow").value = nodeGroupNames;//节点组名称s
			document.getElementById("groupId").value = nodeGroupIds;//节点组ids
			document.getElementById("nodeIpShow").value = nodeIps;//节点ips
			document.getElementById("nodeIp").value = nodeIds;//节点ids:nodeIds为选中的节点的id(用逗号连接的)
	}	
	//选择节点组---end
	
</script>
	<body onload=onLoad()>
		<div class="middle_list" >
			<div class="box_2" style="height: 22px">	
				<input type="button" class=btn3_mouseout
					onmouseover="this.className='btn3_mouseover'"
					onmouseout="this.className='btn3_mouseout'"
					onmousedown="this.className='btn3_mousedown'"
					onmouseup="this.className='btn3_mouseup'"
					onclick="goBack()" value="i18n_adsi.button.back_n81i"/>
			 </div>
			<input type="hidden" id="cpId"/>
			<form action="" name="Mkform" id="Mkform" method="post" enctype="multipart/form-data">
			<input type="hidden" name="ip" id="ip" value="${ip }" />
			<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
			<input type="hidden" name="pageNo" value="${pageNo }" />
			<input type="hidden" name="pageSize" value="${pageSize }" />
			<input type="hidden" name="fromWhere" value="${fromWhere }"/>
			<input type="hidden" id="fw" value="detecSetAdd"/>
			<input type="hidden" id="isSnmpType" value=""/>
			<div style="clear: both"></div>
			<table border="0" cellpadding="0" cellspacing="0" class="table">
				<tr>
					<td colspan="4" class="color_8">
						<strong>i18n_adsi.text.title_n81i</strong>
					</td>
				</tr>
				<tr>
					<td class="color_1" width="20%" align="right">
						i18n_adsi.message.processIdenName_n81i
					</td>
					<td class="color_3" width="20%" align="left">
						<input type="text" name="detectionSetInfo.processIdenName" id="processIdenName" value="" />
						<font color="red">*</font>
					</td>
					<td class="color_1" align="right">
						i18n_adsi.message.processIden_n81i
					</td>
					<td class="color_6" align="left">
						<input type="text" name="detectionSetInfo.processIden" id="processIden" value="${detectSetIden }"/>
						<font id="pIdenFont" color="red">*</font>
					</td>
				</tr>
				<tr>
					<td class="color_1" align="right">
						i18n_adsi.message.checkTypeId_n81i
					</td>
					<td class="color_6" align="left" colspan="3">
						<select name="detectionSetInfo.checkTypeInfo.id" id="checkTypeId">
							<option value="">
								i18n_adsi.message.selectDefault_n81i
							</option>
							<c:if test="${fn:length(allCheckTypeInfo) > 0}">
								<c:set var="isSchedule0" value="0"/>
								<c:forEach items="${allCheckTypeInfo}" var="checkType">
									<c:if test="${checkType.isSchedule != isSchedule0 }">
										<option style="height: 2px;" disabled="disabled">--------------------</option>
										<c:set var="isSchedule0" value="${checkType.isSchedule}"/>
									</c:if>
									<option value="${checkType.id}" issn="${checkType.isSnmp }">
										${checkType.checkTypeName1}
									</option>
								</c:forEach>
							</c:if>
						</select>
						<font id="jj" color="red">*</font>
					</td>
				</tr>
				<tr>
					<td class="color_1" width="20%" align="right">
						i18n_adsi.text.nodeGroup_n81i
					</td>
					<td class="color_6" width="30%" align="left">
						<!-- <select name="detectionSetInfo.nodegroup.groupId" id="groupId" onchange="sreachNode(this.value);">
							<option value="">
								i18n_adsi.message.selectDefault_n81i
							</option>
							<c:if test="${fn:length(nodeGroupList) > 0}">
								<c:forEach items="${nodeGroupList}" var="nodeGroup">
									<option value="${nodeGroup.groupId}">${nodeGroup.groupName}</option>
									</c:forEach>
								</c:if>
						</select>  -->
						<input type="text" name="groupIdShow" id="groupIdShow" readonly="readonly" value=""/>&nbsp;
						<input type="hidden" name="detectionSetInfo.nodeGroupsId" id="groupId" value=""/>&nbsp;
						<input type="button" value="i18n_adsi.button.select_n81i" onclick="selectNodeAndNodeGroup()"
						    class=btn3_mouseout
							onmouseover="this.className='btn3_mouseover'"
							onmouseout="this.className='btn3_mouseout'"
							onmousedown="this.className='btn3_mousedown'"
							onmouseup="this.className='btn3_mouseup'"
						/>
						<font color="red" id="jdz"></font>
					</td>
					<td class="color_1" width="20%" align="right">
						i18n_adsi.text.nodeIp_n81i
					</td>
					<td class="color_6" width="30%" align="left">
						<input type="text" name="detectionSetInfo.nodeIpsName" id="nodeIpShow" readonly="readonly" value=""/>&nbsp;
						<input type="hidden" name="detectionSetInfo.nodeIpsId" id="nodeIp" value=""/>&nbsp;
						<!--  <select name="detectionSetInfo.nodeIp" id="addNip">
						</select> -->
					</td>	
					
				</tr>
				<tr>
				<td class="td_1">i18n_adsi.text.viewLevel_n81i</td>
					<td class="td_3" id="viewLevel0">
						<c:if test="${!ADMFlag }">
							<input type="radio"	name="detectionSetInfo.viewLevel" id="" value="1" checked="checked" />i18n_adsi.message.publisher_n81i&nbsp;
							<input type="radio"	name="detectionSetInfo.viewLevel" id="viewLevel2" value="2" />i18n_adsi.message.publisherGroup_n81i&nbsp;
							<input type="radio" name="detectionSetInfo.viewLevel" id="" value="3" />i18n_adsi.message.allInSys_n81i&nbsp;
						</c:if>
						<c:if test="${ADMFlag }">
							<input type="radio" name="detectionSetInfo.viewLevel" id="" value="4" checked="checked"/>i18n_adsi.message.unlimited_n81i&nbsp;
						</c:if>
					</td>
					<td class="td_1"  id="usergroup">i18n_adsi.text.userGroup_n81i</td>
					<td class="td_2"  id="usergroup">
						<select name="detectionSetInfo.createUserGroupId" id="usergroupid">
							<option selected="selected" value="">
								i18n_adsi.message.usergroupid_n81i
							</option>
							<c:forEach items="${setxtjs}"  var="stjs">
									<option   value="${stjs.jsbh}">
											${stjs.jsmc}
									</option>
							</c:forEach>
						</select>
						<font color="red" id="group_red">* </font>
					</td>
				</tr>
				<tr>
					<td class="color_1" align="right">
						i18n_adsi.text.planCheckTime_n81i
					</td>
					<td class="color_3" align="left">
						<input name="detectionSetInfo.planCheckTime"
							id="planCheckTime" type="text" readonly
							onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss',${session.i18n_lang == 'zh_CN'?0:1})"/>
							
					</td>
					<td class="color_1" align="right">
						i18n_adsi.text.checkGap_n81i
					</td>
					<td class="color_3" align="left">
						<input type="text" name="detectionSetInfo.checkGap"
								id="checkGap" value="15"/>
						<font color="red">*i18n_adsi.message.checkGapInfo_n81i</font>
					</td>
				</tr>
				<tr>
					<!-- 
					<td class="color_1" align="right">
						上传监测数据时间间隔(分钟)
					</td>
					<td class="color_3" align="left">
						<input type="text" name="detectionSetInfo.uploadGap"
								id="uploadGap" value="5"/>
						<font color="red">*间隔必须大于或等于5分钟</font>
					</td>
					 -->
					<td class="color_1" align="right">
						i18n_adsi.text.checkOutTime_n81i
					</td>
					<td class="color_3" align="left">
						<input type="text" name="detectionSetInfo.checkOutTime" id="checkOutTime" value="5"/>
						<font color="red"><span class="STYLE1">*</span> </font>
					</td>
					<td class="color_1" align="right">
						i18n_adsi.text.checkMaxTimes_n81i
					</td>
					<td class="color_3" align="left">
						<input type="text" name="detectionSetInfo.checkMaxTimes" id="checkMaxTimes" value="1"/>
						<font color="red"><span class="STYLE1">*</span> </font>		
					</td>
				</tr>
				<tr>
					<td class="color_1" align="right">
						i18n_adsi.text.state_n81i
					</td>
					<td class="color_3" align="left" colspan="3">
						i18n_adsi.text.runAble_n81i
					</td>
				</tr>
				<tr class="controlstarts">
					<td class="color_1" align="right">
						i18n_adsi.text.controlstart_n81i
					</td>
					<%-- TODO --%>
					<td class="color_6" colspan="3" align="left">
						<input type="radio" name="detectionSetInfo.isControlStart"
								id="isControlStart" value="0" checked="checked" class="controlstart" />i18n_adsi.message.manually_n81i
						<input type="radio" name="detectionSetInfo.isControlStart"
								id="isControlStart" value="1" class="controlstart" />i18n_adsi.message.singleStart_n81i
						<span class="controlstart3">
						<input type="radio" name="detectionSetInfo.isControlStart"
								id="isControlStart" value="2" class="controlstart" />i18n_adsi.message.cycleStart_n81i</span>
					</td>
				</tr>
				<tr class="bsd">
					<td class="color_1" align="right">
						i18n_adsi.text.controlStartTime_n81i
					</td>
					<td class="color_3" colspan="3" align="left">
						<input name="detectionSetInfo.controlStartTime"
								id="controlStartTime" type="text" readonly
								onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss',${session.i18n_lang == 'zh_CN'?0:1})"/>
					</td>
				</tr>
				<tr class="asd">
					<td class="color_1" align="right">
						i18n_adsi.message.processFile_n81i
					</td>
					<td class="color_3" colspan="3" align="left">
						<input type="text" name="detectionSetInfo.processFile" id="processFile" value=""/>
						<font color="red">* i18n_pidFile.keyword.allblank_n81i</font>
						<!-- <input type="file" id="processFile" value="" name="deteProcessFile" class="filebtn1"/>						
						<input type="hidden" id="ppPath" name="detectionSetInfo.processFile"/> -->
					</td>
				</tr>
				<tr class="csd">
					<td class="color_1" align="right">
						i18n_adsi.message.processSearchCodeTitle_n81i
					</td>
					<td class="color_3" colspan="3" align="left">
						<input type="text" name="detectionSetInfo.processSearchCode" id="processSearchCode" value=""/>
						<font color="red">* i18n_adsi.message.processSearchCode_n81i</font>
					</td>
				</tr>
				<tr class="dsd">
					<td class="color_1" align="right">
						i18n_adsi.message.processPathTitle_n81i
					</td>
					<td class="color_3" colspan="3" align="left">
						<input type="text" name="detectionSetInfo.processPath" id="processPath" value=""/>
						<font color="red">* i18n_adsi.message.processPath_n81i</font>
					</td>
				</tr>
				<%-- TODO --%>
				<tr class="esd">
					<td class="color_1" align="right">
						i18n_adsi.text.myFile_n81i
					</td>
					<td class="color_3" colspan="3" align="left">
						<input type="button" value="i18n_adsi.text.myFile_n81i" title="i18n_adsi.text.myFile_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
						<input type="file" name="myFile" id="myFile" value="" onchange="javascript:setValue(this.value)"/>
						<font color="red">*</font>
					</td>
				</tr>	
				<c:if test="${session.emailFlag==0 }">		
					<tr id="userEmail_Line">
						<td class="color_1" align="right">
							i18n_adsi.text.user_n81i
						</td>
						<td class="color_3" colspan="3" align="left">
							<font color="red" id ="lxr"></font>
							<input type="checkbox" name="checkAll" value="1"  /> i18n_adsi.message.checkAll_n81i&nbsp;
							<!-- 
							<input type="button" name="checkOther" value="反选" /> 
							 -->
							<div id="userEmail" style="width: 100%;height: 50px; overflow-y: scroll; word-wrap: break-word;word-break:normal; ">
							</div>
						</td>
					</tr>
				</c:if>
				<tr>
					<td class="color_7" colspan="4" align="right">
						<input type="button" class=btn3_mouseout
								onmouseover="this.className='btn3_mouseover'"
								onmouseout="this.className='btn3_mouseout'"
								onmousedown="this.className='btn3_mousedown'"
								onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_adsi.button.submit_n81i"/>
						&nbsp;
						<input type="button" class=btn3_mouseout
								onmouseover="this.className='btn3_mouseover'"
								onmouseout="this.className='btn3_mouseout'"
								onmousedown="this.className='btn3_mousedown'"
								onmouseup="this.className='btn3_mouseup'"
								onclick="javascript:document.forms['Mkform'].reset()" value="i18n_adsi.button.reset_n81i"/>
					</td>
				</tr>
			</table>
		</form>
	</div>
	</body>
</html>