

<div class="detailCon">
	<div class="actionBarDiv" id="handleWayDiv">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.snapshotNormalHandle%}</label>
		</div>
		<div class="handleWay" id="normalHandleWay">
			<ul class="Line">
				<label class="des desA">{%label.snapshotNormalHandleDes%}</label>
				<li class="Line lineE" id="emailAlarmLine">
					<i name="showInfo" id="triggerEmail" class="chObj" value="0"></i>
					<label class="des desA">{%label.sendEmail%}</label>
				</li>
				<li class="Line lineE" id="recordLine">
					<i name="showInfo" id="triggerRecord" class="chObj" value="1"></i>
					<label class="des desA">{%label.triggerRecordF%}</label>
				</li>
				<li class="Line lineE" id="captureLine">
					<i name="showInfo" id="triggerCapture" class="chObj" value="2"></i>
					<label class="des desA">{%label.triggerCapture%}</label>
				</li>
				<li class="Line lineE" id="ftpAlarmLine">
					<i name="showInfo" id="triggerFTP" class="chObj" value="3"></i>
					<label class="des desA">{%label.sendFtp%}</label>
				</li>
				<li class="Line lineE" id="msgPushLine">
					<i name="showInfo" id="triggerMsgPush" class="chObj" value="4"></i>
					<label class="des desA">{%label.msgPush%}</label>
					<label class="des desM">{%label.snapshotMsgPushDes%}</label>
				</li>
				<li class="Line lineE" id="sdCardLine">
					<i name="showInfo" id="triggerSdCard" class="chObj" value="5"></i>
					<label class="des desA">{%label.saveToSdCard%}</label>
				</li>
			</ul>
		</div>
		<div id="alarmhandleWay">
			<div class="actionTitleDiv" style="margin-top:50px">
				<label class="actionTitle">{%label.snapshotAlarmHandle%}</label>
			</div>
			<div class="handleWay">
				<ul class="Line">
					<label class="des desA">{%label.snapshotAlarmHandleDes%}</label>
					<li class="Line lineE" id="alarmOutLine">
						<i name="showInfo" id="triggerAlarmOut" class="chObj" value="6"></i>
						<label class="des desA">{%label.snapshotAlarmOut%}</label>
					</li>
					<li class="Line lineE" id="lightAlarmLine">
						<i name="showInfo" id="triggerLightAlarm" class="chObj" value="7"></i>
						<label class="des desA">{%label.lightAlarm%}</label>
					</li>
					<li class="Line lineE" id="soundAlarmLine">
						<i name="showInfo" id="triggerSoundAlarm" class="chObj" value="8"></i>
						<label class="des desA">{%label.triggerSoundAlarm%}</label>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<!-- 功能按钮 -->
	<div class="funcBtnCon">
		<input id="save" type="button" value="{%btn.save%}" class="subBtn btnA"/>
	</div>
</div>
<script type="text/javascript">function init(){function h(a,c){var b="";switch(parseInt(a)){case ENONE:return!0;case IPCSMDENABLEERR:b=errStr.IPCParamInvalid;break;case EINVARG:b=errStr.IPCParamInvalid;break;case IPCSMDSENSITIVITYERR:b=errStr.sensitivityErr;break;case IPCSMDTHRESHOLDERR:b=errStr.thresholdDelayErr;break;case IPCUMGUESTNAUTH:b=errStr.invPermissionDenied;break;case IPCNOTIFYEMAILENERR:case IPCNOTIFYALARMENERR:case IPCNOTIFYRECORDENERR:case IPCNOTIFYFTPENERR:case IPCNOTIFMSGPUSHENERR:case IPCNOTIFCAPTUREENERR:case IPCNOTIFSOUNDALARMENERR:b=
errStr.IPCHandleInalid;break;case IPCSMDREGIONEILLEGAL:b=errStr.regionIllegal;break;case IPCSMDREGIONNUMERR:b=errStr.regionNumErr;break;case IPCARMINGSCHEDULEEOVERFLOW:b=errStr.armingScheduleOverflow;break;case IPCARMINGSCHEDULEMIX:b=errStr.armingScheduleMix;break;case IPCARMINGSCHEDULEILLEGAL:b=errStr.armingScheduleIllegal;break;default:b=errStr.invRequestFail}closeToast();showAlert(b,c);return!1}function m(){var a={};a[d]={};if(0<e)for(a[d][g]={},i=0;i<c.snapshotList.length;i++)1==c.snapshotList[i]&&
(a[d][g][f[i].uciName]="true"==f[i].domName.getAttribute("checked")?l:n);showToast();$.modify(a,function(a){!0==h(a[ERR_CODE])&&showToast("success")})}var a={};getLinkageCapability(a,uciLinkageCapability.pos.faceSnapshot);var c={snapshotList:[a.email_capability,a.recordCapability,a.capture_capability,a.ftp_capability,a.alarmoutCapability,a.msgPushCapability,a.soundAlarmCapability,a.lightAlarmCapability,a.sd_card_pic_capability],corridor_mode:0};1!=a.lightAlarmCapability&&1!=a.alarmoutCapability&&
1!=a.soundAlarmCapability&&(id("alarmhandleWay").style.display="none");var d=uciFaceSnapShot.fileName,g=uciFaceSnapShot.secName.notifyList,a=uciFaceSnapShot.optName.emailEnabled,p=uciFaceSnapShot.optName.recordEnabled,q=uciFaceSnapShot.optName.captureEnabled,r=uciFaceSnapShot.optName.ftpEnabled,s=uciFaceSnapShot.optName.AO1Enabled,t=uciFaceSnapShot.optName.msgPushEnabled,u=uciFaceSnapShot.optName.soundAlarmEnabled,v=uciFaceSnapShot.optName.lightAlarmEnabled,w=uciFaceSnapShot.optName.sdCardEnabled,
l=uciFaceSnapShot.optValue.enableOn,n=uciFaceSnapShot.optValue.enableOff,x=id("triggerEmail"),y=id("triggerRecord"),z=id("triggerCapture"),A=id("triggerFTP"),B=id("triggerAlarmOut"),C=id("triggerMsgPush"),D=id("triggerSoundAlarm"),E=id("triggerLightAlarm"),F=id("triggerSdCard");id("name");var e=0,f=[{uciName:a,domName:x,handleWayLine:"emailAlarmLine"},{uciName:p,domName:y,handleWayLine:"recordLine"},{uciName:q,domName:z,handleWayLine:"captureLine"},{uciName:r,domName:A,handleWayLine:"ftpAlarmLine"},
{uciName:s,domName:B,handleWayLine:"alarmOutLine"},{uciName:t,domName:C,handleWayLine:"msgPushLine"},{uciName:u,domName:D,handleWayLine:"soundAlarmLine"},{uciName:v,domName:E,handleWayLine:"lightAlarmLine"},{uciName:w,domName:F,handleWayLine:"sdCardLine"}];(function(){var a={},k=0,b=0;if(void 0!=c.snapshotList)for(b=0;b<c.snapshotList.length;b++)1==c.snapshotList[b]&&e++;a[d]={};0<e&&(a[d][NAME]=[g]);$.query(a,function(a){if(!0==h(a[ERR_CODE])){if(0<e)for(b=0;b<c.snapshotList.length;b++)1==c.snapshotList[b]?
(k=a[d][g][f[b].uciName]==l,changeCheckInput(f[b].domName,k)):id(f[b].handleWayLine).style.display="none";0==e&&(id("handleWayDiv").style.display="none");showDetailCon()}});id("save").onclick=m})();initCheckInput("showInfo",null)}init();
</script><style type="text/css">div.configDiv li.threshold{display:inline-block;font-size:0;vertical-align:middle;height:30px;margin-left:60px;padding:5px 0}div.peCol span.select{font-size:0!important}span.peSelect{width:124px!important;_width:116px!important;font-size:14px!important}div.handleWay ul.Line label.des{display:inline;vertical-align:middle;margin-left:8px}ul.Line label.desM{font-size:12px;color:#666;line-height:12px}#orgDC{width:662px}.displayNone{display:none!important}i.peTypeRd{width:25px!important;height:25px!important}i.timeSeled{background:url(../web-static/images/timeSeled.png) center no-repeat!important}i.timeUnSeled{background:url(../web-static/images/timeUnSeled.png) center no-repeat!important}i.mdtUnSeled{background:url(../web-static/images/mdtUnSeled.png) center no-repeat!important}i.mdtSeled{background:url(../web-static/images/mdtSeled.png) center no-repeat!important}#timingLabel{margin-right:35px;display:inline-block;*display:inline;*zoom:1}#mdtLabel{margin-right:347px;*margin-right:340px;display:inline-block;*display:inline;*zoom:1}label.typeSeled{color:#fff!important}div.peCon{left:136px;top:560px;_left:-30px;_top:-10px}div.peCon div.peConDetail div.peCol4{display:none}ul.line li.lineR{display:inline-block;*display:inline;*zoom:1;height:100%;font-size:0;vertical-align:middle;float:right}</style>