<body docProcLang="JavaLikeCalc.JavaScript">
<h1>Protocol of interruptions <?dp return tr("Protocol of interruptions"); ?></h1>
<TABLE border="1" cellpadding="2" cellspacing="0" width="100%" class="data">
  <TR><TH colspan="7" align="left">User interruptions at <?dp return tr("User interruptions at %1").replace("%1",SYS.strftime(bTime)+" — "+SYS.strftime(time));?></TH></TR>
  <TR>
	<TH>Date</TH><TH>Time</TH><TH>User</TH><TH>Source</TH><TH>Description</TH><TH>Old value</TH><TH>New value</TH>
     <?dp return "<TH>"+tr("Date")+"</TH><TH>"+tr("Time")+"</TH><TH>"+tr("User")+"</TH><TH>"+tr("Source")+"</TH><TH>"+tr("Description")+"</TH><TH>"+tr("Old value")+"</TH><TH>"+tr("New value")+"</TH>"; ?>
  </TR>
  <TR docAMess="@@messCat@@" docRevers="1">
	<?dp
		user = "";
		if((tVl=mCat.match("^OP:([^:]*):")).length || (tVl=mCat.match("^OP[^:]+:[^:]+:(.*)")).length || (tVl=mCat.match("(.*):OP[^:]+:[^:]+:(.*)")).length)
			user = tVl[(tVl.length>=3)?2:1];

		srcO = tVl; tVl = "";
		//From remote station
		if(srcO.length >= 3)
			for(off2 = 0, isFirst = true; (tVl2=srcO[1].parse(0,":",off2)).length; tVl += (tVl.length?".":"")+tVl2, isFirst = false) {
			if(!isFirst)	continue;
			if(!sourceCache[tVl2].isEVal())	tVl2 = sourceCache[tVl2];
			else {
				req = SYS.XMLNode("get").setAttr("path","/Transport/%2fsub%2fehost").setAttr("upRiseSYS",1);
				SYS.cntrReq(req);
				for(iTr = 0; req.childSize() && iTr < req.childGet(0).childSize(); iTr++)
					if(req.childGet(0).childGet(iTr).text() == tVl2) {
						tVl2 = sourceCache[tVl2] = req.childGet(1).childGet(iTr).text();
						break;
					}
			}
		}

		return "<TD>"+SYS.strftime(mTime,"%d %m")+"</TD>"+
			"<TD>"+SYS.strftime(mTime,"%H:%M:%S")+"</TD>"+
			"<TD>"+Special.FLibSYS.strEnc2HTML(user)+"</TD>"+
			"<TD>"+Special.FLibSYS.strEnc2HTML((tVl.length?tVl+" > ":"")+mVal.parse(0, ":"))+"</TD>"+
			"<TD>"+Special.FLibSYS.strEnc2HTML(mVal.parse(1,":"))+"</TD>"+
			"<TD>"+Special.FLibSYS.strEnc2HTML(mVal.parse(2,":"))+"</TD>"+
			"<TD>"+Special.FLibSYS.strEnc2HTML(mVal.parse(3,":"))+"</TD>";
	?>
  </TR>
</TABLE>
</body>