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.

133 lines
4.6 KiB

  1. <%
  2. '==================================================
  3. ' File: sh_wizardfooter.asp
  4. '
  5. ' Synopsis: Serve Navigation button bar in bottom frameset of a Wizard
  6. '
  7. ' Copyright (c) Microsoft Corporation. All rights reserved.
  8. '================================================== %>
  9. <!-- #include file="inc_framework.asp" -->
  10. <%
  11. Dim sWizardPageType
  12. sWizardPageType = Request.QueryString("PT")
  13. Call ServeWizardFooter()
  14. Function IsFinishButtonNeeded()
  15. If ( UCASE(sWizardPageType) = "FINISH" ) Then
  16. IsFinishButtonNeeded = TRUE
  17. Else
  18. IsFinishButtonNeeded = FALSE
  19. End If
  20. End Function
  21. Function IsBackButtonNeeded()
  22. If ( UCASE(sWizardPageType) = "INTRO" ) Then
  23. 'IsBackButtonNeeded = FALSE
  24. IsBackButtonNeeded = TRUE
  25. Else
  26. IsBackButtonNeeded = TRUE
  27. End If
  28. End Function
  29. Function IsNextButtonNeeded()
  30. If ( UCASE(sWizardPageType) = "FINISH" ) Then
  31. IsNextButtonNeeded = FALSE
  32. Else
  33. IsNextButtonNeeded = TRUE
  34. End If
  35. End Function
  36. Function ServeWizardFooter()
  37. DIM L_NEXT_BUTTON_TEXT
  38. DIM L_BACK_BUTTON_TEXT
  39. DIM L_FINISH_BUTTON_TEXT
  40. DIM L_CANCEL_BUTTON_TEXT
  41. L_NEXT_BUTTON_TEXT = GetLocString("sakitmsg.dll", "40010015", "")
  42. L_BACK_BUTTON_TEXT = GetLocString("sakitmsg.dll", "40010014", "")
  43. L_FINISH_BUTTON_TEXT = GetLocString("sakitmsg.dll", "40010016", "")
  44. L_CANCEL_BUTTON_TEXT = GetLocString("sakitmsg.dll", "40010013", "")
  45. %>
  46. <html>
  47. <!-- Copyright (c) Microsoft Corporation. All rights reserved.-->
  48. <meta http-equiv="Content-Type" content="text/html; charset=<%=GetCharSet()%>">
  49. <meta http-equiv="PRAGMA" content="NO-CACHE">
  50. <head>
  51. <%
  52. Call SA_EmitAdditionalStyleSheetReferences("")
  53. %>
  54. <script language=JavaScript>
  55. var VirtualRoot = '<%=m_VirtualRoot%>';
  56. </script>
  57. <script language=JavaScript src="<%=m_VirtualRoot%>sh_page.js"></script>
  58. <script language=JavaScript src="<%=m_VirtualRoot%>sh_task.js"></script>
  59. <script language=JavaScript>
  60. function Init() {
  61. document.onkeypress = HandleKeyPress;
  62. top.main.EnableBack();
  63. top.main.EnableCancel();
  64. if (document.layers) {
  65. document.captureEvents(Event.KEYPRESS)
  66. }
  67. top.main.SA_SignalFooterIsLoaded();
  68. }
  69. function OnClickFinish()
  70. {
  71. top.main.FinishShell();
  72. }
  73. function OnClickCancel()
  74. {
  75. top.main.Cancel();
  76. }
  77. function OnClickBack()
  78. {
  79. top.main.Back();
  80. }
  81. function OnClickNext()
  82. {
  83. top.main.Next();
  84. }
  85. </script>
  86. </head>
  87. <BODY onLoad="Init()" xoncontextmenu="return false;" topmargin="0" leftmargin="0" rightmargin="0" onDragDrop="return false;" tabindex=-1>
  88. <div class='PageBodyIndent' >
  89. <FORM name="frmFooter" id="frmFooter">
  90. <DIV ID="WizardButtons" class="ButtonBar" align="right" style="xposition:relative; xtop:10px;">
  91. <% If IsBackButtonNeeded() Then %>
  92. <button class="TaskFrameButtons" type=button name="butBack" id="butBack" onClick="OnClickBack();"><table cellpadding=0 cellspacing=0 class="TaskFrameButtonsNoBorder"><tr><td class="TaskFrameButtonsNoBorder"><img id="btnBackImage" src="<%=m_VirtualRoot%>images/butGreenArrowLeft.gif"></td><td class="TaskFrameButtonsNoBorder" width=70 nowrap><%=L_BACK_BUTTON_TEXT%></td></tr></table></button>
  93. &nbsp;
  94. <% End If %>
  95. <% If IsNextButtonNeeded() Then %>
  96. <button class="TaskFrameButtons" type=button name="butNext" id="butNext" onClick="OnClickNext();"><table cellpadding=0 cellspacing=0 class="TaskFrameButtonsNoBorder"><tr><td class="TaskFrameButtonsNoBorder"><img id="btnNextImage" src="<%=m_VirtualRoot%>images/butGreenArrow.gif"></td><td class="TaskFrameButtonsNoBorder" width=70 nowrap><%=L_NEXT_BUTTON_TEXT%></td></tr></table></button>
  97. &nbsp;
  98. <% End If%>
  99. <% If IsFinishButtonNeeded() Then %>
  100. <button class="TaskFrameButtons" type=button name="butFinish" id="butFinish" onClick="OnClickFinish();""><table cellpadding=0 cellspacing=0 class="TaskFrameButtonsNoBorder"><tr><td class="TaskFrameButtonsNoBorder"><img id="btnFinishImage" src="<%=m_VirtualRoot%>images/butGreenArrow.gif"></td><td class="TaskFrameButtonsNoBorder" width=70 nowrap><%=L_FINISH_BUTTON_TEXT%></td></tr></table></button>
  101. &nbsp;
  102. <%End If %>
  103. <button class="TaskFrameButtons" type="button" name="butCancel" id="butCancel" onClick="OnClickCancel();"><table cellpadding=0 cellspacing=0 class="TaskFrameButtonsNoBorder"><tr><td class="TaskFrameButtonsNoBorder"><img id="btnCancelImage" src="<%=m_VirtualRoot%>images/butRedX.gif"></td><td class="TaskFrameButtonsNoBorder" width=70 nowrap><%=L_CANCEL_BUTTON_TEXT%></td></tr></table></button>
  104. &nbsp;&nbsp;
  105. </div>
  106. </form>
  107. </div>
  108. </BODY>
  109. </HTML>
  110. <%
  111. End Function
  112. %>