<html>
<head>
<title>Real-time Monitor</title>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--base href="$$BASE_URL$$"-->
<link href="css/trend-style-new.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="javascripts/localization.js"></script>
<script language="JavaScript" src="javascripts/trend-ui-new.js"></script>
<script language="JavaScript" src="javascripts/OLH_Mapping.js"></script>
<script language="JavaScript" src="javascripts/prototype.js"></script>
<script language="JavaScript" src="javascripts/Server_Role_Dependency.js"></script>
<script language="JavaScript" src="cgiDispatcher.exe?Page=administration/ServerRoleInfo.htm"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
var nMaxItem = 100;
var bInitPage = false;
var sRefreshUrl = "$$ID_PAGE_SCANMONITOR_CGI_URL$$";
var hiAntiSpam = $$ID_PR_ANTI_SPAM_HIDE$$;
var hiERS = $$ID_PR_ERS_HIDE$$;
var hiDLP = $$ID_PR_DLP_HIDE$$;

function jsInitPage() {
	// Init Page
	if($$ID_PR_CONTENT_FILTERING_HIDE$$) {
		document.getElementById("prContentFilterNum").style.display="none";
	}
	if(hiAntiSpam) {
		document.getElementById("prAntiSpamPattern").style.display="none";
		document.getElementById("prAntiSpamNum").style.display="none";
	}
	if(hiERS) {
		document.getElementById("prERSNum").style.display="none";
	}
	if(hiDLP){
		document.getElementById("prDLPNum").style.display="none";
	}
	setTimeout("jsState()", 1000);
	bInitPage = true;
	
	//set UI dependency
	jsServerRoleDependency("summary/Scanmonitor.htm");
}
function jsState() {
	try {
		if (window.ifmUpdate.document && bInitPage)
			window.ifmUpdate.location.href = sRefreshUrl; //window.ifmUpdate.location.reload();//window.ifmUpdate.jsSubmit();
		window.setTimeout("jsState()", 60*1000);
	} catch (e) {
		window.alert(STR_ERR_REFRESH_FAILURE);
		window.close();
	}
}
function jsClearMessage(nNum) {
	for (var i=document.getElementById("tabMessage").rows.length;i>0;i--) {
		deleteTableRowByIndex(document.getElementById("tabMessage"),i-1);
	}
}
function jsResetCount() {
//	document.fmMain.action = "$$ID_PAGE_RESET_COUNT$$"
	document.fmMain.btnResetCount.disabled = true;
	document.fmMain.id_reset_count.value = "1";
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}
function jsAddMessage(sMessage) {
	if (document.getElementById("tabMessage").rows.length == nMaxItem) {
		deleteTableRowByIndex(document.getElementById("tabMessage"),document.getElementById("tabMessage").rows.length-1);
	}	
	insertTableRow(document.getElementById("tabMessage"),sMessage,"",0);
	var sClass = "data1";
	if (document.getElementById("tabMessage").rows[1]!=null && document.getElementById("tabMessage").rows[1].cells[0].className==sClass)
		sClass = "data2";
	document.getElementById("tabMessage").rows[0].cells[0].className = sClass;
	document.getElementById("tabMessage").rows[0].cells[0].height = 20;
}
//-->
</script>
</head>

<body onload="jsInitPage();">
<iframe id="ifmUpdate" name="ifmUpdate" src="../PortalProtect/html/UntitledFrame-1.htm" frameBorder="0" style="width:0;height:0"></iframe>
<form id="fmMain" name="fmMain" action="$$FORM_ACTION$$" method="POST">
<!--Hidden Field-->
<input type=hidden id="id_reset_count" name=id_reset_count value="">
<!--/Hidden Field-->

<!--Page Title-->
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="content-title">Real-time Monitor</td>
	<td valign="bottom" align="right">
		<a href="javascript:jsMapOnlineHelp('summary\Scanmonitor.htm');" class="moretestblue">
		<img src="images/question.gif" class="vAlignMid"> Help</a></td></tr>
<tr><td colspan="2" height="4"></td></tr>
<tr><td colspan="2" height="1" background="images/dot.gif"></td></tr>
<tr><td colspan="2" height="10"></td></tr>
</table>
<!--/Page Title-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="popupbox">
<!--Page Description--><!--/Page Description-->
<!--Page Content-->

<tr><td>
Note: The PortalProtect main console will not time-out while the Real-time monitor is active.<br>
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="border">
		<tr><td colspan="2"><table width="100%" border="0" cellpadding="1" cellspacing="2">
				<tr><td width="26%">Server name:</td>
					<td colspan="3"><b><font id="labSERVER_NAME"></font></b></td></tr>
				<tr><td>Smart Scan Agent Pattern:</td>
					<td colspan="3"><b><font id="labSMARTSCANAGENT_PATTERN"></font></b></td></tr>
				<tr><td width="20%" nowrap>Virus pattern:</td>
					<td width="30%" nowrap><b><font id="labVIRUS_PATTERN"></font></b></td>
					<td width="20%" nowrap>Virus scan engine:</td>
					<td width="30%" nowrap><b><font id="labSCAN_ENGINE"></font></b></td></tr>
				<tr><td width="20%" nowrap>IntelliTrap pattern:</td>
					<td width="30%" nowrap><b><font id="labTMBLACK_PATTERN"></font></b></td>
					<td width="20%" nowrap>IntelliTrap exception pattern:</td>
					<td width="30%" nowrap><b><font id="labTMWHITE_PATTERN"></font></b></td></tr>
				<tr><td width="20%" nowrap>Spyware pattern:</td>
					<td width="30%" nowrap><b><font id="labSPYWARE_PATTERN"></font></b></td>
					<td width="20%" nowrap></td>
					<td width="30%" nowrap><b><font id="labSPYWARE_ENGINE"></font></b></td></tr>
                <tr><td width="20%" nowrap>URL filtering engine:</td>
					<td width="30%" nowrap><b><font id="labURLFLT_ENGINE"></font></b></td>
					<td width="20%" nowrap></td>
					<td width="30%" nowrap><b></b></td></tr>
				<tr id="prAntiSpamPattern"><td>Spam pattern:</td>
					<td><b><font id="labSPAM_PATTERN"></font></b></td>
					<td>Spam engine:</td>
					<td><b><font id="labSPAM_ENGINE"></font></b></td></tr>
				<tr><td colspan="4">Real-time scan has been running since: <font id="labRunningSince"></font></td></tr>
				</table></td></tr>
		<tr><td class="tableheadergreyM">Scanning Status</td>
			<td class="tableheadergreyM" align="right">
				<font style="font-weight:normal">Last Reset time: <font id="labLastResetTime"></font></font>&nbsp;
				<input type=button class="text" id="btnResetCount" value="Reset Count" onclick="jsResetCount();" style="font-weight:normal"></td></tr>
		<tr><td colspan="2"><table width="100%" border="0" cellpadding="1" cellspacing="2">
				<tr><td width="20%" nowrap>Files and Web content scanned:</td>
					<td width="30%"  nowrap><b><font id="labNUM_MESSAGE"></font></b></td></tr>
				<tr><td nowrap>Virus/Malware found:</td>
					<td nowrap><b><font id="labNUM_VIRUS"></font></b></td></tr>
				<tr><td nowrap>Spyware/Grayware found:</td>
					<td nowrap><b><font id="labNUM_SPYWARE"></font></b></td></tr>
				<tr><td nowrap>Uncleanable viruses:</td>
					<td nowrap><b><font id="labNUM_VIRUS_UNCLEAN"></font></b></td></tr>				
				<tr><td nowrap>File Blocking violation:</td>
					<td nowrap><b><font id="labNUM_ATTACHMENT"></font></b></td></tr>
                <tr><td nowrap>Content filtering violation:</td>
					<td nowrap><b><font id="labNUM_CFVLT"></font></b></td></tr>  
                 <tr><td nowrap>Detected suspicious URLs - Web Reputation:</td>
					<td nowrap><b><font id="labNUM_SUSURLS"></font></b></td></tr>
				<tr id="prDLPNum"><td nowrap>Data loss prevention:</td>
					<td nowrap><b><font id="labNUM_DLP"></font></b></td></tr>			
				<tr id="prAntiSpamNum"><td>Spam messages:</td>
					<td ><b><font id="labNUM_SPAM"></font></b></td></tr>
				<tr id="prERSNum"><td>Blocked connections by Email Reputation:</td>
					<td ><b><font id="labNUM_ERS"></font></b></td></tr>
				<tr id="prContentFilterNum" style="display:none"><td>Content filtering detections:</td>
					<td ><b><font id="labNUM_CONTENT"></font></b></td></tr>
				</table></td></tr>
		<tr><td class="tableheadergreyM">Scanned Contents</td>
			<td class="tableheadergreyM" align="right">
				<input type=button class="text" id="btnClearMessage" value="Clear Content" onclick="jsClearMessage(0);" style="font-weight:normal"></td></tr>
		<tr><td colspan="2">
				<div border="1" style="overflow:auto;width:100%;height:150">
				<table width="100%" border="0" cellpadding="1" cellspacing="0" id="tabMessage"></table>
				</div></td></tr>
		</table></td></tr>
<!--/Page Content-->
<tr><td><input type="button" onclick="window.close();" value="Close" class="text" /></td></tr>
</table>
</form>
</body>
</html>
