

<div class="detailCon">
	<ul class="line">
		<li class="line lineG">
			<label class="des desD">{%label.workMode%}</label>
			<i name="controlTypeCheck" id="platformControlType" value="platform" checked="true"></i>
			<label id="platformControl" for="forbid" class="des desH">{%label.platformControl%}</label>
			<label class="des filterCheckCon">{%label.platformControlTips%}</label>
		</li>
		<li class="line lineG lineLeft">
			<i name="controlTypeCheck" id="cameraControlType" value="camera" checked="false"></i>
			<label id="cameraControl" for="forbid" class="des desH">{%label.cameraControl%}</label>
			<label class="des filterCheckCon">{%label.cameraControlTips%}</label>
		</li>
	</ul>
	<ul id="listTypeSel" class="line">
		<li class="line lineG">
			<label class="des desD">{%label.plateListType%}</label>
			<i name="listTypeCheck" id="plateNoneType" value="none" checked="false"></i>
			<label id="noneList" for="forbid" class="des desH">{%label.plateNone%}</label>
			<label class="des filterCheckCon">{%label.plateNoneTips%}</label>
		</li>
		<li class="line lineG lineLeft">
			<i name="listTypeCheck" id="plateBlackListType" value="black" checked="true"></i>
			<label id="plateBlackList" for="forbid" class="des desH">{%label.plateBlackList%}</label>
			<label class="des filterCheckCon">{%label.plateBlackListTips%}</label>
		</li>
		<li class="line lineG lineLeft">
			<i name="listTypeCheck" id="plateWhiteListType" value="white" checked="false"></i>
			<label id="plateWhiteList" for="forbid" class="des desH">{%label.plateWhiteList%}</label>
			<label class="des filterCheckCon">{%label.plateWhiteListTips%}</label>
		</li>
	</ul>
	<div style="position:relative;z-index:1;">
		<div id="hidebg"></div>
	</div>
	<div id="plateList" class="ListCon">
		<div class="actionTitleDiv">
			<label id="plateListType" class="subTitle">{%label.plateBlackList%}</label>
			<div class="actionTitleArrowDiv">
				<label class="actionArrowTitle" id="plateLicenseArrowText">{%label.slideUp%}</label>
				<i class="arrowUp" title= {%label.slideUp%} id="plateLicenseArrow"></i>
			</div>
		</div>
		<div id="plateListCon">
			<ul class="line lineD">
				<li class="line lineD">
					<label class="des desA" for="vehicleNumber">{%label.vehicleNumber%}</label>
					<input id="vehicleNumber" type="text" class="text textA1" maxlength="10" />
				</li>
				<li class="line lineD" style="display:none">
					<label class="des desA" for="plateType">{%label.plateType%}</label>
					<span class="selCon">
						<span id="plateTypeSel" class="select">
							<span class="value hsValueA"></span>
							<i class="arrow"></i>
						</span>
					</span>
				</li>
				<li class="line lineD lineD2">
					<input id="searchLog" type="button" value="{%btn.searchLog%}" class="subBtnB btnA" />
				</li>
			</ul>
			<ul class="line">
				<input id="add" type="button" value="{%btn.add%}" class="subBtn btnC" />
				<input id="del" type="button" value="{%btn.del%}" class="subBtnB btnC" />
				<input id="clean" type="button" value="{%btn.clean%}" class="subBtnB btnC" />
				<input id="upload" type="button" value="{%btn.restoreConf%}" class="subBtnB btnC" />
				<input id="download" type="button" value="{%btn.uploadConf%}" class="subBtnB btnC" />
			</ul>
			<div id="licensePlateWLCon" class="tableCon">
				<div class="tableBorderCon"><table id="listTbl" class="dataGrid"></table></div>
			</div>
		</div>
		<div id="noSDcard" class="noSDcard">
			<img src="../../web-static/images/warning.png" />
			<label id="noSDcardTips" class="noSDcardTips">{%label.noSDcardBlack%}</label>
		</div>
	</div>
	<div id="armingSchedule" class="actionBarDiv">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.defenceTime%}</label>
			<div class="actionTitleArrowDiv">
				<label class="actionArrowTitle" id="armingScheduleArrowText">{%label.slideUp%}</label>
				<i class="arrowUp" title= {%label.slideUp%} id="armingScheduleArrow"></i>
			</div>
		</div>
		<div id="timeSchedule">
			<ul class="line">
				<li class="line linePlan">
					<span class="clearAll" id="clearAll">{%label.clear%}</span>
					<label class="tips">{%label.vehicleDetTips%}</label>
				</li>
			</ul>
			<div class="armingSchedule" id="armingSchedule">
				<div id="recPlanGrid" class="test"></div>
			</div>
			<div class="height"></div>
		</div>
	</div>
	<div class="funcBtnCon">
		<input id="save" type="button" class="subBtn btnA" value="{%btn.save%}" />
	</div>
	<div id="addLicensePlateCon" class="tableEditLyCon licensePlateAddCon">
		<div class="tableEditCon tableEditConEX">
			<div id="centerInnerCon" class="innerCon centerInnerCon centerInnerConLeft">
				<h4 class="title addLicensePlateInnerCon">{%label.addLicensePlateOrType%}</h4>
				<i id="addListCloseTip"></i>
				<ul class="line lineAdd">
					<li class="line lineG">
						<label class="des desD">{%label.addType%}</label>
						<i name="accordingCheck" id="licensePlateControl" value="licensePlate" checked="true"></i>
						<label for="forbid" class="des desH">{%label.accordingLicensePlate%}</label>

						<i name="accordingCheck" id="licenseTypeControl" value="licenseType" checked="false"></i>
						<label for="forbid" class="des desH">{%label.accordingLicenseType%}</label>
					</li>
					<li id="addLicensePlate" class="line lineE">
						<label class="des desA" for="addLicensePlateText">{%label.vehicleNumber%}</label>
						<input id="addLicensePlateText" type="text" class="text textA1" maxlength="10" />
					</li>
					<ul id="plateTypeul" class="line">
						<li class="line lineG">
							<label class="des desD">{%label.plateType%}</label>
							<i name="showInfo" id="yellow_plate" value="-1"></i>
							<label class="des desH">{%label.yellowCar%}</label>
						</li>
						<li class="line lineG lineR">
							<i name="showInfo" id="yellow_green_plate" value="-1"></i>
							<label class="des desH desA2">{%label.yellowGreenCar%}</label>
						</li>
						<li class="line lineG lineR">
							<i name="showInfo" id="blue_plate" value="-1"></i>
							<label class="des desH desA3">{%label.blueCar%}</label>
						</li>
						<li class="line lineG lineR">
							<i name="showInfo" id="green_plate" value="-1"></i>
							<label class="des desH desA2">{%label.greenCar%}</label>
						</li>
						<li class="line lineG lineR">
							<i name="showInfo" id="black_plate" value="-1"></i>
							<label class="des desH desA2">{%label.blackCar%}</label>
						</li>
						<li class="line lineG lineR">
							<i name="showInfo" id="white_plate" value="-1"></i>
							<label class="des desH desA3">{%label.whiteCar%}</label>
						</li>
						<li class="line lineG lineR">
							<i name="showInfo" id="HK_Macao_plate" value="-1"></i>
							<label class="des desH desA2">{%label.HKMCar%}</label>
						</li>
						<li class="line lineG lineR">
							<i name="showInfo" id="coach_plate" value="-1"></i>
							<label class="des desH desA2">{%label.coachCar%}</label>
						</li>
					</ul>
					<li class="line lineD" style="display:none">
						<label class="des desA" for="plateType">{%label.plateType%}</label>
						<span class="selCon">
							<span id="addPlateTypeSel" class="select">
								<span class="value hsValueA"></span>
								<i class="arrow"></i>
							</span>
						</span>
					</li>
				</ul>
				<input id="addLicensePlateCancel" type="button" value="{%btn.gridCancel%}" class="subBtnB subBtnCancel subBtnCancelAdd" />
				<input id="addLicensePlateSave" type="button" value="{%btn.save%}" class="subBtn subBtnSave" />
			</div>
			<iframe frameborder="0" class="innerIframe"></iframe>
		</div>
	</div>
	<div id="editLicensePlateCon" class="tableEditLyCon licensePlateCon">
		<div class="tableEditCon licensePlateCon">
			<div class="innerCon centerInnerCon">
				<h4 class="title addLicensePlateInnerCon">{%label.editLicensePlate%}</h4>
				<i id="editListCloseTip"></i>
				<ul class="line lineEdit">
					<li class="line lineE">
						<label class="des desA" for="editLicensePlateText">{%label.vehicleNumber%}</label>
						<input id="editLicensePlateText" type="text" class="text textA1" maxlength="10" />
					</li>
					<li class="line lineD" style="display:none">
						<label class="des desA" for="plateType">{%label.plateType%}</label>
						<span class="selCon">
							<span id="editPlateTypeSel" class="select">
								<span class="value hsValueA"></span>
								<i class="arrow"></i>
							</span>
						</span>
					</li>
				</ul>
				<input id="editLicensePlateCancel" type="button" value="{%btn.gridCancel%}" class="subBtnB subBtnCancel" />
				<input id="editLicensePlateSave" type="button" value="{%btn.save%}" class="subBtn subBtnSave" />
			</div>
			<iframe frameborder="0" class="innerIframe"></iframe>
		</div>
	</div>
	<div id="uploadCon" class="tableEditLyCon licensePlateCon">
		<div class="tableEditCon licensePlateCon">
			<div class="innerCon centerInnerCon">
				<h4 class="title addLicensePlateInnerCon">{%label.uploadPlate%}</h4>
				<i id="uploadCloseTip"></i>
					<ul class="line lineLeft">
						<li class="line lineG">
							<label class="des desF">{%label.uploadPlateTips1%}<a id="download_template" href = "javascript:;">{%label.uploadPlateTips2%}</a>{%label.uploadPlateTips3%}</label>
						</li>
						<li class="line lineG">
							<form enctype="multipart/form-data" id="upFileForm" method="post" target="uploadIf">
								<div class="fileDiv">
									<iframe id="uploadIf" name="uploadIf"></iframe>
									<input type="text" id="textfield" class="text textB7" readonly="true" />
									<input type="button" value="{%btn.fileSel%}" class="subBtnB btnA upload" />
									<input type="file" class="file" name="filename" id="fileName" />
								</div>
							</form>
						</li>
						<li style="margin-top: 20px;">
							<input id="uploadCancel" type="button" value="{%btn.gridCancel%}" class="subBtnB subBtnCancel" />
							<input id="uploadSave" type="button" value="{%btn.confirmOk%}" class="subBtn subBtnSave" />
						</li>
					</ul>
				<iframe frameborder="0" class="innerIframe"></iframe>
			</div>
		</div>
	</div>
	<div id="uploadErrCon" class="tableEditLyCon licensePlateErrCon">
		<div class="tableEditCon licensePlateErrCon">
			<div class="innerErrCon centerInnerErrCon">
				<h4 class="title licensePlateInnerErrCon">{%label.uploadResult%}</h4>
				<i id="uploadErrCloseTip"></i>
					<ul class="line">
						<li class="line lineG lineErr">
							<label id="errStr" class="des desF desErr"></label>
						</li>
						<li class="line lineG">
							<div id="licensePlateErrCon" class="tableCon padErrCon">
								<div class="tableBorderCon"><table id="listErrTbl" class="dataGrid" style="width:592px"></table></div>
							</div>
						</li>
					</ul>
			<iframe frameborder="0" class="innerIframe"></iframe>
			</div>
		</div>
	</div>
</div><script type="text/javascript">function init(){function k(a,b){var c="";closeNoteAll();switch(parseInt(a)){case ENONE:return!0;case IPCUBUSCONNFAIL:c=errStr.ipcUbusConnFail;break;case IPCUBUSCALLERR:c=errStr.ipcUbusCallErr;break;case IPCUMGUESTNAUTH:c=errStr.invPermissionDenied;break;case IPCFILEOPENERR:c=errStr.ipcFileOpenErr;break;case IPCFUNCPARAEXPT:c=errStr.ipcFuncParaExpt;break;case IPC_LPM_LIST_MAX_ERR:c=errStr.lpmListMaxErr;break;case IPC_LPM_PLATE_EXIST_ERR:c=errStr.lpmPlateExistErr;break;case IPC_LPM_PLATE_INVALID_ERR:c=
errStr.lpmPlateInvalidErr;break;case IPC_LPM_TYPE_INVALID_ERR:c=errStr.lpmTypeInvalidErr;break;case IPC_LPM_DB_ERR:c=errStr.lpmDBErr;break;case IPC_LPM_PAGE_INVALID_ERR:c=errStr.lpmPageInvalidErr;break;case IPC_LPM_ENOMEMORY:c=errStr.lpmEnomemory;break;case IPC_LPM_UPLOAD_ERR:c=errStr.lpmUploadErr;break;case IPC_LPM_DOWNLOAD_ERR:c=errStr.lpmDownloadErr;break;case IPC_LPM_UPLOAD_RESULT_INVALID:c=errStr.lpmUploadResultInvalid;break;case IPC_LPM_EMPTY_LIST_ERR:c=errStr.lpmEmptyListErr;break;case IPC_LPM_EXIST_ON_WHITELIST_ERR:c=
errStr.lpmPlateExistErrPrefix+F+errStr.lpmPlateExistOnWhitelistErr;break;case IPC_LPM_EXIST_ON_BLACKLIST_ERR:c=errStr.lpmPlateExistErrPrefix+F+errStr.lpmPlateExistOnBlacklistErr;break;case IPC_LPM_TYPE_CANNOT_MATCH_LP_ERR:c=errStr.lpmTypeCannotMatchLp;break;case IPC_LPM_MODED_LP_NOT_EXIST_ERR:c=errStr.lpmModedLpNotExistErr;break;case IPC_LPM_TYPE_EXIST_ON_WHITELIST_ERR:c=errStr.lpmTypeExistOnWhiteErr;break;case IPC_LPM_TYPE_EXIST_ON_BLACKLIST_ERR:c=errStr.lpmTypeExistOnBlackErr;break;default:c=errStr.unknown}closeToast();
showAlert(c);return!1}function Aa(a){var b,c=[];if(void 0==a)return c.push('"0000-0000:0"'),c;a instanceof Array||(a=a.match(/\d{4}-\d{4}/g));for(var d=0;d<a.length;d++){b=a[d];var g=b.split(/[-]/,2);b=parseInt(g[0],10);g=parseInt(g[1],10);0==b&&0==g?c.push(t._getString(b,g,0)):c.push(t._getString(b,g,1))}return c}function Ba(){var a,b=t.getTimeVal(),c={};for(a=0;a<G.length;a++){var d=c,g=ea[a],f;f=b[G[a]];var m=void 0,l=void 0,p=void 0,h=void 0,e=void 0,e=h=void 0;if(void 0==f)f="";else{void 0==
m&&(m=6);l="[";if(1>f.length)l+='"0000-0000"';else for(p=0;p<f.length&&p<m;p++)h=f[p].toString(),e=h.split(/[-,:]/,3),h=parseInt(e[0],10),e=parseInt(e[1],10),h=t._getStringWithoutType(h,e),0<p&&(l+=","),l+='"'+h+'"';f=l+="]"}d[g]=f}return c}function Ca(){var a,b={};b[d]={};b[d][NAME]=N;$.query(b,function(c){if(!0==k(c[ERR_CODE]))for(t.reset(),a=0;a<G.length;a++)t.setTimeVal(G[a],Aa(c[d][N][ea[a]]))})}function fa(a){O?(id("armingScheduleArrow").className="arrowDown",id("armingScheduleArrow").title=
label.slideDown,id("armingScheduleArrowText").innerHTML=label.slideDown,ga.style.display="none",O=!1):(id("armingScheduleArrow").className="arrowUp",id("armingScheduleArrow").title=label.slideUp,id("armingScheduleArrowText").innerHTML=label.slideUp,ga.style.display="",O=!0)}function ha(a){P?(id("plateLicenseArrow").className="arrowDown",id("plateLicenseArrow").title=label.slideDown,id("plateLicenseArrowText").innerHTML=label.slideDown,ia.style.display="none",P=!1):(id("plateLicenseArrow").className=
"arrowUp",id("plateLicenseArrow").title=label.slideUp,id("plateLicenseArrowText").innerHTML=label.slideUp,ia.style.display="",P=!0)}function Da(){var a={};a[d]={};a[d][n]={};a[d][n][Q]=r;a[d][n][R]=e;"camera"==r&&"none"!=e&&(a[d][N]=Ba());$.modify(a,function(a){!0==k(a[ERR_CODE])&&showToast("success")})}function Ea(a){w=[];x.init({id:"listTbl",data:w,hasID:!0,edit:!1,IDWidth:60,selWidth:48,max:S,paging:{num:10,page:1},head:[{field:label.vehicleNumberOrType,width:340},{field:label.operate,width:340}],
list:[{name:"license_plate_number"},{name:"operate"}],pageTurnFunc:function(a){u(a)}});a=document.getElementsByClassName("tableHeadConSp");for(var b=0;b<a.length;b++)a[b].style.textAlign="center";showDetailCon()}function Fa(a){y=[];z.init({id:"listErrTbl",data:y,hasID:!0,edit:!1,hasSelBox:!1,IDWidth:60,selWidth:48,max:S,paging:{num:10,page:1},head:[{field:label.vehicleNumberOrType,width:360},{field:label.uploadFailedReason,width:360}],list:[{name:"license_plate_number"},{name:"errNo"}],pageTurnFunc:function(a){T(a)}});
a=document.getElementsByClassName("tableHeadConSp");for(var b=0;b<a.length;b++)a[b].style.textAlign="center";showDetailCon()}function Ga(){var a=[],b=[],c={},q="white"==e?ja:ka,g="white"==e?la:ma,f,m,l=!1;f=$("table").find("tr");var p=H>=C*I?I-0:H-(C-1)*I;for(m=1;m<p+1;m++){var h=f.eq((C-1)*I+m).find("td:first").get(0);"true"==h.childNodes[0].getAttribute("checked")&&(l=!0,h=h.nextSibling.nextSibling.innerHTML,0<h.indexOf(label.vehicle)?b.push(findValueOfText(h)):a.push(h))}l?showConfirm(label.delLicensePlateConfirm,
function(f){!0==f&&(c[d]={},0<b.length&&(c[d][g]={},c[d][g][D]=b,$.action(c,function(a){k(a[ERR_CODE])},!1)),c[d]={},0<a.length&&(c[d][q]={},c[d][q][na]=a,$.action(c,function(a){k(a[ERR_CODE])},!1)),u(v))}):showToast("warning",{noteStr:label.selectPlateTips})}function J(a,b){var c=a.substring(0,1),d;if(7!=a.length&&8!=a.length)return showNote(b,errStr.lpmLicensePlateLengthErr),!1;d=7==a.length?a.substring(1,7):a.substring(1,8);return-1==Ha.indexOf(c)?(showNote(b,errStr.lpmLicensePlateProErr),!1):
/^[A-HJ-NP-Z]{1}[A-HJ-NP-Z0-9]{5,6}$/.test(d)||/^[A-HJ-NP-Z]{1}[A-HJ-NP-Z0-9]{4}["港", "学", "使", "警", "澳", "挂", "军", "北", "南", "广", "沈", "兰", "成", "济", "海", "民", "空"]{1}$/.test(d)||/^[A-HJ-NP-Z0-9]{5}["领"]{1}$/.test(d)?!0:(showNote(b,errStr.vdLicensePlateWrongErr),!1)}function oa(){closeNoteAll();J(id("addLicensePlateText").value,"addLicensePlateText");J(id("editLicensePlateText").value,"editLicensePlateText")}function Ia(a){var b={},c={},b=(document.body.offsetHeight-id("addLicensePlateCon").clientHeight)/
2;0>b&&(b=0);c=(document.body.offsetWidth-id("addLicensePlateCon").clientWidth)/2;0>c&&(c=0);showCover(function(a){id("addLicensePlateCon").style.top=b+"px";id("addLicensePlateCon").style.left=c+"px";id("addLicensePlateCon").style.position="fixed";id("addLicensePlateCon").style.zIndex=1019;$("#"+a.id).css("opacity","0")});setHideFlag(!0);id("addLicensePlateCancel").onclick=U;id("addListCloseTip").onclick=U;id("addLicensePlateSave").onclick=Ja;id("addLicensePlateText").onblur=oa;pa();id("confCon").onmousewheel=
function(){return!1};id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!1};Ka()}function Ja(){var a=[],b={};b[d]={};var c;if("licensePlate"==V){c="white"==e?La:Ma;if(!J(id("addLicensePlateText").value,"addLicensePlateText"))return;F=id("addLicensePlateText").value;b[d][c]={};b[d][c][Na]=id("addLicensePlateText").value}else if(c="white"==e?Oa:Pa,s("yellow_plate")||s("yellow_green_plate")||s("blue_plate")||s("green_plate")||s("black_plate")||s("white_plate")||
s("HK_Macao_plate")||s("coach_plate"))for(b[d][c]={},b[d][c][D]=a,c=0;c<W.length;c++)s(W[c].value)&&a.push(W[c].value);else{showToast("warning",{noteStr:errStr.lpmLicenseTypeErr});return}$.action(b,function(a){!0==k(a[ERR_CODE])&&(u(v),U(),showToast("success"))})}function Qa(){var a={},b="white"==e?qa:ra;showConfirm(label.clearLicensePlateConfirm,function(c){!0==c&&(a[d]={},a[d][b]=null,$.action(a,function(a){!0==k(a[ERR_CODE])&&(u(v),showToast("success"))}))})}function U(){setHideFlag(!1);hideCover(function(){closeNoteAll();
id("addLicensePlateCon").style.top="-9999px";id("addLicensePlateText").value=""});id("confCon").onmousewheel=function(){return!0};id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!0}}function Ra(a){var b={},c={},b=(document.body.offsetHeight-id("editLicensePlateCon").clientHeight)/2;0>b&&(b=0);c=(document.body.offsetWidth-id("editLicensePlateCon").clientWidth)/2;0>c&&(c=0);showCover(function(a){id("editLicensePlateCon").style.top=b+"px";id("editLicensePlateCon").style.left=
c+"px";id("editLicensePlateCon").style.position="fixed";id("editLicensePlateCon").style.zIndex=1019;$("#"+a.id).css("opacity","0")});setHideFlag(!0);id("editLicensePlateCancel").onclick=X;id("editListCloseTip").onclick=X;id("editLicensePlateSave").onclick=Sa;id("editLicensePlateText").onblur=oa;id("confCon").onmousewheel=function(){return!1};id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!1}}function Sa(){var a={},b="white"==e?Ta:Ua;J(id("editLicensePlateText").value,
"editLicensePlateText")&&(F=id("editLicensePlateText").value,K==id("editLicensePlateText").value?showToast("warning",{noteStr:label.noModifyTips}):(a[d]={},a[d][b]={},a[d][b][Va]=K,a[d][b][Wa]=id("editLicensePlateText").value,$.action(a,function(a){!0==k(a[ERR_CODE])&&(u(v),X(),showToast("success"))})))}function X(){setHideFlag(!1);hideCover(function(){closeNoteAll();id("editLicensePlateCon").style.top="-9999px";id("editLicensePlateText").value=""});id("confCon").onmousewheel=function(){return!0};
id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!0}}function Xa(a){for(var b=$("#listTbl").find("tr"),c=1;c<b.length;c++){var q=b.eq(c).find("td:last").get(0);if(c>a)var g=document.createElement("span");var f=document.createElement("span");c>a&&(g.className="editBtn",g.innerHTML=btn.edit,q.appendChild(g));f.className="delBtn";f.innerHTML=btn.del;q.appendChild(f);f.onclick=function(a){a=a||window.event;var b=[],c={};c[d]={};var f;f=a.target?a.target.parentNode.previousSibling.innerHTML:
a.srcElement.parentNode.previousSibling.innerHTML;0<f.indexOf("车")?(a="white"==e?la:ma,c[d][a]={},b.push(findValueOfText(f)),c[d][a][D]=b):(a="white"==e?ja:ka,c[d][a]={},b.push(f),c[d][a][na]=b);showConfirm(label.delLicensePlateConfirm,function(a){!0==a&&$.action(c,function(a){!0==k(a[ERR_CODE])&&u(v)})})};c>a&&(g.onclick=function(a){Ra();a=a||window.event;K=a.target?a.target.parentNode.previousSibling.innerHTML:a.srcElement.parentNode.previousSibling.innerHTML;id("editLicensePlateText").value=K})}}
function Ya(){var a={},b={},a=(document.body.offsetHeight-id("uploadCon").clientHeight)/2;0>a&&(a=0);b=(document.body.offsetWidth-id("uploadCon").clientWidth)/2;0>b&&(b=0);showCover(function(c){id("uploadCon").style.top=a+"px";id("uploadCon").style.left=b+"px";id("uploadCon").style.position="fixed";id("uploadCon").style.zIndex=1019;$("#"+c.id).css("opacity","0")});setHideFlag(!0);id("uploadCancel").onclick=L;id("uploadSave").onclick=Za;id("uploadCloseTip").onclick=L;id("download_template").onclick=
$a;Y.onchange=function(){var a=this.value,a=a.substring(a.lastIndexOf("\\")+1);id("textfield").value=a};id("confCon").onmousewheel=function(){return!1};id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!1}}function Za(){var a={};!0==ab()&&(a={},$("#uploadIf").one("load",function(){iFrmOnload("uploadIf",bb)}),a[d]={},a[d][cb]=null,showToast("loading"),$.action(a,function(a){k(a[ERR_CODE])&&(Z.action=$.orgURL(a.url),Z.submit(),Z.reset())}))}function db(){L();
var a={},b={},a=(document.body.offsetHeight-id("uploadErrCon").clientHeight)/2;0>a&&(a=0);b=(document.body.offsetWidth-id("uploadErrCon").clientWidth)/2;0>b&&(b=0);showCover(function(c){id("uploadErrCon").style.top=a+"px";id("uploadErrCon").style.left=b+"px";id("uploadErrCon").style.position="fixed";id("uploadErrCon").style.zIndex=1019;$("#"+c.id).css("opacity","0")});setHideFlag(!0);id("uploadErrCloseTip").onclick=eb}function T(a){var b={},c={},e={},g=fb;b[d]=c;c[g]=e;e[sa]=C=a;e[ta]="10";clearTimeout(ua);
showToast("loading");$.action(b,function(b){if(b[ERR_CODE]==ESYSBUSY)ua=$.setTimeout(T(a),200);else if(k(b[ERR_CODE]))if(closeLoading(),0==Number(b[aa]))L(),showToast("success",{noteStr:label.uploadPlateSuccessTips3+label.uploadPlateSuccessTips2+b[va]+label.uploadPlateSuccessTips1});else{db();id("errStr").innerHTML=b[va]+label.uploadPlateSuccessTips1+label.uploadPlateSuccessTips2+label.uploadPlateSuccessTips3+","+b[aa]+label.uploadPlateFailedTips1+"。";var c=Number(b[aa]),d=b[gb],e,g=z._ops.paging.num;
z.blankTable();y=[];for(b=0;b<g;b++)b<d.length&&(e={},e.license_plate_number=d[b][ba],e.errNo=transDLErrType(d[b][hb]),y[b]=e);0<a?z.refreshPage(y,c,a):(z.setDataSource(y),z.refresh(a));c=document.getElementsByTagName("td");for(b=0;b<c.length;b++)c[b].style.textAlign="center";showToast("success")}})}function bb(a,b){closeToast();closeLoading();ENONE==a&&T(v)}function ab(){var a=Y.value;return""==a?(showAlert(label.lpmUpWarn),!1):-1==a.search(/\.csv/)?(showAlert(errStr.fileFmttErr),!1):Y.files[0].size>
ib?(showAlert(errStr.fileSizeOverErr),!1):!0}function L(){setHideFlag(!1);hideCover(function(){closeNoteAll();id("uploadCon").style.top="-9999px"});id("confCon").onmousewheel=function(){return!0};id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!0}}function eb(){setHideFlag(!1);hideCover(function(){closeNoteAll();id("uploadErrCon").style.top="-9999px"});id("confCon").onmousewheel=function(){return!0};id("confCon").onkeydown=function(a){a=a||window.event;
if(38==a.keyCode||40==a.keyCode)return!0}}function wa(){A=id("vehicleNumber").value;var a=/^[A-Za-z0-9\u4e00-\u9fa5]+$/gi;if(A&&!a.test(A))return showNote("vehicleNumber",errStr.vehicleNumberErr),!1;u(v)}function u(a){var b={},c={},q={},g=d,f,m=0,l=0,p=[],h=[],n="black"==e?"blacklist":"whitelist";xa&&!A&&(f="black"==e?jb:kb,b[g]=c,c[f]=null,$.action(b,function(a){k(a[ERR_CODE])&&(m=a[D].length,p=a[D])},!1));f="black"==e?lb:mb;b={};c={};b[g]=c;c[f]=q;A&&(q[ba]=A);q[sa]=C=a;q[ta]="10";q[nb]=ob;$.action(b,
function(b){if(k(b[ERR_CODE])){l=b[pb];H=parseInt(m)+parseInt(l);if(1==a&&0<m)for(var c=0;c<p.length;c++)h[c]={license_plate_number:findTextOfValue(p[c])};if(0<l)for(c=0;c<b[n].length;c++)h.push(b[n][c]);var c=H,d,e=x._ops.paging.num;x.blankTable();w=[];for(b=0;b<e;b++)b<h.length&&(d={},d.license_plate_number=h[b][ba],w[b]=d);0<a?x.refreshPage(w,c,a):(x.setDataSource(w),x.refresh(a));c=document.getElementsByTagName("td");for(b=0;b<c.length;b++)c[b].style.textAlign="center";Xa(m);showToast("success")}})}
function ya(){var a={},a={};a[d]={};a[d][qa]=null;$.action(a,function(a){});a={};a[d]={};a[d][ra]=null;$.action(a,function(a){})}function qb(){var a={};a[d]={};a[d][B]={};a[d][B][ca]="all";$.action(a,function(a){location.href=$.orgURL(a[M][0]);setTimeout(function(){location.href=$.orgURL(a[M][1])},200);ya()})}function rb(){var a={};a[d]={};a[d][B]={};a[d][B][ca]="black"==e?"blacklist":"whitelist";$.action(a,function(a){location.href=$.orgURL(a[M][0])})}function $a(){var a={};a[d]={};a[d][B]={};a[d][B][ca]=
"template";$.action(a,function(a){location.href=$.orgURL(a[M][0])})}function sb(){if(r!=getRadioChs("controlTypeCheck")){r=getRadioChs("controlTypeCheck");var a={};a[d]={};a[d][n]={};a[d][n][Q]=r;"platform"==r?showConfirmD(label.cue,label.platformChangeTips1+"\n"+label.platformChangeTips2,function(b){!0==b?$.modify(a,function(a){!0==k(a[ERR_CODE])&&(ya(),E(),howDetailCon())}):(r="camera",E())},null,btn.unupload,btn.uploadConf,function(b){!0==b&&$.modify(a,function(a){!0==k(a[ERR_CODE])&&(qb(),E(),
howDetailCon())})}):$.modify(a,function(a){!0==k(a[ERR_CODE])&&(E(),howDetailCon())})}}function za(){da||(e=getRadioChs("listTypeCheck"));var a={};a[d]={};a[d][n]={};a[d][n][R]=e;$.modify(a,function(a){!0==k(a[ERR_CODE])&&("none"==e?(id("plateList").style.display="none",id("armingSchedule").style.display="none",changeRadioInput("plateNoneType",!0),changeRadioInput("plateWhiteListType",!1),changeRadioInput("plateBlackListType",!1)):("black"==e?(changeRadioInput("plateWhiteListType",!1),changeRadioInput("plateBlackListType",
!0),id("plateListType").innerHTML=label.blackList,id("noSDcardTips").innerHTML=label.noSDcardBlack):(changeRadioInput("plateWhiteListType",!0),changeRadioInput("plateBlackListType",!1),id("plateListType").innerHTML=label.whiteList,id("noSDcardTips").innerHTML=label.noSDcardWhite),id("plateList").style.display="inline-block",id("armingSchedule").style.display="inline-block",id("vehicleNumber").value="",wa(),changeRadioInput("plateNoneType",!1),Ca()),showToast("success"))});da=0}function pa(){closeNoteAll();
V=getRadioChs("accordingCheck");"licensePlate"==V?(id("addLicensePlate").style.display="block",id("plateTypeul").style.display="none",id("addLicensePlateCon").style.height="239px",id("centerInnerCon").style.height="211px"):(id("addLicensePlate").style.display="none",id("plateTypeul").style.display="block",id("addLicensePlateCon").style.height="499px",id("centerInnerCon").style.height="471px")}function s(a){return null!=id(a).getAttribute("checked")&&"true"==id(a).getAttribute("checked").toString()?
!0:!1}function Ka(){for(var a=document.getElementById("plateTypeul").getElementsByClassName("chObj"),b=0;b<a.length;b++)id(a[b].id).setAttribute("checked","false"),id(a[b].id).className="chObj"}function E(){"platform"==r?(changeRadioInput("platformControlType",!0),changeRadioInput("cameraControlType",!1),id("listTypeSel").style.display="none",id("plateList").style.display="none",id("armingSchedule").style.display="none"):(changeRadioInput("platformControlType",!1),changeRadioInput("cameraControlType",
!0),id("listTypeSel").style.display="inline-block",da=1,za())}var d=UciLicensePlateManagement.fileName,Ma=UciLicensePlateManagement.secType.AddBlackLicensePlates,La=UciLicensePlateManagement.secType.AddWhiteLicensePlates,Pa=UciLicensePlateManagement.secType.AddBlackLicensePlateType,Oa=UciLicensePlateManagement.secType.AddWhiteLicensePlateType,ka=UciLicensePlateManagement.secType.deleteBlackLicensePlates,ja=UciLicensePlateManagement.secType.deleteWhiteLicensePlates,ma=UciLicensePlateManagement.secType.DelBlackLicensePlateTypes,
la=UciLicensePlateManagement.secType.DelWhiteLicensePlateTypes,jb=UciLicensePlateManagement.secType.readLicensePlateTypeBlacklist,kb=UciLicensePlateManagement.secType.readLicensePlateTypeWhitelist,Ua=UciLicensePlateManagement.secType.modifyLicensePlateBlacklist,Ta=UciLicensePlateManagement.secType.modifyLicensePlateWhitelist,ra=UciLicensePlateManagement.secType.clearLicensePlateBlacklist,qa=UciLicensePlateManagement.secType.clearLicensePlateWhitelist,lb=UciLicensePlateManagement.secType.readLicensePlateBlacklist,
mb=UciLicensePlateManagement.secType.readLicensePlateWhitelist,B=UciLicensePlateManagement.secType.downloadPlateList,cb=UciLicensePlateManagement.secType.uploadPlateList,fb=UciLicensePlateManagement.secType.readUploadErrorList,N=UciLicensePlateManagement.secName.armingSchedule,n=UciLicensePlateManagement.secName.info,Na=UciLicensePlateManagement.optName.licensePlate,ba=UciLicensePlateManagement.optName.licensePlateNumber,nb=UciLicensePlateManagement.optName.licensePlateType,D=UciLicensePlateManagement.optName.licensePlateTypes,
na=UciLicensePlateManagement.optName.licensePlates,Va=UciLicensePlateManagement.optName.oldLicensePlate,Wa=UciLicensePlateManagement.optName.newLicensePlate,Q=UciLicensePlateManagement.optName.workMode,R=UciLicensePlateManagement.optName.listType,gb=UciLicensePlateManagement.optName.errorList,sa=UciLicensePlateManagement.optName.page,pb=UciLicensePlateManagement.optName.total,ta=UciLicensePlateManagement.optName.numPerPage,M=UciLicensePlateManagement.optName.url,ca=UciLicensePlateManagement.optName.type,
va=UciLicensePlateManagement.optName.successNum,aa=UciLicensePlateManagement.optName.failedNum,hb=UciLicensePlateManagement.optName.errNo;$.LprCapability&&parseInt($.LprCapability[UciLprCapability.optName.lpssRecordDatabaseStorage]);var W=[{str:label.yellowCar,value:"yellow_plate"},{str:label.yellowGreenCar,value:"yellow_green_plate"},{str:label.blueCar,value:"blue_plate"},{str:label.greenCar,value:"green_plate"},{str:label.blackCar,value:"black_plate"},{str:label.whiteCar,value:"white_plate"},{str:label.HKMCar,
value:"HK_Macao_plate"},{str:label.coachCar,value:"coach_plate"}],w=[],x=new DataGrid,y=[],z=new DataGrid,tb=$.lpmCapability?parseInt($.lpmCapability[UciLPMCapability.optName.platformSupported]):!1,ub=$.lpmCapability?parseInt($.lpmCapability[UciLPMCapability.optName.fileOperateSupported]):!1,vb=$.lpmCapability?parseInt($.lpmCapability[UciLPMCapability.optName.armingScheduleSupported]):!1,xa=$.lpmCapability?parseInt($.lpmCapability[UciLPMCapability.optName.licensePlateTypeManage]):!1,wb=$.lpmCapability?
parseInt($.lpmCapability[UciLPMCapability.optName.licensePlateWhitelistSupported]):!1,S=2E3,xb=$.lpmCapability?parseInt($.lpmCapability[UciLPMCapability.optName.licensePlateBlacklistSupported]):!1,Ha=[label.beijing,label.tianjin,label.shanghai,label.chongqing,label.hebei,label.henan,label.yunnan,label.liaoning,label.heilongjiang,label.hunan,label.anhui,label.shandong,label.xinjiang,label.jiangsu,label.zhejiang,label.jiangxi,label.hubei,label.guangxi,label.gansu,label.shanxi,label.neimeng,label.shanxi2,
label.jilin,label.fujian,label.guizhou,label.guangdong,label.qinghai,label.xizang,label.sichuan,label.ningxia,label.hainan,label.province],G=[label.Mon,label.Tue,label.Wen,label.Thu,label.Fri,label.Sta,label.Sun],ea=[UciLicensePlateManagement.optName.mon,UciLicensePlateManagement.optName.tue,UciLicensePlateManagement.optName.wed,UciLicensePlateManagement.optName.thu,UciLicensePlateManagement.optName.fri,UciLicensePlateManagement.optName.sat,UciLicensePlateManagement.optName.sun],t,O=!0,ga=id("timeSchedule"),
P=!0,ia=id("plateListCon"),r="camera",e="none",da=0,v="1",I="10",C=0,H=0,A=null,ob="all",K,F,Y=id("fileName"),ib=102400,Z=document.forms[0],ua,V="licensePlate";(function(){var a={};initCheckInput("hd");id("save").onclick=Da;id("searchLog").onclick=wa;initRadioInput("controlTypeCheck",sb);initRadioInput("listTypeCheck",za);initRadioInput("accordingCheck",pa);t=new PlanSet("recPlanGrid",{curType:1});id("clearAll").onclick=function(a){t.reset()};id("armingScheduleArrow").onclick=fa;id("armingScheduleArrowText").onclick=
fa;id("plateLicenseArrow").onclick=ha;id("plateLicenseArrowText").onclick=ha;id("del").onclick=Ga;id("add").onclick=Ia;id("clean").onclick=Qa;id("download").onclick=rb;id("upload").onclick=Ya;Ea();Fa();a[d]={};a[d][NAME]=[n];$.lpmCapability&&1==wb?S=parseInt($.lpmCapability[UciLPMCapability.optName.licensePlateWhitelistMaxNum]):id("plateWhiteList").parentNode.style.display="none";$.lpmCapability&&1==xb?parseInt($.lpmCapability[UciLPMCapability.optName.licensePlateBlacklistMaxNum]):id("plateBlackList").parentNode.style.display=
"none";tb||(id("platformControlType").parentNode.parentNode.style.display="none");ub||(id("upload").style.display="none",id("download").style.display="none");vb||(id("armingSchedule").style.display="none");xa||(id("licenseTypeControl").style.display="none",id("licenseTypeControl").nextElementSibling.style.display="none");$.query(a,function(a){!0==k(a[ERR_CODE])&&(r=a[d][n][Q],e=a[d][n][R],E(),showDetailCon())})})();initCheckInput("showInfo",null)}init();
</script><style type="text/css">label.desECED{font-size:13px;color:#666;line-height:30px;width:130px;margin-right:4px}input.inputDiag{margin-left:0;vertical-align:middle}label.filterCheckCon{height:12px;font-family:PingFangSC-Regular;font-size:12px;color:#676767;line-height:12px;font-weight:400}ul.line label.desH{height:20px;font-family:PingFangSC-Regular;font-size:13px;color:#666;text-align:left;line-height:20px;font-weight:400;margin-right:12px;margin-left:10px}ul.line li.lineLeft{margin-left:90px}ul.line label.desD{width:90px}ul.lineCon{background:url(../../web-static/images/line.png) repeat-x 0 0;clear:both;padding-top:12px;font-size:0}label.subTitle{width:48px;height:40px;font-family:PingFangSC-Regular;font-size:16px;color:#7a8599;letter-spacing:0;line-height:40px;font-weight:400}div.ListCon{margin-top:40px;margin-bottom:15px;width:720px}ul.line li.lineD2{float:right;text-align:right}i.rdObj{background:transparent url("../../web-static/images/radioTab.png") no-repeat scroll 0 0;margin-top:7px}i.rdObjCheck{background:transparent url("../../web-static/images/radioedTab.png") no-repeat scroll 0 0;margin-top:7px}input.btnC{width:60px;height:26px;border:1px solid #c7cdd9;border-radius:2px;margin-right:8px}div.licensePlateWLCon{width:720px;height:376px}ul.line li.lineD{margin-bottom:30px}div.noSDcard{vertical-align:middle;margin:auto;display:none}label.noSDcardTips{width:215px;height:20px;font-family:PingFangSC-Regular;font-size:14px;color:#f50;font-weight:400}img.warning{background:transparent url("../../web-static/images/warning16.png") no-repeat scroll center center}table.dataGrid td{text-align:center}span.editBtn{font-size:13px;color:#325fe0;line-height:20px;margin-right:8px;cursor:pointer;text-decoration:underline}span.delBtn{font-size:13px;color:#325fe0;line-height:20px;cursor:pointer;text-decoration:underline}div.licensePlateCon{width:480px;height:239px;background:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,0.20);border-radius:2px}div.licensePlateAddCon{width:480px;background:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,0.20);border-radius:2px}div.licensePlateErrCon{width:640px;height:590px;background:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,0.20);border-radius:2px}div.centerInnerCon{text-align:center;height:211px}div.centerInnerConLeft{text-align:left}div.centerInnerErrCon{text-align:center;height:562px}div.tableEditCon h4.addLicensePlateInnerCon{width:430px}div.licensePlateErrCon h4.licensePlateInnerErrCon{width:580px;margin-left:15px}input.subBtnCancel{width:82px;height:30px;border-radius:2px;margin-right:16px;margin-bottom:5px}input.subBtnCancelAdd{margin-left:120px}input.subBtnSave{width:82px;height:30px;border-radius:2px;margin-bottom:5px}#addListCloseTip{background:transparent url("../../web-static/images/closeTip.png") no-repeat scroll 0 12px;width:24px;height:26px;display:inline-block;cursor:pointer}#editListCloseTip{background:transparent url("../../web-static/images/closeTip.png") no-repeat scroll 0 12px;width:24px;height:26px;display:inline-block;cursor:pointer}#uploadCloseTip{background:transparent url("../../web-static/images/closeTip.png") no-repeat scroll 0 12px;width:24px;height:26px;display:inline-block;cursor:pointer}#uploadErrCloseTip{background:transparent url("../../web-static/images/closeTip.png") no-repeat scroll 0 12px;width:24px;height:26px;display:inline-block;cursor:pointer}ul.lineLeft{margin-left:-36px}ul.lineAdd{margin-left:66px;margin-bottom:20px}ul.lineEdit{margin-left:-36px;margin-bottom:30px;margin-top:20px}#upFileForm{display:inline-block;vertical-align:middle;width:430px;*width:443px;_width:430px;*display:inline;*zoom:1}#uploadIf{top:-9999px;position:absolute;visibility:hidden}ul.line label.desF{line-height:32px;color:#333;margin-left:-95px;width:450px;font-family:PingFangSC-Regular;font-size:14px}ul.line label.desErr{margin-left:-358px}ul.line li.lineErr{padding:0}input.upload{margin-left:8px;width:104px}div.fileDiv input.btnA{padding:0}input.file{font-size:25px;top:110px;right:30px;width:430px;opacity:0;filter:alpha(opacity:0);cursor:pointer;position:absolute;vertical-align:top;z-index:1}div.padErrCon{padding:0 24px 0 24px}div.peCon{left:136px;top:560px;_left:-30px;_top:-10px}div.peCon div.peConDetail div.peCol4{display:none}#orgDC{width:662px}.displayNone{display:none!important}div.hsTipC p.detail{white-space:pre}ul.lineL2 li.line i{margin-right:10px}ul.lineL2 li.lineR{margin-left:94px}div.tableEditConEX{box-shadow:0 0 0 rgba(0,0,0,0);background:0}ul.line li.lineR{margin-left:90px}</style>