home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / ims.cab / smsesls.asp < prev    next >
Text File  |  1997-10-12  |  2KB  |  86 lines

  1. <% Response.Expires = 0 %>
  2.  
  3. <%
  4. REM LOCALIZATION
  5.  
  6. L_MENUTITLE_TEXT = "Microsoft SMTP Server Administration"
  7. L_SECONDS_TEXT    = "seconds"
  8.  
  9.  
  10. REM END LOCALIZATION
  11. %>
  12.  
  13. <% svr = Session("svr") %>
  14.  
  15. <!--#include file="_cnst.asp" -->
  16.  
  17. <% if (cont = true) then %>
  18.  
  19. <HTML>
  20. <HEAD>
  21. <TITLE><% = L_MENUTITLE_TEXT %></TITLE>
  22. </HEAD>
  23. <BODY BGCOLOR="#CCCCCC" TOPMARGIN=10 TEXT="#000000" LINK="#B90000" VLINK="#B90000" ALINK="#B90000">
  24.  
  25. <TABLE cellpadding=2 cellspacing=0 BORDER="0" WIDTH="425">
  26. <% REM New List enumeration using document.write's and list data cached in javascript array in head frame %>
  27. <script language = "javascript">
  28.  
  29. i = parseInt(parent.head.uForm.startNum) - 1;
  30. numSessions = parseInt(parent.head.uForm.numSessions);
  31. startNum = parseInt(parent.head.uForm.startNum);
  32. SessionsPerPage = parseInt(parent.head.uForm.SessionsPerPage);
  33.  
  34. // old loop for ( i = 0; i < parent.head.uForm.numSessions; i++ )
  35.  
  36. while(   (i < numSessions) && ( i < (startNum + SessionsPerPage - 1) )   )
  37. {
  38.     if( i == parent.head.uForm.selectedItem)
  39.     {
  40.         itemColor = '#F1F1F1';
  41.         itemLink = '<A HREF="javascript:parent.head.uForm.disconnectUser()">';
  42.     }
  43.     else
  44.     {
  45.         itemColor = '#CCCCCC' ;
  46.         itemLink = '<A HREF="javascript:parent.head.uForm.selectItem(' + i + ')">';
  47.     }        
  48.     itemText = parent.head.uForm.itemList[i].username;
  49.     if( itemText == "")
  50.     {
  51.         itemText = "unknown";
  52.     }
  53.     itemFrom = parent.head.uForm.itemList[i].Host;
  54.     itemTime = parent.head.uForm.itemList[i].StartTime;
  55.  
  56.     
  57.     listEntry = '<tr><td width="25"> </td>' + 
  58.                 '<td bgcolor=' + itemColor + ' ALIGN="left" WIDTH=125><FONT SIZE=2 FACE="Arial"><A NAME="' + 
  59.                 i + '">' + itemLink + itemText + '</font></a><br></td>' +
  60.                 '<td bgcolor=' + itemColor + ' ALIGN="left" WIDTH=125><FONT SIZE=2 FACE="Arial">' + itemFrom + '</font></a><br></td>' +
  61.                 '<td bgcolor=' + itemColor + ' ALIGN="left" WIDTH=150><FONT SIZE=2 FACE="Arial">' + parseInt((itemTime/1000), 10) + ' <% = L_SECONDS_TEXT %></font></a><br></td>' +
  62.                 '</tr>';
  63.     
  64.     document.writeln( listEntry );
  65.     i++
  66. }
  67. </script>
  68. <tr>
  69.     <td width="25">
  70.      
  71.     </td>
  72.     <td width="125">
  73.      
  74.     </td>
  75.     <td width="125">
  76.      
  77.     </td>
  78.     <td width="150">
  79.      
  80.     </td>
  81. </tr>
  82. </TABLE>
  83. </BODY>
  84. </HTML>
  85.  
  86. <% end if %>