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

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