

<div class="detailCon">
	<div class="lineDon">
		<ul class="line lineL">
			<li class="line lineA2">
				<label class="des desECEE">{%label.basicPara%}</label>
			</li>
			<li class="line lineA1" id="rzSwitchCon">
				<label id="rzSwitchDes" class="des desC1">{%label.ratioZoom%}</label>
				<div id="rzSwitch" class="switchCon">
					<i class="switchBg"></i>
					<i class="switchBall"></i>
				</div>
				<label class="des desH">ON</label>
			</li>
			<!--li class="line lineA1">
				<label id="pvfSwitchDes" class="des desC1">{%label.presetVideoFreeze%}</label>
				<div id="pvfSwitch" class="switchCon">
					<i class="switchBg"></i>
					<i class="switchBall"></i>
				</div>
				<label class="des desH">ON</label>
			</li-->
			<!-- 预置点速度等级 -->
			<li class="line lineA1" id="ptzpresetSpeedLvCon">
				<label class="des desC1">{%label.presetSpeedLv%}</label>
				<span class="selCon IEPZD">
					<span id="presetSpeedLvSel" class="select">
						<span class="value hsValueA"></span>
						<i class="arrow"></i>
					</span>
				</span>
			</li>
			<!-- 手控速度模式 -->
			<li class="line lineA1" id="ptzmanualSpeedModeCon">
				<label class="des desC1">{%label.manualSpeedMode%}</label>
				<span class="selCon IEPZD">
					<span id="manualSpeedModeSel" class="select">
						<span class="value hsValueA"></span>
						<i class="arrow"></i>
					</span>
				</span>
			</li>
			<!-- 手控速度等级 -->
			<li class="line lineA1" id="ptzmanualSpeedLvCon">
				<label class="des desC1">{%label.manualSpeedLv%}</label>
				<span class="selCon IEPZD">
					<span id="manualSpeedLvSel" class="select">
						<span class="value hsValueA"></span>
						<i class="arrow"></i>
					</span>
				</span>
			</li>
			<!-- 扫描速度等级 -->
			<li class="line lineA1" id="ptzscanCon">
				<label class="des desC1">{%label.scanSpeedLv%}</label>
				<span class="selCon IEPZD">
					<span id="scanSpeedLvSel" class="select">
						<span class="value hsValueA"></span>
						<i class="arrow"></i>
					</span>
				</span>
			</li>
			<!-- 最大仰角 -->
			<li class="line lineA1" id="ptzElevationCon">
				<label class="des desC1">{%label.maxElevation%}</label>
				<span class="selCon IEPZD">
					<span id="maxElevationSel" class="select">
						<span class="value hsValueA"></span>
						<i class="arrow"></i>
					</span>
				</span>
			</li>
			<!-- 变倍速度 -->
			<li class="line lineA1">
				<label class="des desC1">{%label.zoomSpeed%}</label>
				<span class="selCon IEPZD">
					<span id="zoomSpeedSel" class="select">
						<span class="value hsValueA"></span>
						<i class="arrow"></i>
					</span>
				</span>
			</li>
		</ul>
	</div>
	<div class="lineDon" id="ptzosdCon">
		<ul class="line lineL">
			<li class="line lineA2">
				<label class="des desECEE">{%label.PTZ_OSD%}</label>
			</li>
			<li class="line lineCon"></li>
			<!-- 镜头倍数显示 -->
			<li class="line lineA1" id="zoomDisplay">
				<label class="des desC1">{%label.cameraMultiple%}</label>
				<span class="selCon IEPZD">
					<span id="cameraMulSel" class="select">
						<span class="value hsValueA"></span>
						<i class="arrow"></i>
					</span>
				</span>
			</li>
			<!-- 方位角显示 -->
			<li class="line lineA1" id="azimuthDisplay">
				<label class="des desC1">{%label.azimuth%}</label>
				<span class="selCon IEPZD">
					<span id="azimuthSel" class="select">
						<span class="value hsValueA"></span>
						<i class="arrow"></i>
					</span>
				</span>
			</li>
			<!-- 预置点标题显示 -->
			<li class="line lineA1" id="presetDisplay">
				<label class="des desC1">{%label.presetTitle%}</label>
				<span class="selCon IEPZD">
					<span id="presetTitleSel" class="select">
						<span class="value hsValueA"></span>
						<i class="arrow"></i>
					</span>
				</span>
			</li>
		</ul>
	</div>
	<div class="lineDon">
		<ul class="line lineL">
			<li class="line lineA2">
				<label class="des desECEE">{%label.powerDownMem%}</label>
			</li>
			<li class="line lineCon"></li>
			<!-- 掉电记忆模式 -->
			<li class="line lineA1">
				<label class="des desC1">{%label.powerDownMemMode%}</label>
				<span class="selCon IEPZD">
					<span id="powerDownMemModeSel" class="select">
						<span class="value hsValueA"></span>
						<i class="arrow"></i>
					</span>
				</span>
			</li>
		</ul>
	</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(b){var a="";closeNoteAll();switch(b){case ENONE:return!0;case PTZ_ERR_UNKNOWN:a=errStr.ptzUnknown;break;case PTZ_ERR_ARGUMENT_INVALID:a=errStr.ptzArgumentInvalid;break;case PTZ_ERR_REQUEST_CONFLICT:a=errStr.ptzRequestConflict;break;case PTZ_ERR_CONFIGURATION_CONFILICT:a=errStr.ptzConfigConflict;break;case PTZ_ERR_CONFIGURATION_FIXED:a=errStr.ptzConfigFixed;break;case PTZ_ERR_SPEED_OUT_OF_BOUNDS:a=errStr.ptzSpeedErr;break;case PTZ_ERR_VELOCITY_OUT_OF_BOUNDS:a=errStr.ptzVelocityErr;
break;default:a=errStr.unknown+b}closeToast();showAlert(a);return!1}function ca(){var b,a,c,d,e={};e[f]={};e[k]={};b=e[f][uciPTZ.secName.basicPara]={};a=e[f][uciPTZ.secName.powerOffSave]={};c=e[f][uciPTZ.secName.manualControl]={};d=e[k][uciPreset.secName.preset]={};b.proportional_pan_enabled=h;d.speed=(0.125*I.value).toString();b.elevation_min=maxElevationSel.value;b.elevation_max="90";b.speed_zoom_default=(J.value/3).toString();c.speed_mode=K.value;c.speed_level=L.value;q&&(b=e[f][uciPTZ.secName.scan]=
{},b.speed=(M.value/C).toString());r&&(e[g]={},l&&(b=e[g][uciOsd.secName.zoom]={},b.display=N.value),m&&(b=e[g][uciOsd.secName.azimuth]={},b.display=O.value),n&&(b=e[g][uciOsd.secName.preset]={},b.display=P.value));s.value==Q?a.enabled=s.value:(a.enabled=t,a.save_time=s.value);showToast();$.modify(e,function(a){!0==H(a[ERR_CODE])&&showToast("success");showDetailCon()})}function da(b){var a,c,d,e;if(!0==H(b[ERR_CODE])){a=b[f][uciPTZ.secName.basicPara];c=b[f][uciPTZ.secName.powerOffSave];d=b[f][uciPTZ.secName.manualControl];
e=b[k][uciPreset.secName.preset];h=a.proportional_pan_enabled;R.setState(h==t?1:0);u=Math.round(8*parseFloat(e.speed));v=Math.round(3*parseFloat(a.speed_zoom_default));w=a.elevation_min;x=d.speed_mode;y=d.speed_level;z=c.enabled==t?c.save_time:c.enabled;if(D||E)I.resetSel(u),K.resetSel(x),L.resetSel(y);J.resetSel(v);s.resetSel(z);S&&maxElevationSel.resetSel(w);q&&(a=b[f][uciPTZ.secName.scan],A=Math.round(parseFloat(a.speed)*C),M.resetSel(A));r&&(l&&(a=b[g][uciOsd.secName.zoom],N.resetSel(a.display)),
m&&(a=b[g][uciOsd.secName.azimuth],O.resetSel(a.display)),n&&(b=b[g][uciOsd.secName.preset],P.resetSel(b.display)));showDetailCon()}}function ea(b){h=1==b?t:Q}var I=id("presetSpeedLvSel"),M=id("scanSpeedLvSel"),K=id("manualSpeedModeSel"),L=id("manualSpeedLvSel"),J=id("zoomSpeedSel"),N=id("cameraMulSel"),O=id("azimuthSel"),P=id("presetTitleSel"),s=id("powerDownMemModeSel"),fa=id("save"),l=1==parseInt($.osdCapability.zoom_support)?!0:!1,m=1==parseInt($.osdCapability.azimuth_support)?!0:!1,n=1==parseInt($.osdCapability.preset_support)?
!0:!1,r=l||m||n,q=1==parseInt($.ptzCapability.scan_supported)?!0:!1,C=40,D=parseInt($.ptzCapability.position_pan_range[1])?1:0,E=parseInt($.ptzCapability.position_tilt_range[1])?1:0,ga=$.ptzCapability.position_zoom_range&&parseInt($.ptzCapability.position_zoom_range[1])?1:0,R=null,h=0,ha=(D||E)&&ga,u,F=[1,2,3,4,5,6,7,8],T=[],x,y,A,B=[],U=[],S=0<$.ptzCapability.elevation_angle_max?!0:!1,w,ia=0<$.ptzCapability.elevation_angle_max?$.ptzCapability.elevation_angle_max:5,V=[],v,G=["1","2","3"],W=[],X,Y,
Z,z,f=uciPTZ.fileName,d=uciPTZ.optValue,p=d.saveTime,k=uciPreset.fileName,g=uciOsd.fileName,c=uciOsd.optValue.displayVal,t=uciPTZ.optValue.on,Q=uciPTZ.optValue.off,ja=d.compatible,ka=d.pedestrian,la=d.motorVhicle,ma=d.nonMotorVehicle,aa=d.selfAdaptive,na=d.high,ba=d.normal,oa=d.low;(function(){var b={};b[f]={};b[f][NAME]=[uciPTZ.secName.basicPara,uciPTZ.secName.powerOffSave,uciPTZ.secName.manualControl];b[k]={};b[k][NAME]=uciPreset.secName.preset;q&&b[f][NAME].push(uciPTZ.secName.scan);r&&(b[g]={},
b[g][NAME]=[],l&&b[g][NAME].push(uciOsd.secName.zoom),m&&b[g][NAME].push(uciOsd.secName.azimuth),n&&b[g][NAME].push(uciOsd.secName.preset));fa.onclick=ca;u=4;A=28;x=aa;y=ba;w="0";v="2";X=c.paraOpen;Z=Y=c.para2s;z=p.para30s;R=new Switch("rzSwitch",0,ea);for(var a=0;a<C;a++)B[a]=a+1;if(D||E){for(a=0;a<F.length;a++)tmp={},tmp.str=F[a],tmp.value=F[a],T.push(tmp);selectInit("presetSpeedLvSel",T,u,null,void 0,{type:"down"});selectInit("manualSpeedModeSel",[{str:label.compatible,value:ja},{str:label.pedestrian,
value:ka},{str:label.nonMotorVehicle,value:ma},{str:label.motorVhicle,value:la},{str:label.selfAdaptive,value:aa}],x,null,void 0,{type:"down"});selectInit("manualSpeedLvSel",[{str:label.speedLow,value:oa},{str:label.speedNormal,value:ba},{str:label.speedHigh,value:na}],y,null,void 0,{type:"down"})}else id("ptzpresetSpeedLvCon").style.display="none",id("ptzmanualSpeedModeCon").style.display="none",id("ptzmanualSpeedLvCon").style.display="none";if(q){for(a=0;a<B.length;a++)tmp={},tmp.str=B[a],tmp.value=
B[a],U.push(tmp);selectInit("scanSpeedLvSel",U,A,null,void 0,{listMaxHeight:260})}else id("ptzscanCon").style.display="none";if(S){for(var h,a=ia;0<=a;a--)tmp={},h=-a,tmp.str="("+h+"~90)度",tmp.value=h.toString(),V.push(tmp);selectInit("maxElevationSel",V,w,null,void 0,{listMaxHeight:260})}else id("ptzElevationCon").style.display="none";for(a=0;a<G.length;a++)tmp={},tmp.str=G[a],tmp.value=G[a],W.push(tmp);selectInit("zoomSpeedSel",W,v,null,void 0,{type:"down"});r?(l?selectInit("cameraMulSel",[{str:"2s",
value:c.para2s},{str:"5s",value:c.para5s},{str:"10s",value:c.para10s},{str:"常开",value:c.paraOpen},{str:"常关",value:c.paraClose}],X,null,void 0,{type:"down"}):id("zoomDisplay").style.display="none",m?selectInit("azimuthSel",[{str:"2s",value:c.para2s},{str:"5s",value:c.para5s},{str:"10s",value:c.para10s},{str:"常开",value:c.paraOpen},{str:"常关",value:c.paraClose}],Y,null,void 0,{type:"down"}):id("azimuthDisplay").style.display="none",n?selectInit("presetTitleSel",[{str:"2s",value:c.para2s},{str:"5s",value:c.para5s},
{str:"10s",value:c.para10s},{str:"常开",value:c.paraOpen},{str:"常关",value:c.paraClose}],Z,null,void 0,{type:"down"}):id("presetDisplay").style.display="none"):id("ptzosdCon").style.display="none";ha||(id("rzSwitchCon").style.display="none");selectInit("powerDownMemModeSel",[{str:"禁用",value:d.off},{str:"30s",value:p.para30s},{str:"60s",value:p.para60s},{str:"300s",value:p.para300s},{str:"600s",value:p.para600s}],z,null,void 0,{type:"up"});$.query(b,da)})()}init();
</script><style type="text/css">label.desECEE{font-size:16px;color:#7a8599;line-height:40px;vertical-align:middle}ul.line label.desC1{font-size:13px;color:#666;line-height:40px;width:120px}ul.lineCon{background:url(../../web-static/images/line.png) repeat-x 0 0;clear:both;padding-top:12px;font-size:0}ul.line li.lineA1{height:40px;margin-bottom:4px;width:328px}ul.line li.lineA2{height:40px;margin-bottom:20px;width:720px;border-bottom:1px solid #ced7e0}div.lineDon{clear:both;font-size:0}div.detailCon{width:722px}}</style>