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

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