home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
ims.cab
/
smsesls.asp
< prev
next >
Wrap
Text File
|
1997-10-12
|
2KB
|
86 lines
<% Response.Expires = 0 %>
<%
REM LOCALIZATION
L_MENUTITLE_TEXT = "Microsoft SMTP Server Administration"
L_SECONDS_TEXT = "seconds"
REM END LOCALIZATION
%>
<% svr = Session("svr") %>
<!--#include file="_cnst.asp" -->
<% if (cont = true) then %>
<HTML>
<HEAD>
<TITLE><% = L_MENUTITLE_TEXT %></TITLE>
</HEAD>
<BODY BGCOLOR="#CCCCCC" TOPMARGIN=10 TEXT="#000000" LINK="#B90000" VLINK="#B90000" ALINK="#B90000">
<TABLE cellpadding=2 cellspacing=0 BORDER="0" WIDTH="425">
<% REM New List enumeration using document.write's and list data cached in javascript array in head frame %>
<script language = "javascript">
i = parseInt(parent.head.uForm.startNum) - 1;
numSessions = parseInt(parent.head.uForm.numSessions);
startNum = parseInt(parent.head.uForm.startNum);
SessionsPerPage = parseInt(parent.head.uForm.SessionsPerPage);
// old loop for ( i = 0; i < parent.head.uForm.numSessions; i++ )
while( (i < numSessions) && ( i < (startNum + SessionsPerPage - 1) ) )
{
if( i == parent.head.uForm.selectedItem)
{
itemColor = '#F1F1F1';
itemLink = '<A HREF="javascript:parent.head.uForm.disconnectUser()">';
}
else
{
itemColor = '#CCCCCC' ;
itemLink = '<A HREF="javascript:parent.head.uForm.selectItem(' + i + ')">';
}
itemText = parent.head.uForm.itemList[i].username;
if( itemText == "")
{
itemText = "unknown";
}
itemFrom = parent.head.uForm.itemList[i].Host;
itemTime = parent.head.uForm.itemList[i].StartTime;
listEntry = '<tr><td width="25"> </td>' +
'<td bgcolor=' + itemColor + ' ALIGN="left" WIDTH=125><FONT SIZE=2 FACE="Arial"><A NAME="' +
i + '">' + itemLink + itemText + '</font></a><br></td>' +
'<td bgcolor=' + itemColor + ' ALIGN="left" WIDTH=125><FONT SIZE=2 FACE="Arial">' + itemFrom + '</font></a><br></td>' +
'<td bgcolor=' + itemColor + ' ALIGN="left" WIDTH=150><FONT SIZE=2 FACE="Arial">' + parseInt((itemTime/1000), 10) + ' <% = L_SECONDS_TEXT %></font></a><br></td>' +
'</tr>';
document.writeln( listEntry );
i++
}
</script>
<tr>
<td width="25">
</td>
<td width="125">
</td>
<td width="125">
</td>
<td width="150">
</td>
</tr>
</TABLE>
</BODY>
</HTML>
<% end if %>