
<style>
label.deepen{
	color: #333 !important;
}
</style>
<div class="detailCon">
	<ul class="line">
		<li class="line lineE">
			<label class="des desA">{%label.batteryType%}</label>
			<label class="des desG deepen" id="batteryType"></label>
		</li>
		<li class="line lineE" id="batteryPercentWrap">
			<label class="des desA">{%label.batteryPercent%}</label>
			<label class="des desG deepen" id="batteryPercent"></label>
		</li>
		<li class="line lineE" id="batteryStatusWrap">
			<label class="des desA">{%label.batteryStatus%}</label>
			<label class="des desG deepen" id="batteryStatus"></label>
		</li>
		<li class="line lineE" id="batteryInWattWrap">
			<label class="des desA">{%label.batteryInWatt%}</label>
			<label class="des desG deepen" id="batteryInWatt"></label>
		</li>
	</ul>
</div>
<script type="text/javascript">function init(){var c=UciBattery.fileName,d=UciBattery.secName.batteryInfo,f=UciBattery.optName,l=1==parseInt($.batteryCapability[UciBatteryCapability.optName.percentSupported])?!0:!1,m=1==parseInt($.batteryCapability[UciBatteryCapability.optName.statusSupported])?!0:!1,n=1==parseInt($.batteryCapability[UciBatteryCapability.optName.inputWattSupported])?!0:!1,p=1==parseInt($.batteryCapability[UciBatteryCapability.optName.insertStatusSupported])?!0:!1,h=parseInt($.batteryCapability[UciBatteryCapability.optName.batteryNum]),
k=[label.DCSource,label.solarBattery,label.LiBattery,label.alkalineBattery,label.LiFeBattery,label.NiMhBattery],q=[label.batteryIdle,label.batteryCharging,label.batteryCharged,label.batterySmartTemp,label.batteryLowTemp,label.batteryLowTemp,label.batteryHighTemp,label.batteryHighTemp];(function(){var g={};g[c]={};g[c][NAME]=[d];$.query(g,function(e){var a;a:{switch(parseInt(e[ERR_CODE])){case ENONE:a=!0;break a;case IPCUMGUESTNAUTH:showStr=errStr.invPermissionDenied;break;default:showStr=errStr.invRequestFail}closeToast();
showAlert(showStr,void 0);a=!1}if(!0==a){var b=!0;if(p)for(b=!1,a=0;a<h;a++)if(1==e[c][d][f.insertStatus]){b=!0;break}if(b){$("#batteryType").text(k[parseInt(e[c][d][f.type])]);if(l){var b="",g=e[c][d][f.percent];for(a=0;a<h;a++)0!=a&&(b+=" / "),b=b+g[a].toString()+label.percent;$("#batteryPercent").text(b)}else $("#batteryPercentWrap").hide();m?$("#batteryStatus").text(q[parseInt(e[c][d][f.status])]):$("#batteryStatusWrap").hide();n?$("#batteryInWatt").text(e[c][d][f.inputWatt]+label.batteryWattUnit):
$("#batteryInWattWrap").hide()}else $("#batteryType").text(k[0]),$("#batteryPercentWrap").hide(),$("#batteryStatusWrap").hide(),$("#batteryInWattWrap").hide();showDetailCon()}})})()}init();
</script>