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.
 
 
 
 
 
 

320 lines
7.6 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>System Restore Create Restore Point (Step RP)</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
<OBJECT ID=ObjSystemRestore CLASSID="CLSID:fd589b7c-7ce0-11d3-b9e5-00c04f79e399"></OBJECT>
<SCRIPT ID="RestoreUI" LANGUAGE=JavaScript SRC="RestoreUI.js"></SCRIPT>
<LINK id="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="rstrui.css">
<script>
var g_bPageLoaded = false;
var g_bCreateClicked = false;
var L_EmptyDescription_Message =
"Please enter a description for your restore point.";
var L_CreationFail_Message =
"System Restore is not able to create a restore point.\nPlease restart the computer, and then run System Restore again.";
function OnLink_HelpF1()
{
OnLink_CreateRP();
}
function OnCancel()
{
if ( ObjSystemRestore.Cancel() )
{
external.window.close();
}
}
function OnBack()
{
if ( g_bPageLoaded == false )
return ;
ObjSystemRestore.CanNavigatePage = true ;
self.location = "SRUI-Main.htm";
}
function OnCreate()
{
if ( g_bPageLoaded == false )
return ;
if ( g_bCreateClicked == true )
return;
if (!ObjSystemRestore.CanRunRestore())
{
external.window.close();
return;
}
g_bCreateClicked = true;
var strName = ObjEdit.value ;
strName = removeLeadingSpace(strName);
strName = removeTrailingSpace(strName);
ObjEdit.value = strName ;
if ( strName.length == 0 )
{
ObjSystemRestore.ShowMessage( L_EmptyDescription_Message );
ObjEdit.focus();
g_bCreateClicked = false;
return;
}
ObjSystemRestore.ManualRPName = strName;
if ( ObjSystemRestore.CreateRestorePoint() == false )
{
ObjSystemRestore.ShowMessage( L_CreationFail_Message );
BtnBack.focus();
g_bCreateClicked = false;
return;
}
ObjSystemRestore.CanNavigatePage = true;
self.location = "SRUI-ConfRP.htm";
}
//
// strip leading spaces
//
function removeLeadingSpace(str)
{
var text = str.replace(/^\s*/,"");
return text;
}
//
// strip leading spaces
//
function removeTrailingSpace(str)
{
var text = str.replace(/\s*$/,"");
return text;
}
</script>
<SCRIPT FOR=window EVENT=onresize>
ObjSystemRestore.CanNavigatePage = true ;
self.location = "SRUI-addrp.htm";
</SCRIPT>
<script for=window event=onload>
fnSetLowColorImage();
if (!ObjSystemRestore.CanRunRestore())
{
external.window.close();
return;
}
ObjSystemRestore.CanNavigatePage = false ;
window.HomePageBody.style.visibility = "visible";
ObjEdit.focus();
//
// Set page loaded
//
g_bPageLoaded = true ;
</script>
<SCRIPT FOR=ObjEdit EVENT=onkeydown>
if ( event.keyCode == 0x0D )
{
OnCreate();
return false;
}
return true;
</SCRIPT>
</HEAD>
<!--
Body of doc
-->
<BODY ID="HomePageBody">
<!--
Background image located on the bottom right of the page
-->
<DIV style="position: absolute; bottom: 0px; right: 0px; z-index: -1">
<img src="watermark.jpg" border=0 width="270" height="297"></DIV>
<table width=100% height=100% cellspacing=0 cellpadding=0 border=0><tbody>
<!--
Page header
-->
<tr height="60px"><td id="TdBranding" colspan=3 class="styHeaderBlock">
<table class="styImage" width=100% height=100% cellspacing=0 cellpadding=0 background="SR_Grad.jpg" style="border-collapse: collapse" bordercolor="#111111"><tbody><tr>
<td width="65px" nowrap>&nbsp;</td>
<td width=80% valign=top nowrap>
<div id="TxtHeader" class="styHeaderText">
<font color="#FFFFFF">Create a Restore Point </font>
</div>
</td>
<td>
<table><tr>
<td>
<a id="NoLoc1" class="styLink" href="javascript:OnLink_CreateRP();">
<img src="help.gif" border=0 width="32" height="32">
</a>
</td>
<td>
<a id="NoLoc1" class="styLink" href="javascript:OnLink_CreateRP();">
<font color="#FFFFFF"> <id id=HelpId>Help</id></font>
</a>
</td>
</tr></table>
<id id="NoLoc2">&nbsp;</id>
</td>
</tr></tbody></table>
</td></tr>
<tr height="3px"><td class="styHorzLine" colspan=3></td></tr>
<!--
Top anchor
-->
<tr height="25px"><td colspan=3>
<table width=100% height=100% cellspacing=0 cellpadding=0><tbody><tr>
<td width=90%></td>
<td class="styImage">
</td>
</tr></tbody></table>
</td></tr>
<tr>
<!-- Left anchor -->
<td id="NoLoc3" class="styImage" width=8% align=left valign=bottom>
</td>
<td>
<table width=100% height=100% cellspacing=0 cellpadding=0 border=0><tbody>
<tr>
<!--
PAGE CONTENT
-->
<td class="styContentBlock">
<p id="ParaMain1" class="styText">
Your computer automatically creates restore points at regularly scheduled
times or before certain programs are installed. However, you can use
System Restore to create your own restore points at times other than those
scheduled by your computer.
</p>
<p id="ParaMain2" class="styText">
Type a description for your restore point in the following text box.
Ensure that you choose a description that is easy to identify in case
you need to restore your computer later.
</p>
<table width=100% cellpadding=0 cellspacing=0><tbody><tr>
<td width=40px>&nbsp;</td>
<td>
<div id="DivRPHdr" class="styTextRPTitleBold">
Restore point description:
</div>
<div class="styText">
<input type=text size=64 maxlength=255 width=90% height=20 dir=ltr name=ObjEdit id=ObjEdit>
</div>
<p id="DivRPInfo1" class="styText">
The current date and time are automatically added to your restore point.
</p>
<p id="DivRPInfo2" class="styText">
This restore point cannot be changed after it is created. Before continuing,
ensure that you have typed the correct name.
</p>
</td>
</tr></tbody></table>
</td>
<!-- Right padding -->
<td class="styText" width=17%>&nbsp;</td>
</tr>
<!--
Navigation row
-->
<tr height="24px">
<td class="styText" height="12px" colspan=2 nowrap>
<table cellspacing=0 cellpadding=0 border=0><tbody><tr>
<td width="95%">&nbsp;</td>
<td class="styText" width="10%" nowrap>
<button id="BtnBack" class="styButton" onclick="OnBack()" accesskey="B" tabindex=0>
&lt; <U>B</U>ack
</button>
&nbsp;&nbsp;
<button id="BtnCreate" class="styButton" onclick="OnCreate()" accesskey="R" tabindex=0>
C<U>r</U>eate
</button>
&nbsp;&nbsp;
<button id="BtnCancel" class="styButton" onclick="OnCancel()" accesskey="C" tabindex=0>
<U>C</U>ancel
</button>
</td>
</tr></tbody></table>
</td>
</tr></tbody></table>
</td>
<!-- Right anchor -->
<td id="NoLoc4" class="styImage" width=8% align=right valign=bottom>
</td>
</tr>
<!--
Bottom anchor
-->
<tr height="24px"><td colspan=3>
<table width=100% height=100% cellspacing=0 cellpadding=0><tbody><tr>
<td width=90%></td><td class="styImage">
</td>
</tr></tbody></table>
</td></tr>
</tbody></table>
</BODY>
</HTML>