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.

388 lines
10 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>System Restore Introduction (Step 1)</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_lLastRestore = -1;
  12. function OnLink_HelpF1()
  13. {
  14. OnLink_About();
  15. }
  16. function OnCancel()
  17. {
  18. if ( ObjSystemRestore.Cancel() )
  19. {
  20. external.window.close();
  21. }
  22. }
  23. function OnNext()
  24. {
  25. ObjSystemRestore.CanNavigatePage = true;
  26. if (!ObjSystemRestore.CanRunRestore())
  27. {
  28. external.window.close();
  29. return;
  30. }
  31. if ( RadioTask[0].checked )
  32. {
  33. if (ObjSystemRestore.DisplayMoveFileExWarning())
  34. {
  35. external.window.close();
  36. }
  37. ObjSystemRestore.DisplayOtherUsersWarning();
  38. //
  39. // Disable FIFO and then initalize to get restore points
  40. //
  41. ObjSystemRestore.DisableFIFO();
  42. ObjSystemRestore.InitializeAll();
  43. // Normal Restore
  44. ObjSystemRestore.MainOption = 0 ;
  45. ObjSystemRestore.IsUndo = false;
  46. self.location = "SRUI-Pick.htm";
  47. }
  48. else if ( RadioTask[1].checked )
  49. {
  50. // Create a manual restore point
  51. ObjSystemRestore.MainOption = 1 ;
  52. ObjSystemRestore.ManualRPName = "";
  53. self.location = "SRUI-AddRP.htm";
  54. }
  55. else
  56. {
  57. // if (ObjSystemRestore.DisplayMoveFileExWarning())
  58. // {
  59. // external.window.close();
  60. // }
  61. ObjSystemRestore.DisplayOtherUsersWarning();
  62. //
  63. // Disable FIFO and then initalize to get restore points
  64. //
  65. ObjSystemRestore.DisableFIFO();
  66. ObjSystemRestore.InitializeAll();
  67. // Undo the last restore
  68. ObjSystemRestore.MainOption = 2 ;
  69. ObjSystemRestore.IsUndo = true;
  70. ObjSystemRestore.SelectedPoint = g_lLastRestore;
  71. if ( ObjSystemRestore.CheckRestore() )
  72. {
  73. self.location = "SRUI-Confirm.htm";
  74. }
  75. }
  76. }
  77. function OnLink_Configure()
  78. {
  79. var shell = new ActiveXObject( "Wscript.Shell" );
  80. shell.Run( "control sysdm.cpl,,4", 1, false );
  81. }
  82. function OnRbKeyDown()
  83. {
  84. if (event.keyCode == 13) // enter key
  85. {
  86. OnNext();
  87. window.event.returnValue=false;
  88. }
  89. if (TrCreateRP.disabled == true)
  90. {
  91. if (event.srcElement == RadioTask[0] && event.keyCode == 40) // down arrow
  92. {
  93. RadioTask[2].focus();
  94. RadioTask[2].checked = true;
  95. window.event.returnValue = false;
  96. }
  97. if (event.srcElement == RadioTask[2] && event.keyCode == 38) // up arrow
  98. {
  99. RadioTask[0].focus();
  100. RadioTask[0].checked = true;
  101. window.event.returnValue = false;
  102. }
  103. }
  104. window.event.cancelBubble = true;
  105. }
  106. </script>
  107. <SCRIPT FOR=window EVENT=onresize>
  108. //
  109. // Persist selection and resize
  110. //
  111. if ( RadioTask[0].checked )
  112. ObjSystemRestore.MainOption = 0 ;
  113. else if ( RadioTask[1].checked )
  114. ObjSystemRestore.MainOption = 1 ;
  115. else if ( RadioTask[2].checked )
  116. ObjSystemRestore.MainOption = 2 ;
  117. ObjSystemRestore.CanNavigatePage = true;
  118. self.location = "SRUI-Main.htm";
  119. </SCRIPT>
  120. <script for=window event=onload>
  121. fnSetLowColorImage();
  122. ObjSystemRestore.CanNavigatePage = false;
  123. window.HomePageBody.style.visibility = "visible";
  124. if ( ObjSystemRestore.IsSafeMode == false )
  125. {
  126. TrCreateRP.style.display = "block";
  127. TrCreateRP.disabled = false ;
  128. }
  129. if (!ObjSystemRestore.CanRunRestore())
  130. {
  131. external.window.close();
  132. return;
  133. }
  134. ObjSystemRestore.EnableFIFO();
  135. g_lLastRestore = ObjSystemRestore.LastRestore;
  136. if ( g_lLastRestore >= 0 )
  137. {
  138. if (!ObjSystemRestore.WasLastRestoreFromSafeMode())
  139. {
  140. TrUndoRestore.style.display = "block";
  141. TrUndoRestore.disabled = false ;
  142. }
  143. }
  144. //
  145. // Get current MainOption persisted and set this
  146. //
  147. {
  148. var nMainOption = ObjSystemRestore.MainOption ;
  149. if ( nMainOption >= 0 && nMainOption < 3 )
  150. {
  151. RadioTask[0].checked = false ;
  152. RadioTask[1].checked = false ;
  153. RadioTask[2].checked = false ;
  154. RadioTask[nMainOption].checked = true ;
  155. RadioTask[nMainOption].focus();
  156. }
  157. else
  158. {
  159. RadioTask[0].checked = true ;
  160. RadioTask[0].focus();
  161. }
  162. }
  163. </script>
  164. </HEAD>
  165. <!--
  166. Body of doc
  167. -->
  168. <BODY ID="HomePageBody">
  169. <!--
  170. Background image located on the bottom right of the page
  171. -->
  172. <DIV style="position: absolute; bottom: 0px; right: 0px; z-index: -1">
  173. <img src="watermark.jpg" border=0 width="270" height="297"></DIV>
  174. <table width=100% height=100% cellpadding=0 cellspacing=0 border=0><tbody>
  175. <!--
  176. Page header
  177. -->
  178. <tr height="60px"><td id="TdBranding" colspan=3 class="styHeaderBlock">
  179. <table class="styImage" width=100% height=100% cellpadding=0 cellspacing=0 background="SR_Grad.jpg" style="border-collapse: collapse" bordercolor="#111111"><tbody><tr>
  180. <td width="65px" nowrap>&nbsp;</td>
  181. <td width=80% valign=top nowrap>
  182. <div id="TxtHeader" class="styHeaderText">
  183. <font color="#FFFFFF">Welcome to System Restore </font>
  184. </div>
  185. </td>
  186. <td>
  187. <table><tr>
  188. <td>
  189. <a id="NoLoc1" class="styLink" href="javascript:OnLink_About();">
  190. <img src="help.gif" alt="Help" border=0 width="32" height="32">
  191. </a>
  192. </td>
  193. <td>
  194. <a id="NoLoc1" class="styLink" href="javascript:OnLink_About();">
  195. <font color="#FFFFFF"> <id id=HelpId>Help</id></font>
  196. </a>
  197. </td>
  198. </tr></table>
  199. <id id="NoLoc2">&nbsp;</id>
  200. </td>
  201. </tr></tbody></table>
  202. </td></tr>
  203. <tr height="3px"><td class="styHorzLine" colspan=3></td></tr>
  204. <!--
  205. Top anchor
  206. -->
  207. <tr height="25px"><td colspan=3>
  208. <table width=100% height=100% cellpadding=0 cellspacing=0><tbody><tr>
  209. <td width=90%></td>
  210. <td class="styImage">
  211. </td>
  212. </tr></tbody></table>
  213. </td></tr>
  214. <tr>
  215. <!-- Left anchor -->
  216. <td id="NoLoc3" class="styImage" width=8% align=left valign=bottom>
  217. </td>
  218. <td>
  219. <table width=100% height=100% cellpadding=0 cellspacing=0 border=0><tbody>
  220. <tr>
  221. <!--
  222. PAGE CONTENT
  223. -->
  224. <td class="styContentBlock" width="45%">
  225. <p id="ParaMain1" class="styText">
  226. You can use System Restore to undo harmful changes to your computer and restore
  227. its settings and performance. System Restore returns your computer to an earlier
  228. time (called a restore point) without causing you to lose recent work, such as
  229. saved documents, e-mail, or history and favorites lists.
  230. <br><br>
  231. Any changes that System Restore makes to your computer are completely reversible.
  232. <br><br>
  233. Your computer automatically creates restore points (called system checkpoints),
  234. but you can also use System Restore to create your own restore points. This is
  235. useful if you are about to make a major change to your system, such as installing
  236. a new program or changing your registry.
  237. </p>
  238. <div>
  239. <a id="NoLoc4" class="styLink" href="javascript:OnLink_Configure();">
  240. <id id="TxtConfigLink">System Restore Settings</id>
  241. </a>
  242. </div>
  243. </td>
  244. <td class="styText" width=5%>&nbsp;</td>
  245. <td class="styVertLine" width=1px></td>
  246. <td class="styText" width=5%>&nbsp;</td>
  247. <td class="styContentBlock">
  248. <br>
  249. <p id="ParaTaskHdr" class="styTextBold">
  250. To begin, select the task that you want to perform:
  251. </p>
  252. <table id="Tasks" cellpadding=0 cellspacing=0 border=0><tbody>
  253. <tr>
  254. <td><input id="BtnTask1" name="RadioTask" type=radio accesskey="R" onkeydown="OnRbKeyDown()" checked></td>
  255. <td class="styText">
  256. <label id="TxtTask1" for="BtnTask1">
  257. <U>R</U>estore my computer to an earlier time
  258. </label>
  259. </td>
  260. </tr>
  261. <tr height=6px><td></td></tr>
  262. <tr id="TrCreateRP" style="display:none" DISABLED>
  263. <td><input id="BtnTask2" name="RadioTask" type=radio accesskey="E" onkeydown="OnRbKeyDown()"></td>
  264. <td class="styText">
  265. <label id="TxtTask2" for="BtnTask2">
  266. Cr<U>e</U>ate a restore point
  267. </label>
  268. </td>
  269. </tr>
  270. <tr height=6px><td></td></tr>
  271. <tr id="TrUndoRestore" style="display:none" DISABLED>
  272. <td><input id="BtnTask3" name="RadioTask" type=radio accesskey="U" onkeydown="OnRbKeyDown()"></td>
  273. <td class="styText">
  274. <label id="TxtTask3" for="BtnTask3">
  275. <U>U</U>ndo my last restoration
  276. </label>
  277. </td>
  278. </tr>
  279. </tbody></table>
  280. </td>
  281. </tr>
  282. <!--
  283. Navigation row
  284. -->
  285. <tr height="24px">
  286. <td class="styText" height="12px" colspan=5 nowrap>
  287. <table cellspacing=0 cellpadding=0 border=0><tbody><tr>
  288. <td id="TxtInstruction" class="styInstruction" width="50%">
  289. To continue, select an option, and then click Next.
  290. </td>
  291. <td width="10%">&nbsp;</td>
  292. <td class="styText" width="10%" nowrap>
  293. <button id="BtnNext" class="styButton" onclick="OnNext()" accesskey="N" tabindex=0>
  294. <U>N</U>ext &gt;
  295. </button>
  296. &nbsp;&nbsp;
  297. <button id="BtnCancel" class="styButton" onclick="OnCancel()" accesskey="C" tabindex=0>
  298. <U>C</U>ancel
  299. </button>
  300. </td>
  301. </tr></tbody></table>
  302. </td>
  303. </tr></tbody></table>
  304. </td>
  305. <!-- Right anchor -->
  306. <td id="NoLoc5" class="styImage" width=8% align=right valign=bottom>
  307. </td>
  308. </tr>
  309. <!--
  310. Bottom anchor
  311. -->
  312. <tr height="24px"><td colspan=3>
  313. <table cellspacing=0 cellpadding=0 width=100% height=100%><tbody><tr>
  314. <td width=90%></td><td class="styImage">
  315. </td>
  316. </tr></tbody></table>
  317. </td></tr>
  318. </tbody></table>
  319. </BODY>
  320. </HTML>