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.

142 lines
4.2 KiB

  1. <%@ Language=VBScript %>
  2. <% '==================================================
  3. ' Microsoft Server Appliance
  4. '
  5. ' Error Message Viewer - critical errors
  6. '
  7. ' Copyright (c) 1999 - 2000 Microsoft Corporation. All rights reserved.
  8. '==================================================%>
  9. <% Option Explicit %>
  10. <!-- #include file="../sh_page.asp" -->
  11. <!-- #include file="../tabbar.asp" -->
  12. <%
  13. Dim rc
  14. Dim strMessage
  15. Dim mstrReturnURL
  16. On Error Resume Next
  17. Set objLocMgr = Server.CreateObject("ServerAppliance.LocalizationManager")
  18. strSourceName = "sakitmsg.dll"
  19. if Err.number <> 0 then
  20. Response.Write "Error in localizing the web content "
  21. Response.End
  22. end if
  23. '-----------------------------------------------------
  24. 'START of localization content
  25. Dim L_ALERTLBL_TEXT
  26. Dim L_PAGETITLE_TEXT
  27. L_ALERTLBL_TEXT = objLocMgr.GetString(strSourceName, "&H40010030",varReplacementStrings)
  28. L_PAGETITLE_TEXT = objLocMgr.GetString(strSourceName, "&H40010031",varReplacementStrings)
  29. 'End of localization content
  30. '-----------------------------------------------------
  31. strMessage = Request("Message")
  32. mstrReturnURL = Request("ReturnURL") 'framework variable, used in Redirect()
  33. If strMessage = "" Then
  34. ServeClose
  35. Else
  36. ServePage strMessage
  37. End If
  38. Response.End
  39. ' end of main routine
  40. '----------------------------------------------------------------------------
  41. '
  42. ' Function : ServePage
  43. '
  44. ' Synopsis : Serves the error page
  45. '
  46. ' Arguments: Message(IN) - msg to display in error page
  47. '
  48. ' Returns : None
  49. '
  50. '----------------------------------------------------------------------------
  51. Sub ServePage(Message)
  52. On Error Resume Next
  53. %>
  54. <html>
  55. <!-- Copyright (c) 1999 - 2000 Microsoft Corporation. All rights reserved-->
  56. <head>
  57. <meta http-equiv="Content-Type" content="text/html; charset=<%=GetCharSet()%>">
  58. <title><% =L_PAGETITLE_TEXT %></title>
  59. <link rel="STYLESHEET" type="text/css" href="../sh_page.css">
  60. <script language=JavaScript src="../sh_page.js"></script>
  61. <script language="JavaScript">
  62. function ClickClose() {
  63. top.location = document.frmPage.ReturnURL.value + "&R=" +Math.random();
  64. }
  65. </script>
  66. </head>
  67. <body marginWidth="0" marginHeight="0" onDragDrop="return false;" oncontextmenu="return false;" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" class="AREAPAGEBODY">
  68. <%ServeTabBar%>
  69. <form name="frmPage" action="<% =GetScriptFileName() %>" method="POST">
  70. <INPUT type=hidden name="ReturnURL" value="<% =mstrReturnURL %>">
  71. <INPUT type=hidden name="Message" value="<% =Message %>">
  72. <% ServeAreaLabelBar(L_ALERTLBL_TEXT) %>
  73. <% if isIE then %>
  74. <table border="0" height=75% width="100%" cellspacing="0" cellpadding=2>
  75. <% else %>
  76. <table border="0" height=80% width="100%" cellspacing="0" cellpadding=2>
  77. <% end if %>
  78. <tr width="100%">
  79. <td width="35">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  80. <td width="100%" colspan=3>
  81. <span class="AreaText">
  82. <P><strong><% =L_PAGETITLE_TEXT %></strong></P>
  83. <P><% =Message %></P>
  84. </span>
  85. </td>
  86. </tr>
  87. <tr width="100%">
  88. <td width="35">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  89. <td align=left width="100%" colspan=3>
  90. <% ServeAreaButton L_FOKBUTTON_TEXT, "JavaScript:ClickClose();" %>
  91. </td>
  92. </tr>
  93. <tr width="100%">
  94. <td width="35">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  95. <td align="right"><img src="//<%=GetServerName%><%=m_VirtualRoot%>util/images/critical_water.gif"></td>
  96. </tr>
  97. </table>
  98. <table width = "100%" height="5%" border="0" cellspacing="0" cellpadding=2>
  99. <tr width="100%">
  100. <TD height=25 width=100% bgcolor=#000000><img src="<%=m_VirtualRoot%>images/oem_logo.gif"></TD></TR>
  101. </tr>
  102. </table>
  103. </form>
  104. </body>
  105. </html>
  106. <%
  107. End Sub
  108. %>