<body docProcLang="JavaLikeCalc.JavaScript">
<center>
<h1>Instantaneous values of ""</h1>
<?dp return "<h1>"+tr("Instantaneous values of \"%1\"").replace("%1",title)+"</h1><span>"+SYS.strftime(time)+"</span>";?>
</center>

<div width="100%"><div style="margin-left: auto; margin-right: auto; text-align: center; width: fit-content;">
	<?dp if(!enGraph) return "";
		for(iP = 0, srcs = ""; iP < params.length; iP++)
			if(!params[iP].min.isEVal() && !params[iP].max.isEVal())
				srcs += params[iP].var+":"+params[iP].min+":"+params[iP].max+":"+params[iP].color+":0:2\n";
		return srcs.length ? DAQ.JavaLikeCalc.lib_doc.diagram(time, time-bTime, srcs, 800, 300) : "";
	?>
</div></div>
<br/>

<TABLE border="1" cellpadding="2" cellspacing="0" width="100%" class="data" export="1">
  <TR>
	<TH>Date</TH><TH>Time</TH><TH>Flow</TH><TH>Capacity</TH><TH>Pressure</TH><TH>Temperatura</TH><TH>Pressure diff.</TH>
	<?dp
		rez = "<TH>"+tr("Date")+"</TH><TH>"+tr("Time")+"</TH>";
		for(iP = 0; iP < params.length; iP++)
			rez += "<TH style='color: "+(enGraph?params[iP].color:"black")+";'>"+SYS.strEncode(params[iP].name, "HTML")+"</TH>";
		return rez; ?>
  </TR>
  <TR>
	<TH colspan="2">&nbsp;</TH><TH>m3/h</TH><TH>m3</TH><TH>kgF/cm2</TH><TH>grad.C</TH><TH>kgF/cm2</TH>
	<?dp
		rez = "<TH colspan='2'>&nbsp;</TH>";
		for(iP = 0; iP < params.length; iP++) {
			pO = params[iP];
			rez += "<TH>"+((enGraph && pO.min < pO.max)?"["+pO.min+"..."+pO.max+"] ":"")+SYS.strEncode(pO.ed, "HTML")+"</TH>";
		}
		return rez; ?>
  </TR>
  <TR docRept="@@valPer@@" docRevers="1">
	<?dp 
		rez = "<TD style='text-align: center;'>"+SYS.strftime(rTime,"%d %m %Y")+"</TD><TD  style='text-align: center;'>"+SYS.strftime(rTime,"%H:%M:%S")+"</TD>";
		for(iP = 0; iP < params.length; iP++)
			rez += "<TD  style='text-align: center;'>"+DAQ.JavaLikeCalc.lib_doc.getVal(params[iP].var, rTime, 0, params[iP].prec,"",true)+"</TD>";
		return rez; ?>
  </TR>
</TABLE>
</body>