home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 9 / IOPROG_9.ISO / contrib / iis4 / ins.cab / nnsesls.asp < prev    next >
Encoding:
Text File  |  1997-08-16  |  2.1 KB  |  84 lines

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