

<div class="detailCon">
	<div class="actionBarDiv">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.defenceTime%}</label>
			<div class="actionTitleArrowDiv">
				<label class="actionArrowTitle" id="recordArrowText">{%label.slideUp%}</label>
				<i class="arrowUp" title= {%label.slideUp%} id="recordArrow"></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.snapshotTipsDT%}</label>
				</li>
			</ul>
			<div class="armingSchedule" id="armingSchedule">
				<div id="recPlanGrid" class="test"></div>
			</div>
		</div>
	</div>

	<div class="funcBtnCon">
		<input id="save" type="button" class="subBtn btnA" value="{%btn.save%}" />
	</div>
</div><script type="text/javascript">function init(){function r(a,b){var c="";switch(parseInt(a)){case ENONE:return!0;case IPCUMGUESTNAUTH:c=errStr.invPermissionDenied;break;case IPCMSGALARMENERR:c=errStr.ipcMsgAlarmEnErr;break;case IPCMSGALARMPLANENERR:c=errStr.ipcMsgAlarmPlanEnErr;break;case IPCMSGALARMPLANSETERR:c=errStr.ipcMsgAlarmPlanSetErr;break;case IPCMSGALARMGETERR:c=errStr.ipcMsgAlarmGetErr;break;default:c=errStr.invRequestFail}closeToast();showAlert(c,b);return!1}function v(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 n=0;n<a.length;n++){b=a[n];var g=b.split(/[-]/,2);b=parseInt(g[0],10);g=parseInt(g[1],10);0==b&&0==g?c.push(e._getString(b,g,0)):c.push(e._getString(b,g,1))}return c}function w(){var a,b=e.getTimeVal(),c={};for(a=0;a<p.length;a++){var n=c,g=s[a],h;h=b[p[a]];var d=void 0,f=void 0,l=void 0,k=void 0,m=void 0,m=k=void 0;if(void 0==h)h="";else{void 0==d&&(d=6);f="[";if(1>h.length)f+='"0000-0000"';else for(l=0;l<h.length&&l<d;l++)k=h[l].toString(),
m=k.split(/[-,:]/,3),k=parseInt(m[0],10),m=parseInt(m[1],10),k=e._getStringWithoutType(k,m),0<l&&(f+=","),f+='"'+k+'"';h=f+="]"}n[g]=h}return c}function t(){q?(id("recordArrow").className="arrowDown",id("recordArrow").title=label.slideDown,id("recordArrowText").innerHTML=label.slideDown,u.style.display="none",q=!1):(id("recordArrow").className="arrowUp",id("recordArrow").title=label.slideUp,id("recordArrowText").innerHTML=label.slideUp,u.style.display="",q=!0)}var d=uciFaceSnapShot.fileName,p=[label.Mon,
label.Tue,label.Wen,label.Thu,label.Fri,label.Sta,label.Sun],s=[uciFaceSnapShot.optName.mon,uciFaceSnapShot.optName.tue,uciFaceSnapShot.optName.wed,uciFaceSnapShot.optName.thu,uciFaceSnapShot.optName.fri,uciFaceSnapShot.optName.sat,uciFaceSnapShot.optName.sun],e;e=new PlanSet("recPlanGrid",{curType:1});(function(){var a,b={},c=uciFaceSnapShot.secName.armingSchedule;b[d]={};b[d][NAME]=c;$.query(b,function(b){if(!0==r(b[ERR_CODE])){e.reset();for(a=0;a<p.length;a++)e.setTimeVal(p[a],v(b[d][c][s[a]]));
showDetailCon()}})})();id("save").onclick=function(){var a={};e.getTimeVal();var b=uciFaceSnapShot.secName.armingSchedule;a[d]={};a[d][b]={};a[d][b]=w();showToast();$.modify(a,function(a){!0==r(a[ERR_CODE])&&showToast("success")})};var q=!0,u=id("timeSchedule");id("recordArrow").onclick=t;id("recordArrowText").onclick=t;id("clearAll").onclick=function(a){e.reset()}}init();
</script><style type="text/css">div.peCol span.select{font-size:0!important}span.peSelect{width:124px!important;_width:116px!important;font-size:14px!important}#orgDC{width:662px}.displayNone{display:none!important}div.peCon{left:136px;top:190px;_left:-30px;_top:-10px}div.peCon div.peConDetail div.peCol4{display:none}div.configDiv label.title{display:inline-block;height:30px;line-height:30px;font-size:12px;color:#7a8999;width:66px;margin:0 4px}input.textClock{background:url(../web-static/images/clock.png) no-repeat 160px 5px #fff;cursor:pointer;text-align:left}div.timePickerCon{width:167px}div.timeFunc{width:145px}label.desColon{width:16px;font-size:13px;line-height:30px;text-align:center}ul.line li.lineE{margin-bottom:4px}</style>