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.

319 lines
7.6 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>System Restore Create Restore Point (Step RP)</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 g_bCreateClicked = false;
  13. var L_EmptyDescription_Message =
  14. "Please enter a description for your restore point.";
  15. var L_CreationFail_Message =
  16. "System Restore is not able to create a restore point.\nPlease restart the computer, and then run System Restore again.";
  17. function OnLink_HelpF1()
  18. {
  19. OnLink_CreateRP();
  20. }
  21. function OnCancel()
  22. {
  23. if ( ObjSystemRestore.Cancel() )
  24. {
  25. external.window.close();
  26. }
  27. }
  28. function OnBack()
  29. {
  30. if ( g_bPageLoaded == false )
  31. return ;
  32. ObjSystemRestore.CanNavigatePage = true ;
  33. self.location = "SRUI-Main.htm";
  34. }
  35. function OnCreate()
  36. {
  37. if ( g_bPageLoaded == false )
  38. return ;
  39. if ( g_bCreateClicked == true )
  40. return;
  41. if (!ObjSystemRestore.CanRunRestore())
  42. {
  43. external.window.close();
  44. return;
  45. }
  46. g_bCreateClicked = true;
  47. var strName = ObjEdit.value ;
  48. strName = removeLeadingSpace(strName);
  49. strName = removeTrailingSpace(strName);
  50. ObjEdit.value = strName ;
  51. if ( strName.length == 0 )
  52. {
  53. ObjSystemRestore.ShowMessage( L_EmptyDescription_Message );
  54. ObjEdit.focus();
  55. g_bCreateClicked = false;
  56. return;
  57. }
  58. ObjSystemRestore.ManualRPName = strName;
  59. if ( ObjSystemRestore.CreateRestorePoint() == false )
  60. {
  61. ObjSystemRestore.ShowMessage( L_CreationFail_Message );
  62. BtnBack.focus();
  63. g_bCreateClicked = false;
  64. return;
  65. }
  66. ObjSystemRestore.CanNavigatePage = true;
  67. self.location = "SRUI-ConfRP.htm";
  68. }
  69. //
  70. // strip leading spaces
  71. //
  72. function removeLeadingSpace(str)
  73. {
  74. var text = str.replace(/^\s*/,"");
  75. return text;
  76. }
  77. //
  78. // strip leading spaces
  79. //
  80. function removeTrailingSpace(str)
  81. {
  82. var text = str.replace(/\s*$/,"");
  83. return text;
  84. }
  85. </script>
  86. <SCRIPT FOR=window EVENT=onresize>
  87. ObjSystemRestore.CanNavigatePage = true ;
  88. self.location = "SRUI-addrp.htm";
  89. </SCRIPT>
  90. <script for=window event=onload>
  91. fnSetLowColorImage();
  92. if (!ObjSystemRestore.CanRunRestore())
  93. {
  94. external.window.close();
  95. return;
  96. }
  97. ObjSystemRestore.CanNavigatePage = false ;
  98. window.HomePageBody.style.visibility = "visible";
  99. ObjEdit.focus();
  100. //
  101. // Set page loaded
  102. //
  103. g_bPageLoaded = true ;
  104. </script>
  105. <SCRIPT FOR=ObjEdit EVENT=onkeydown>
  106. if ( event.keyCode == 0x0D )
  107. {
  108. OnCreate();
  109. return false;
  110. }
  111. return true;
  112. </SCRIPT>
  113. </HEAD>
  114. <!--
  115. Body of doc
  116. -->
  117. <BODY ID="HomePageBody">
  118. <!--
  119. Background image located on the bottom right of the page
  120. -->
  121. <DIV style="position: absolute; bottom: 0px; right: 0px; z-index: -1">
  122. <img src="watermark.jpg" border=0 width="270" height="297"></DIV>
  123. <table width=100% height=100% cellspacing=0 cellpadding=0 border=0><tbody>
  124. <!--
  125. Page header
  126. -->
  127. <tr height="60px"><td id="TdBranding" colspan=3 class="styHeaderBlock">
  128. <table class="styImage" width=100% height=100% cellspacing=0 cellpadding=0 background="SR_Grad.jpg" style="border-collapse: collapse" bordercolor="#111111"><tbody><tr>
  129. <td width="65px" nowrap>&nbsp;</td>
  130. <td width=80% valign=top nowrap>
  131. <div id="TxtHeader" class="styHeaderText">
  132. <font color="#FFFFFF">Create a Restore Point </font>
  133. </div>
  134. </td>
  135. <td>
  136. <table><tr>
  137. <td>
  138. <a id="NoLoc1" class="styLink" href="javascript:OnLink_CreateRP();">
  139. <img src="help.gif" border=0 width="32" height="32">
  140. </a>
  141. </td>
  142. <td>
  143. <a id="NoLoc1" class="styLink" href="javascript:OnLink_CreateRP();">
  144. <font color="#FFFFFF"> <id id=HelpId>Help</id></font>
  145. </a>
  146. </td>
  147. </tr></table>
  148. <id id="NoLoc2">&nbsp;</id>
  149. </td>
  150. </tr></tbody></table>
  151. </td></tr>
  152. <tr height="3px"><td class="styHorzLine" colspan=3></td></tr>
  153. <!--
  154. Top anchor
  155. -->
  156. <tr height="25px"><td colspan=3>
  157. <table width=100% height=100% cellspacing=0 cellpadding=0><tbody><tr>
  158. <td width=90%></td>
  159. <td class="styImage">
  160. </td>
  161. </tr></tbody></table>
  162. </td></tr>
  163. <tr>
  164. <!-- Left anchor -->
  165. <td id="NoLoc3" class="styImage" width=8% align=left valign=bottom>
  166. </td>
  167. <td>
  168. <table width=100% height=100% cellspacing=0 cellpadding=0 border=0><tbody>
  169. <tr>
  170. <!--
  171. PAGE CONTENT
  172. -->
  173. <td class="styContentBlock">
  174. <p id="ParaMain1" class="styText">
  175. Your computer automatically creates restore points at regularly scheduled
  176. times or before certain programs are installed. However, you can use
  177. System Restore to create your own restore points at times other than those
  178. scheduled by your computer.
  179. </p>
  180. <p id="ParaMain2" class="styText">
  181. Type a description for your restore point in the following text box.
  182. Ensure that you choose a description that is easy to identify in case
  183. you need to restore your computer later.
  184. </p>
  185. <table width=100% cellpadding=0 cellspacing=0><tbody><tr>
  186. <td width=40px>&nbsp;</td>
  187. <td>
  188. <div id="DivRPHdr" class="styTextRPTitleBold">
  189. Restore point description:
  190. </div>
  191. <div class="styText">
  192. <input type=text size=64 maxlength=255 width=90% height=20 dir=ltr name=ObjEdit id=ObjEdit>
  193. </div>
  194. <p id="DivRPInfo1" class="styText">
  195. The current date and time are automatically added to your restore point.
  196. </p>
  197. <p id="DivRPInfo2" class="styText">
  198. This restore point cannot be changed after it is created. Before continuing,
  199. ensure that you have typed the correct name.
  200. </p>
  201. </td>
  202. </tr></tbody></table>
  203. </td>
  204. <!-- Right padding -->
  205. <td class="styText" width=17%>&nbsp;</td>
  206. </tr>
  207. <!--
  208. Navigation row
  209. -->
  210. <tr height="24px">
  211. <td class="styText" height="12px" colspan=2 nowrap>
  212. <table cellspacing=0 cellpadding=0 border=0><tbody><tr>
  213. <td width="95%">&nbsp;</td>
  214. <td class="styText" width="10%" nowrap>
  215. <button id="BtnBack" class="styButton" onclick="OnBack()" accesskey="B" tabindex=0>
  216. &lt; <U>B</U>ack
  217. </button>
  218. &nbsp;&nbsp;
  219. <button id="BtnCreate" class="styButton" onclick="OnCreate()" accesskey="R" tabindex=0>
  220. C<U>r</U>eate
  221. </button>
  222. &nbsp;&nbsp;
  223. <button id="BtnCancel" class="styButton" onclick="OnCancel()" accesskey="C" tabindex=0>
  224. <U>C</U>ancel
  225. </button>
  226. </td>
  227. </tr></tbody></table>
  228. </td>
  229. </tr></tbody></table>
  230. </td>
  231. <!-- Right anchor -->
  232. <td id="NoLoc4" class="styImage" width=8% align=right valign=bottom>
  233. </td>
  234. </tr>
  235. <!--
  236. Bottom anchor
  237. -->
  238. <tr height="24px"><td colspan=3>
  239. <table width=100% height=100% cellspacing=0 cellpadding=0><tbody><tr>
  240. <td width=90%></td><td class="styImage">
  241. </td>
  242. </tr></tbody></table>
  243. </td></tr>
  244. </tbody></table>
  245. </BODY>
  246. </HTML>