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.

304 lines
7.7 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>System Restore Confirmation (Step 3)</TITLE>
  5. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
  6. <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
  7. <OBJECT ID=ObjSystemRestore CLASSID="CLSID:fd589b7c-7ce0-11d3-b9e5-00c04f79e399"></OBJECT>
  8. <SCRIPT ID="RestoreUI" LANGUAGE=JavaScript SRC="RestoreUI.js"></SCRIPT>
  9. <LINK id="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="rstrui.css">
  10. <script>
  11. var g_bPageLoaded = false ;
  12. var L_HeaderNormal_Message =
  13. "Confirm Restore Point Selection";
  14. var L_HeaderUndo_Message =
  15. "Confirm Restoration Undo";
  16. var L_RPTitleNormal_Message =
  17. "Selected restore point:";
  18. var L_RPTitleUndo_Message =
  19. "System Restore will undo the following restoration:";
  20. var L_NavInfoNormal_Message =
  21. "To restore your computer to this date and time, click Next.";
  22. var L_NavInfoUndo_Message =
  23. "To undo this restoration, click Next.";
  24. var L_WarnRestart_Message =
  25. "Before restoring your computer, save and close all open files and close all open programs. Do not alter, open, or delete any files or programs until the restoration is complete.";
  26. function OnLink_HelpF1()
  27. {
  28. OnLink_Confirm(ObjSystemRestore.IsUndo);
  29. }
  30. function OnCancel()
  31. {
  32. if ( ObjSystemRestore.Cancel() )
  33. {
  34. external.window.close();
  35. }
  36. }
  37. function OnBack()
  38. {
  39. if ( g_bPageLoaded == false )
  40. return ;
  41. ObjSystemRestore.CanNavigatePage = true ;
  42. if ( ObjSystemRestore.IsUndo )
  43. self.location = "SRUI-Main.htm";
  44. else
  45. self.location = "SRUI-Pick.htm";
  46. }
  47. var fStarted = false;
  48. function OnNext()
  49. {
  50. if ( g_bPageLoaded == false )
  51. return;
  52. if ( fStarted )
  53. return;
  54. if (!ObjSystemRestore.CanRunRestore())
  55. {
  56. external.window.close();
  57. return;
  58. }
  59. if ( ObjSystemRestore.BeginRestore() )
  60. {
  61. ObjSystemRestore.CanNavigatePage = true ;
  62. //self.location = "SRUI-Progress.htm";
  63. external.window.close();
  64. }
  65. }
  66. </script>
  67. <SCRIPT FOR=window EVENT=onresize>
  68. ObjSystemRestore.CanNavigatePage = true ;
  69. self.location = "SRUI-Confirm.htm";
  70. </SCRIPT>
  71. <script for=window event=onload>
  72. fnSetLowColorImage();
  73. ObjSystemRestore.CanNavigatePage = false ;
  74. window.HomePageBody.style.visibility = "visible";
  75. if (!ObjSystemRestore.CanRunRestore())
  76. {
  77. external.window.close();
  78. return;
  79. }
  80. if ( ObjSystemRestore.IsUndo )
  81. {
  82. TxtHeader.innerText = L_HeaderUndo_Message;
  83. TxtRPTitle.innerText = L_RPTitleUndo_Message;
  84. TxtNavInfo.innerHTML = L_NavInfoUndo_Message;
  85. }
  86. else
  87. {
  88. TxtHeader.innerText = L_HeaderNormal_Message;
  89. TxtRPTitle.innerText = L_RPTitleNormal_Message;
  90. TxtNavInfo.innerHTML = L_NavInfoNormal_Message;
  91. }
  92. TxtRPDate.innerText = ObjSystemRestore.FormatDate( ObjSystemRestore.SelectedDate, true );
  93. var strName = ObjSystemRestore.SelectedName;
  94. if (strName.length > 64)
  95. {
  96. strName = strName.slice(0,63);
  97. strName = strName.concat("...");
  98. }
  99. TxtRPName.innerText = strName;
  100. TxtRPName.title = strName;
  101. //ObjSystemRestore.ShowMessage( L_WarnRestart_Message );
  102. window.BtnNext.focus();
  103. //
  104. // Set page loaded
  105. //
  106. g_bPageLoaded = true ;
  107. </script>
  108. </HEAD>
  109. <!--
  110. Body of doc
  111. -->
  112. <BODY ID="HomePageBody">
  113. <!--
  114. Background image located on the bottom right of the page
  115. -->
  116. <DIV style="position: absolute; bottom: 0px; right: 0px; z-index: -1">
  117. <img src="watermark.jpg" border=0 width="270" height="297"></DIV>
  118. <table width=100% height=100% cellspacing=0 cellpadding=0 border=0><tbody>
  119. <!--
  120. Page header
  121. -->
  122. <tr height="60px"><td id="TdBranding" colspan=3 class="styHeaderBlock">
  123. <table class="styImage" width=100% height=100% cellspacing=0 cellpadding=0 background="SR_Grad.jpg" style="border-collapse: collapse" bordercolor="#111111"><tbody><tr>
  124. <td width="65px" nowrap>&nbsp;</td>
  125. <td width=80% valign=top nowrap>
  126. <div id="TxtHeader" class="styHeaderText" style="color:#FFFFFF">&nbsp;</div>
  127. </td>
  128. <td>
  129. <table><tr>
  130. <td>
  131. <a id="NoLoc1" class="styLink" href="javascript:OnLink_Confirm(ObjSystemRestore.IsUndo);">
  132. <img src="help.gif" border=0 width="32" height="32">
  133. </a>
  134. </td>
  135. <td>
  136. <a id="NoLoc1" class="styLink" href="javascript:OnLink_Confirm(ObjSystemRestore.IsUndo);">
  137. <font color="#FFFFFF"> <id id=HelpId>Help</id></font>
  138. </a>
  139. </td>
  140. </tr></table>
  141. <id id="NoLoc2">&nbsp;</id>
  142. </td>
  143. </tr></tbody></table>
  144. </td></tr>
  145. <tr height="3px"><td class="styHorzLine" colspan=3></td></tr>
  146. <!--
  147. Top anchor
  148. -->
  149. <tr height="25px"><td colspan=3>
  150. <table width=100% height=100% cellspacing=0 cellpadding=0><tbody><tr>
  151. <td width=90%></td>
  152. <td class="styImage">
  153. </td>
  154. </tr></tbody></table>
  155. </td></tr>
  156. <tr>
  157. <!-- Left anchor -->
  158. <td id="NoLoc3" class="styImage" width=8% align=left valign=bottom>
  159. </td>
  160. <td>
  161. <table width=100% height=100% cellspacing=0 cellpadding=0 border=0><tbody>
  162. <tr>
  163. <!--
  164. PAGE CONTENT
  165. -->
  166. <td class="styContentBlock">
  167. <div id="TxtRPTitle" class="styTextRPTitleBold">
  168. &nbsp;
  169. </div>
  170. <div id="TxtRPDate" class="styTextRPInfo">
  171. &nbsp;
  172. </div>
  173. <div id="TxtRPName" class="styTextRPInfo">
  174. &nbsp;
  175. </div>
  176. <br><br><br>
  177. <p id="ParaMain" class="styText">
  178. This process does not cause you to lose recent work, such as saved documents or
  179. e-mail, and is completely reversible.
  180. </p>
  181. <br>
  182. <p id="ParaMain2" class="styTextWarning">
  183. During the restoration, System Restore shuts down Windows. After the restoration
  184. is complete, Windows restarts using the settings from the date and time listed above.
  185. </p>
  186. <p id="ParaMain3" class="styTextWarning">
  187. <b>Important: Before continuing, save your changes and close any open programs.</b>
  188. </p>
  189. <br>
  190. <p id="ParaMain4" class="styText">
  191. System Restore may take a moment to collect information about the selected restore point
  192. before shutting down your computer.
  193. </p>
  194. </td>
  195. <!-- Right padding -->
  196. <td class="styText" width=17%>&nbsp;</td>
  197. </tr>
  198. <!--
  199. Navigation row
  200. -->
  201. <tr height="24px">
  202. <td class="styText" height="12px" colspan=2 nowrap>
  203. <table cellspacing=0 cellpadding=0 border=0><tbody><tr>
  204. <td id="TxtNavInfo" class="styInstruction">
  205. &nbsp;
  206. </td>
  207. <td width="10%">&nbsp;</td>
  208. <td class="styText" width="10%" nowrap>
  209. <button id="BtnBack" class="styButton" onclick="OnBack()" accesskey="B" tabindex=0>
  210. &lt; <U>B</U>ack
  211. </button>
  212. &nbsp;&nbsp;
  213. <button id="BtnNext" class="styButton" onclick="OnNext()" accesskey="N" tabindex=0>
  214. <U>N</U>ext &gt;
  215. </button>
  216. &nbsp;&nbsp;
  217. <button id="BtnCancel" class="styButton" onclick="OnCancel()" accesskey="C" tabindex=0>
  218. <U>C</U>ancel
  219. </button>
  220. </td>
  221. </tr></tbody></table>
  222. </td>
  223. </tr></tbody></table>
  224. </td>
  225. <!-- Right anchor -->
  226. <td id="NoLoc4" class="styImage" width=8% align=right valign=bottom>
  227. </td>
  228. </tr>
  229. <!--
  230. Bottom anchor
  231. -->
  232. <tr height="24px"><td colspan=3>
  233. <table width=100% height=100% cellspacing=0 cellpadding=0><tbody><tr>
  234. <td width=90%></td><td class="styImage">
  235. </td>
  236. </tr></tbody></table>
  237. </td></tr>
  238. </tbody></table>
  239. </BODY>
  240. </HTML>