Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
3.8 KiB

  1. <%@ Language=VbScript%>
  2. <% Option Explicit %>
  3. <%
  4. '-------------------------------------------------------------------------
  5. ' Shutdown_area.asp : The main page which displays links to all the tasks
  6. ' related to shutdown
  7. '
  8. ' Copyright (c) Microsoft Corporation. All rights reserved.
  9. '
  10. ' Date Description
  11. ' 04-Jan-01 Creation Date
  12. ' 28-Mar-01 Modified Date
  13. '-------------------------------------------------------------------------
  14. %>
  15. <!-- #include virtual="/admin/inc_framework.asp" -->
  16. <!-- #include virtual="/admin/sh_tasks.asp" -->
  17. <!-- #include file="loc_Shutdown_msg.asp" -->
  18. <%
  19. '-------------------------------------------------------------------------
  20. ' Global Variables
  21. '-------------------------------------------------------------------------
  22. Dim rc ' to hold return code of page created
  23. Dim page ' to hold output page object when creating a page
  24. Dim aPageTitle(2)
  25. aPageTitle(0) = L_SHUTDOWN_TEXT
  26. aPageTitle(1) = ""
  27. ' Create Page
  28. Call SA_CreatePage( aPageTitle, "", PT_AREA, page )
  29. '
  30. ' Turnoff the automatic page indent attribute
  31. Call SA_SetPageAttribute(page, AUTO_INDENT, PAGEATTR_DISABLE)
  32. '
  33. ' Show the page
  34. Call SA_ShowPage( page )
  35. '-------------------------------------------------------------------------
  36. 'Function: OnInitPage()
  37. 'Description: Called to signal first time processing for this page.
  38. ' Use this method to do first time initialization tasks
  39. 'Input Variables: PageIn,EventArg
  40. 'Output Variables: PageIn,EventArg
  41. 'Returns: True/False
  42. 'Global Variables: None
  43. '-------------------------------------------------------------------------
  44. Public Function OnInitPage(ByRef PageIn, ByRef EventArg)
  45. OnInitPage = TRUE
  46. End Function
  47. '---------------------------------------------------------------------
  48. ' Function name: OnServeAreaPage
  49. ' Description: Called when the page needs to be served.
  50. ' Input Variables: PageIn, EventArg
  51. ' Output Variables: PageIn,EventArg
  52. ' Return Values: TRUE to indicate no problems occured. FALSE to indicate errors.
  53. ' Returning FALSE will cause the page to be abandoned.
  54. ' Global Variables: None
  55. 'Called when the page needs to be served. Use this method to serve content.
  56. '---------------------------------------------------------------------
  57. Public Function OnServeAreaPage(ByRef PageIn, ByRef EventArg)
  58. Dim strTabsParam ' to hold the tab parameter
  59. 'Serve client side script
  60. Call ServeCommonJavaScript()
  61. strTabsParam = "Tab1=" & GetTab1()
  62. If ( Len(Trim(GetTab2())) > 0 ) Then
  63. strTabsParam = strTabsParam & "&Tab2=" & GetTab2()
  64. End If
  65. 'Serve the shutdown tasks
  66. Call SA_ServeTasks("TabsMaintenance","TabsMaintenanceShutdown", TASK_MANY_LEVEL, strTabsParam )
  67. 'Display Alerts and resources
  68. %>
  69. <TABLE WIDTH=100% VALIGN=middle ALIGN=middle BORDER=0 CELLSPACING=10 CELLPADDING=0 >
  70. <TR>
  71. <TD valign=top width=50% class="TasksBody">
  72. <% Call SA_ServeAlertsPanel("ShutdownAlertDefinitions", L_SHUTDOWNALERT_TEXT, SA_DEFAULT, SA_DEFAULT, "_top") %>
  73. </TD>
  74. <TD valign=top width=50% class="TasksBody">
  75. <% Call SA_ServeResourcesPanel("ShutdownResource", L_SHUTDOWNSTATUS_TEXT, SA_DEFAULT, SA_DEFAULT, "_top") %>
  76. </TD>
  77. </TR>
  78. </TABLE>
  79. <%
  80. OnServeAreaPage = TRUE
  81. End Function
  82. '---------------------------------------------------------------------
  83. ' Function name: ServeCommonJavaScript()
  84. ' Description: Common Javascript function to be included
  85. ' Input Variables: None
  86. ' Output Variables: None
  87. ' Return Values: None
  88. ' Global Variables: None
  89. '---------------------------------------------------------------------
  90. Function ServeCommonJavaScript()
  91. %>
  92. <script>
  93. function Init()
  94. {
  95. return true;
  96. }
  97. </script>
  98. <%
  99. End Function
  100. %>