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

  1. <% Response.Expires = 0 %>
  2.  
  3. <%
  4. REM LOCALIZATION
  5.  
  6. L_PAGE_TITLETXT = "NS Administration"
  7. L_FEATURE_NYITXT = "This feature is not yet implemented."
  8. L_DISCONNECT_USERS = "Are you sure you want to disconnect all users?"
  9. L_ADDTXT = "Add..."
  10. L_REMOVETXT ="Remove"
  11. L_EDITTXT = "Edit Properties..."
  12. L_EDIT_TYPE_TXT = "Edit Feed Type..."
  13. L_PREVIOUSTXT = "Previous"
  14. L_NEXTTXT = "Next"
  15. L_DISCONNECTTXT = "Disconnect"
  16. L_DISCONNECTALLTXT = "Disconnect All"
  17. L_REFRESHTXT = "Refresh"
  18. L_SAVETXT = "Save"
  19. L_RESETTXT = "Reset"
  20.  
  21. REM END LOCALIZATION
  22. %>
  23.  
  24. <% pg = Request("pg") %>
  25. <% svr = Request("svr") %>
  26.  
  27. <HTML>
  28. <HEAD>
  29. <TITLE><% = L_PAGE_TITLETXT %></TITLE>
  30.  
  31. <SCRIPT LANGUAGE="javascript">
  32. <% if ( pg = "nnexppl" ) then %>
  33.  
  34.     function saveValues()
  35.     {
  36.         parent.main.uForm.checkPolicy();
  37.         parent.menu.document.hiddenform.updated.value="false";
  38.         parent.menu.document.hiddenform.submit();
  39.     }
  40. <% elseif (pg = "nnvs") then %>
  41.     function saveValues()
  42.     {
  43.         if(parent.main.userform.txtDirectory.value == "\\\\{server}\\{share}")
  44.         {
  45.             alert("A network directory must be specified");
  46.         }
  47.         else
  48.         {
  49.             hform = parent.menu.document.hiddenform;
  50.             uform = document.userform;
  51.             if (hform.updated.value == "true")
  52.             {
  53.                 parent.main.uForm.writeForm();
  54.                 hform.save.value="apply";
  55.                 hform.updated.value = "false";
  56.                 parent.menu.document.forms[0].submit();
  57.             }
  58.         }
  59.     }
  60. <% else %>
  61.     function saveValues()
  62.     {
  63.         hform = parent.menu.document.hiddenform;
  64.         uform = document.userform;
  65.         if (hform.updated.value == "true")
  66.         {
  67.             if (hform.pg.value == "nnadv")
  68.             {
  69.                 parent.main.body.uForm.writeForm();                    
  70.             }
  71.             else
  72.             {
  73.                 parent.main.uForm.writeForm();
  74.             }
  75.             hform.save.value="apply";
  76.             hform.updated.value = "false";
  77.             parent.menu.document.forms[0].submit();
  78.         }
  79.     }
  80. <% end if %>
  81.  
  82.     function resetValues()
  83.         {
  84.         hform = parent.menu.document.hiddenform;
  85.         uform = document.userform;
  86.         if (hform.updated.value == "true")
  87.             {
  88.             hform.updated.value = "false";
  89.             if ((hform.pg.value == "nnlog"))
  90.             {
  91.                 parent.main.location = "nnlog.asp?svr=<% = svr %>&lgt=" + hform.rdoLogType.value;
  92.             }
  93.             else
  94.             {
  95.                 if (hform.pg.value == "nnadv")
  96.                 {
  97.                     parent.main.body.uForm.readCache();
  98.                 }
  99.                 else
  100.                 {
  101.                     parent.main.readCache();
  102.                 }
  103.             }
  104.         }
  105.     }
  106.  
  107.     function addItem()
  108.     {
  109.         top.main.head.uForm.addItem();
  110.     }
  111.  
  112.     function editItem()
  113.     {
  114.         top.main.head.uForm.editItem();
  115.     }
  116.  
  117.     function removeItem()
  118.     {
  119.         top.main.head.uForm.removeItem();
  120.     }
  121.  
  122.     <% if ((pg = "nnses") OR (pg = "nngrp")) then %>
  123.     function next()
  124.     {
  125.         top.main.head.uForm.next();
  126.     }
  127.     
  128.     function previous()
  129.     {
  130.         top.main.head.uForm.previous();
  131.     }
  132.     
  133.     function refresh()
  134.     {
  135.         top.main.head.uForm.refresh();
  136.     }
  137.     
  138.     <% end if %>
  139.  
  140.     <% if (pg = "nnf") then %>
  141.  
  142.     function editType()
  143.     {
  144.         top.main.head.uForm.editType();
  145.     }
  146.  
  147.     <% end if %>
  148.  
  149.     <% if ((pg = "nnses") OR (pg = "nngrp")) then %>
  150.  
  151.     function onUpdateList(nDirection)
  152.     {
  153.     
  154.     <% if (pg = "nnses") then %>
  155.  
  156.         var oldvalue = parseInt(parent.menu.document.hiddenform.nSessionListStart.value);
  157.         var newvalue = nDirection * 10 + oldvalue;
  158.         if ( nDirection == 0 ) {
  159.             newvalue = 0;
  160.         }
  161.         parent.menu.document.hiddenform.nSessionListStart.value = newvalue;
  162.         parent.main.head.location = "nnseshd.asp?svr=<% = svr %>&start=" + newvalue;
  163.  
  164.     <% elseif (pg = "nngrp") then %>
  165.  
  166.         var oldvalue = parseInt(parent.menu.document.hiddenform.nNewsgroupListStart.value);
  167.         //alert( 'old value is ' + oldvalue );
  168.         var newvalue = nDirection * oldvalue - 1;
  169.         if ( nDirection == 0 ) {
  170.             newvalue = 0;
  171.         }
  172.         parent.menu.document.hiddenform.nNewsgroupListStart.value = newvalue;
  173.         findvalue = top.menu.document.hiddenform.txtFindNewsgroup.value;
  174.         parent.main.head.location = "nngrphd.asp?svr=<% = svr %>&startNum=" + newvalue+"&Find=" + findvalue;
  175.  
  176.     <% else %>
  177.  
  178.         alert("<% = L_FEATURE_NYITXT %>");    
  179.  
  180.     <% end if %>
  181.  
  182.     }
  183.     
  184.     <% end if %>
  185.  
  186.     <% if (pg = "nnses") then %>
  187.  
  188.     function disconnectAll()
  189.     {
  190.         top.main.head.uForm.disconnectAll();
  191.     }
  192.  
  193.     function disconnectUser()
  194.     {
  195.         top.main.head.uForm.disconnectUser();
  196.     }
  197.  
  198.     <% end if %>
  199.  
  200. </SCRIPT>
  201.  
  202. </HEAD>
  203.  
  204. <BODY BGCOLOR="#555555" LINK="#FFFFFF" ALINK="#FFFFFF" VLINK="#FFFFFF">
  205.  
  206. <% if (pg = "nnses") then %>
  207.  
  208. <TABLE border="0" VALIGN="top" ALIGN="left" CELLPADDING=1 CELLSPACING=1>
  209.  
  210.     <TR>    
  211.         <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  212.  
  213.         <TR>
  214.                 
  215.             <TD VALIGN="middle">
  216.                 <FONT FACE="Arial" SIZE=2>
  217.                 <B><A HREF="javascript:disconnectUser();">
  218.                 <IMG SRC="images/gnicdsal.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_DISCONNECTTXT %>"></A>
  219.                 <A HREF="javascript:disconnectUser();">
  220.                 <% = L_DISCONNECTTXT %></A></B>
  221.                 </FONT>
  222.             </TD>    
  223.  
  224.         </TR>
  225.         
  226.     </TABLE></TD>
  227.  
  228.     <TD><FONT SIZE=4 COLOR="#FFFFFF">|</TD>
  229.  
  230.         <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  231.  
  232.         <TR>
  233.                 
  234.             <TD VALIGN="middle">
  235.                 <FONT FACE="Arial" SIZE=2>
  236.                 <B><A HREF="javascript:disconnectAll();">
  237.                 <IMG SRC="images/gnicdsal.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_DISCONNECTALLTXT %>"></A>
  238.                 <A HREF="javascript:disconnectAll();">
  239.                 <% = L_DISCONNECTALLTXT %></A></B>
  240.                 </FONT>
  241.             </TD>    
  242.  
  243.         </TR>
  244.         
  245.     </TABLE></TD>
  246.  
  247.     </TR>
  248.  
  249. </TABLE>
  250.  
  251.  
  252. <% end if %>
  253.  
  254.  
  255. <% if ( (pg = "nnf") OR (pg = "nndir") OR (pg = "nnadv") OR (pg = "nngrp") OR (pg = "nnexp") ) then %>
  256.  
  257. <TABLE VALIGN="top" ALIGN="left" CELLPADDING=1 CELLSPACING=1>
  258.  
  259.     <TR>
  260.  
  261.     <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  262.  
  263.         <TR>
  264.                 
  265.             <TD VALIGN="middle">
  266.                 <FONT FACE="Arial" SIZE=2>
  267.                 <B><A HREF="javascript:addItem();">
  268.                 <IMG SRC="images/gnicnew.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_ADDTXT %>"></A>
  269.                 <A HREF="javascript:addItem();">
  270.                 <% = L_ADDTXT %></A></B>
  271.                 </FONT>
  272.             </TD>    
  273.  
  274.         </TR>
  275.         
  276.     </TABLE></TD>
  277.  
  278.     <TD><FONT SIZE=4 COLOR="#FFFFFF">|</TD>
  279.  
  280.     <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  281.  
  282.         <TR>
  283.                 
  284.             <TD VALIGN="middle">
  285.                 <FONT FACE="Arial" SIZE=2>
  286.                 <B><A HREF="javascript:removeItem();">
  287.                 <IMG SRC="images/gnicremv.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_REMOVETXT %>"></A>
  288.                 <A HREF="javascript:removeItem();">
  289.                 <% = L_REMOVETXT %></A></B>
  290.                 </FONT>
  291.             </TD>    
  292.  
  293.         </TR>
  294.         
  295.     </TABLE></TD>
  296.  
  297.     <TD><FONT SIZE=4 COLOR="#FFFFFF">|</TD>
  298.  
  299.     <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  300.  
  301.         <TR>
  302.                 
  303.             <TD VALIGN="middle">
  304.                 <FONT FACE="Arial" SIZE=2>
  305.                 <B><A HREF="javascript:editItem();">
  306.                 <IMG SRC="images/gnicedit.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_EDITTXT %>"></A>
  307.                 <A HREF="javascript:editItem();">
  308.                 <% = L_EDITTXT %></A></B>
  309.                 </FONT>
  310.             </TD>    
  311.  
  312.         </TR>
  313.         
  314.     </TABLE></TD>
  315.  
  316.     <% if (pg = "nnf") then %>
  317.     
  318.     <TD><FONT SIZE=4 COLOR="#FFFFFF">|</TD>
  319.  
  320.     <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  321.  
  322.         <TR>
  323.                 
  324.             <TD VALIGN="middle">
  325.                 <FONT FACE="Arial" SIZE=2>
  326.                 <B><A HREF="javascript:editType();">
  327.                 <IMG SRC="images/gnicedit.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_EDIT_TYPE_TXT %>"></A>
  328.                 <A HREF="javascript:editType();">
  329.                 <% = L_EDIT_TYPE_TXT %></A></B>
  330.                 </FONT>
  331.             </TD>    
  332.  
  333.         </TR>
  334.         
  335.     </TABLE></TD>
  336.     
  337.     <% end if %>
  338.  
  339.     </TR>
  340.  
  341. </TABLE>
  342.  
  343. <% end if %>
  344.  
  345. <% if (pg = "nnexpg") then %>
  346.  
  347. <TABLE VALIGN="top" ALIGN="left" CELLPADDING=1 CELLSPACING=1>
  348.  
  349.     <TR>
  350.     
  351.     <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  352.  
  353.         <TR>
  354.                 
  355.             <TD VALIGN="middle">
  356.                 <FONT FACE="Arial" SIZE=2>
  357.                 <B><A HREF="javascript:removeItem();">
  358.                 <IMG SRC="images/gnicremv.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_REMOVETXT %>"></A>
  359.                 <A HREF="javascript:removeItem();">
  360.                 <% = L_REMOVETXT %></A></B>
  361.                 </FONT>
  362.             </TD>    
  363.  
  364.         </TR>
  365.         
  366.     </TABLE></TD>
  367.  
  368.     </TR>
  369.  
  370. </TABLE>
  371.  
  372. <% end if %>
  373.  
  374. <TABLE VALIGN="top" ALIGN="right" CELLPADDING=1 CELLSPACING=1>
  375.  
  376.     <% if ((pg = "nnses") OR (pg = "nngrp")) then %>
  377.  
  378.     <TR>
  379.  
  380.     <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  381.  
  382.         <TR>
  383.                 
  384.             <TD VALIGN="middle">
  385.                 <FONT FACE="Arial" SIZE=2>
  386.                 <% if ((pg = "nnses") OR (pg = "nngrp")) then %>
  387.                     <b><a href="javascript:previous();">
  388.                 <% else %>
  389.                     <B><A HREF="javascript:onUpdateList(-1);">
  390.                 <% end if %>
  391.                 <IMG SRC="images/gnicprev.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_PREVIOUSTXT %>"></A>
  392.                 <% if ((pg = "nnses") OR (pg = "nngrp")) then %>
  393.                     <b><a href="javascript:previous();">
  394.                 <% else %>
  395.                 <A HREF="javascript:onUpdateList(-1);">
  396.                 <% end if %>
  397.                 <% = L_PREVIOUSTXT %></A></B>
  398.                 </FONT>
  399.             </TD>    
  400.  
  401.         </TR>
  402.         
  403.     </TABLE></TD>
  404.  
  405.     <TD><FONT SIZE=4 COLOR="#FFFFFF">|</TD>
  406.  
  407.     <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  408.  
  409.         <TR>
  410.                 
  411.             <TD VALIGN="middle">
  412.                 <FONT FACE="Arial" SIZE=2>
  413.                 <% if ((pg = "nnses") OR (pg = "nngrp")) then %>
  414.                     <b><a href="javascript:next();">
  415.                 <% else %>
  416.                     <B><A HREF="javascript:onUpdateList(1);">
  417.                 <% end if %>
  418.                 <IMG SRC="images/gnicnext.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_NEXTTXT %>"></A>
  419.                 <% if ((pg = "nnses") OR (pg = "nngrp")) then %>
  420.                     <b><a href="javascript:next();">
  421.                 <% else %>
  422.                 <A HREF="javascript:onUpdateList(1);">
  423.                 <% end if %>
  424.                 <% = L_NEXTTXT %></A></B>
  425.                 </FONT>
  426.             </TD>    
  427.  
  428.         </TR>
  429.         
  430.     </TABLE></TD>
  431.  
  432.     <TD><FONT SIZE=4 COLOR="#FFFFFF">|</TD>
  433.  
  434.     <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  435.  
  436.         <TR>
  437.                 
  438.             <TD VALIGN="middle">
  439.                 <FONT FACE="Arial" SIZE=2>
  440.                 <% if ((pg = "nnses") OR (pg = "nngrp")) then %>
  441.                     <b><a href="javascript:refresh();">
  442.                 <% else %>
  443.                     <b><A HREF="javascript:onUpdateList(0);">
  444.                 <% end if %>
  445.                 <IMG SRC="images/gnicrefr.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_REFRESHTXT %>"></A>
  446.                 <% if ((pg = "nnses") OR (pg = "nngrp")) then %>
  447.                     <b><a href="javascript:refresh();">
  448.                 <% else %>
  449.                     <A HREF="javascript:onUpdateList(0);">
  450.                 <% end if %>
  451.                 <% = L_REFRESHTXT %></A></B>
  452.                 </FONT>
  453.             </TD>    
  454.  
  455.         </TR>
  456.         
  457.     </TABLE>
  458.  
  459.     </TD>
  460.  
  461.     <% end if %>
  462.  
  463.     <% if ((pg = "nnsec") OR (pg = "nnser") OR (pg = "nngen") OR (pg = "nnlog") OR (pg = "nnadv") OR (pg = "nnexppl") OR (pg = "nnvs")) then %>
  464.  
  465.     <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  466.  
  467.         <TR>
  468.                 
  469.             <TD VALIGN="middle">
  470.                 <FONT FACE="Arial" SIZE=2>
  471.                 <B><A HREF="javascript:saveValues();">
  472.                 <IMG SRC="images/gnicsave.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_SAVETXT %>"></A>
  473.                 <A HREF="javascript:saveValues();"><% = L_SAVETXT %></A></B>
  474.                 </FONT>
  475.             </TD>    
  476.  
  477.  
  478.         </TR>
  479.         
  480.     </TABLE></TD>
  481.  
  482.     <TD><FONT SIZE=4 COLOR="#FFFFFF">|</TD>
  483.  
  484.     <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#555555">
  485.  
  486.         <TR>
  487.                 
  488.             <TD VALIGN="middle">
  489.                 <FONT FACE="Arial" SIZE=2>
  490.                 <B><A HREF="javascript:resetValues();">
  491.                 <IMG SRC="images/gnicroll.gif" ALIGN="top" BORDER=0 HEIGHT=16 WIDTH=16 ALT="<% = L_RESETTXT %>"></A>
  492.                 <A HREF="javascript:resetValues();"><% = L_RESETTXT %></A></B>
  493.                 </FONT>
  494.             </TD>    
  495.  
  496.  
  497.         </TR>
  498.         
  499.     </TABLE></TD>
  500.     
  501.     <% end if %>
  502.     
  503.     </TR>
  504.  
  505. </TABLE>
  506.  
  507. <FORM NAME="hiddenform">
  508.  
  509. <INPUT TYPE="hidden" NAME="pg" VALUE="<% = pg %>">
  510.  
  511. </FORM>
  512.  
  513. </BODY>
  514. </HTML>
  515.  
  516.