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.

134 lines
4.4 KiB

  1. <%@ Language=VBScript %>
  2. <% Option Explicit %>
  3. <%
  4. '-------------------------------------------------------------------------------
  5. ' Openfiles_OpenFilesDetails.asp: Serves in showing details page for Open files
  6. ' Copyright (c) Microsoft Corporation. All rights reserved.
  7. ' Date Description
  8. ' 22-Feb-2001 Creation Date
  9. ' 23-Mar-2001 Last Modified Date
  10. '-------------------------------------------------------------------------------
  11. %>
  12. <!-- #include virtual="/admin/inc_framework.asp" -->
  13. <!-- #include file="loc_Openfiles_msg.asp" -->
  14. <%
  15. '-------------------------------------------------------------------------
  16. ' Global Variables
  17. '-------------------------------------------------------------------------
  18. Dim rc
  19. Dim page
  20. '======================================================
  21. ' Entry point
  22. '======================================================
  23. '
  24. ' Create Page
  25. rc = SA_CreatePage(L_OPENFILESDETAILS_TEXT, "", PT_AREA, page )
  26. If (rc=0) Then
  27. 'Serve the page
  28. SA_ShowPage(page)
  29. End If
  30. '======================================================
  31. ' Web Framework Event Handlers
  32. '======================================================
  33. '---------------------------------------------------------------------
  34. ' Function name: OnInitPage
  35. ' Description: Called to signal first time processing for this page.
  36. ' Input Variables: PageIn and EventArg
  37. ' Output Variables: None
  38. ' Return Values: TRUE to indicate initialization was successful.
  39. ' Global Variables: None
  40. ' Called to signal first time processing for this page. Use this method
  41. ' to do first time initialization tasks.
  42. '---------------------------------------------------------------------
  43. Public Function OnInitPage(ByRef PageIn, ByRef EventArg)
  44. OnInitPage = TRUE
  45. End Function
  46. '---------------------------------------------------------------------
  47. ' Function name: OnServeAreaPage
  48. ' Description: Called when the page needs to be served.
  49. ' Input Variables: PageIn, EventArg
  50. ' Output Variables: None
  51. ' Return Values: None
  52. ' Global Variables: None
  53. 'Called when the page needs to be served. Use this method to serve content.
  54. '---------------------------------------------------------------------
  55. Public Function OnServeAreaPage(ByRef PageIn, ByRef EventArg)
  56. Call ServeCommonJavascript()
  57. Dim arrOpFiles 'to hold openfiles list
  58. Dim itemCount 'to hold the item count
  59. Dim x 'to hold the count
  60. Dim itemKey 'to hold the item selected
  61. Dim arrRepFileStrings
  62. Dim arrRepModeStrings
  63. Dim arrRepAccessedByStrings
  64. Dim arrRepPathStrings
  65. ReDim arrRepFileStrings(1)
  66. ReDim arrRepModeStrings(1)
  67. ReDim arrRepAccessedByStrings(1)
  68. ReDim arrRepPathStrings(1)
  69. Call SA_TraceOut("Openfiles_OpenFilesDetails.asp", "OnServeAreaPage")
  70. itemCount = OTS_GetTableSelectionCount("")
  71. For x = 1 to itemCount
  72. If ( OTS_GetTableSelection("", x, itemKey) ) Then
  73. rc = itemKey
  74. End If
  75. Next
  76. arrOpFiles = split(rc,chr(1))
  77. Call SA_TraceOut("Openfiles_OpenFilesDetails.asp", "Displaying the details")
  78. arrRepFileStrings(0) = cstr(arrOpFiles(0))
  79. arrRepPathStrings(0) = cstr(replace(arrOpFiles(1),"/","\"))
  80. arrRepModeStrings(0) = cstr(arrOpFiles(2))
  81. arrRepAccessedByStrings(0) = cstr(arrOpFiles(3))
  82. L_FILEDETAILS_TEXT = SA_GetLocString("openfiles_msg.dll", "4040001F", arrRepFileStrings)
  83. L_PATHDETAILS_TEXT = SA_GetLocString("openfiles_msg.dll", "40400020", arrRepPathStrings)
  84. L_MODEDETAILS_TEXT = SA_GetLocString("openfiles_msg.dll", "40400021", arrRepModeStrings)
  85. L_ACCESSDETAILS_TEXT = SA_GetLocString("openfiles_msg.dll", "40400022", arrRepAccessedByStrings)
  86. Response.Write L_FILEDETAILS_TEXT & "<br><br>"
  87. Response.Write L_PATHDETAILS_TEXT & "<br><br>"
  88. Response.Write L_MODEDETAILS_TEXT & "<br><br>"
  89. Response.Write L_ACCESSDETAILS_TEXT
  90. OnServeAreaPage = TRUE
  91. end function
  92. '---------------------------------------------------------------------
  93. ' Function name: ServeCommonJavaScript()
  94. ' Description: Common Javascript function to be included
  95. ' Input Variables: None
  96. ' Output Variables: None
  97. ' Return Values: None
  98. ' Global Variables: None
  99. '---------------------------------------------------------------------
  100. Private Function ServeCommonJavascript()
  101. %>
  102. <script language='JavaScript'>
  103. function Init()
  104. {
  105. return true;
  106. }
  107. </script>
  108. <%
  109. End Function
  110. %>