windows-nt/Source/XPSP1/NT/admin/pchealth/sr/shell/res/srui-main.htm
2020-09-26 16:20:57 +08:00

389 lines
9.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>System Restore Introduction (Step 1)</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_lLastRestore = -1;
function OnLink_HelpF1()
{
OnLink_About();
}
function OnCancel()
{
if ( ObjSystemRestore.Cancel() )
{
external.window.close();
}
}
function OnNext()
{
ObjSystemRestore.CanNavigatePage = true;
if (!ObjSystemRestore.CanRunRestore())
{
external.window.close();
return;
}
if ( RadioTask[0].checked )
{
if (ObjSystemRestore.DisplayMoveFileExWarning())
{
external.window.close();
}
ObjSystemRestore.DisplayOtherUsersWarning();
//
// Disable FIFO and then initalize to get restore points
//
ObjSystemRestore.DisableFIFO();
ObjSystemRestore.InitializeAll();
// Normal Restore
ObjSystemRestore.MainOption = 0 ;
ObjSystemRestore.IsUndo = false;
self.location = "SRUI-Pick.htm";
}
else if ( RadioTask[1].checked )
{
// Create a manual restore point
ObjSystemRestore.MainOption = 1 ;
ObjSystemRestore.ManualRPName = "";
self.location = "SRUI-AddRP.htm";
}
else
{
// if (ObjSystemRestore.DisplayMoveFileExWarning())
// {
// external.window.close();
// }
ObjSystemRestore.DisplayOtherUsersWarning();
//
// Disable FIFO and then initalize to get restore points
//
ObjSystemRestore.DisableFIFO();
ObjSystemRestore.InitializeAll();
// Undo the last restore
ObjSystemRestore.MainOption = 2 ;
ObjSystemRestore.IsUndo = true;
ObjSystemRestore.SelectedPoint = g_lLastRestore;
if ( ObjSystemRestore.CheckRestore() )
{
self.location = "SRUI-Confirm.htm";
}
}
}
function OnLink_Configure()
{
var shell = new ActiveXObject( "Wscript.Shell" );
shell.Run( "control sysdm.cpl,,4", 1, false );
}
function OnRbKeyDown()
{
if (event.keyCode == 13) // enter key
{
OnNext();
window.event.returnValue=false;
}
if (TrCreateRP.disabled == true)
{
if (event.srcElement == RadioTask[0] && event.keyCode == 40) // down arrow
{
RadioTask[2].focus();
RadioTask[2].checked = true;
window.event.returnValue = false;
}
if (event.srcElement == RadioTask[2] && event.keyCode == 38) // up arrow
{
RadioTask[0].focus();
RadioTask[0].checked = true;
window.event.returnValue = false;
}
}
window.event.cancelBubble = true;
}
</script>
<SCRIPT FOR=window EVENT=onresize>
//
// Persist selection and resize
//
if ( RadioTask[0].checked )
ObjSystemRestore.MainOption = 0 ;
else if ( RadioTask[1].checked )
ObjSystemRestore.MainOption = 1 ;
else if ( RadioTask[2].checked )
ObjSystemRestore.MainOption = 2 ;
ObjSystemRestore.CanNavigatePage = true;
self.location = "SRUI-Main.htm";
</SCRIPT>
<script for=window event=onload>
fnSetLowColorImage();
ObjSystemRestore.CanNavigatePage = false;
window.HomePageBody.style.visibility = "visible";
if ( ObjSystemRestore.IsSafeMode == false )
{
TrCreateRP.style.display = "block";
TrCreateRP.disabled = false ;
}
if (!ObjSystemRestore.CanRunRestore())
{
external.window.close();
return;
}
ObjSystemRestore.EnableFIFO();
g_lLastRestore = ObjSystemRestore.LastRestore;
if ( g_lLastRestore >= 0 )
{
if (!ObjSystemRestore.WasLastRestoreFromSafeMode())
{
TrUndoRestore.style.display = "block";
TrUndoRestore.disabled = false ;
}
}
//
// Get current MainOption persisted and set this
//
{
var nMainOption = ObjSystemRestore.MainOption ;
if ( nMainOption >= 0 && nMainOption < 3 )
{
RadioTask[0].checked = false ;
RadioTask[1].checked = false ;
RadioTask[2].checked = false ;
RadioTask[nMainOption].checked = true ;
RadioTask[nMainOption].focus();
}
else
{
RadioTask[0].checked = true ;
RadioTask[0].focus();
}
}
</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% cellpadding=0 cellspacing=0 border=0><tbody>
<!--
Page header
-->
<tr height="60px"><td id="TdBranding" colspan=3 class="styHeaderBlock">
<table class="styImage" width=100% height=100% cellpadding=0 cellspacing=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">Welcome to System Restore </font>
</div>
</td>
<td>
<table><tr>
<td>
<a id="NoLoc1" class="styLink" href="javascript:OnLink_About();">
<img src="help.gif" alt="Help" border=0 width="32" height="32">
</a>
</td>
<td>
<a id="NoLoc1" class="styLink" href="javascript:OnLink_About();">
<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% cellpadding=0 cellspacing=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% cellpadding=0 cellspacing=0 border=0><tbody>
<tr>
<!--
PAGE CONTENT
-->
<td class="styContentBlock" width="45%">
<p id="ParaMain1" class="styText">
You can use System Restore to undo harmful changes to your computer and restore
its settings and performance. System Restore returns your computer to an earlier
time (called a restore point) without causing you to lose recent work, such as
saved documents, e-mail, or history and favorites lists.
<br><br>
Any changes that System Restore makes to your computer are completely reversible.
<br><br>
Your computer automatically creates restore points (called system checkpoints),
but you can also use System Restore to create your own restore points. This is
useful if you are about to make a major change to your system, such as installing
a new program or changing your registry.
</p>
<div>
<a id="NoLoc4" class="styLink" href="javascript:OnLink_Configure();">
<id id="TxtConfigLink">System Restore Settings</id>
</a>
</div>
</td>
<td class="styText" width=5%>&nbsp;</td>
<td class="styVertLine" width=1px></td>
<td class="styText" width=5%>&nbsp;</td>
<td class="styContentBlock">
<br>
<p id="ParaTaskHdr" class="styTextBold">
To begin, select the task that you want to perform:
</p>
<table id="Tasks" cellpadding=0 cellspacing=0 border=0><tbody>
<tr>
<td><input id="BtnTask1" name="RadioTask" type=radio accesskey="R" onkeydown="OnRbKeyDown()" checked></td>
<td class="styText">
<label id="TxtTask1" for="BtnTask1">
<U>R</U>estore my computer to an earlier time
</label>
</td>
</tr>
<tr height=6px><td></td></tr>
<tr id="TrCreateRP" style="display:none" DISABLED>
<td><input id="BtnTask2" name="RadioTask" type=radio accesskey="E" onkeydown="OnRbKeyDown()"></td>
<td class="styText">
<label id="TxtTask2" for="BtnTask2">
Cr<U>e</U>ate a restore point
</label>
</td>
</tr>
<tr height=6px><td></td></tr>
<tr id="TrUndoRestore" style="display:none" DISABLED>
<td><input id="BtnTask3" name="RadioTask" type=radio accesskey="U" onkeydown="OnRbKeyDown()"></td>
<td class="styText">
<label id="TxtTask3" for="BtnTask3">
<U>U</U>ndo my last restoration
</label>
</td>
</tr>
</tbody></table>
</td>
</tr>
<!--
Navigation row
-->
<tr height="24px">
<td class="styText" height="12px" colspan=5 nowrap>
<table cellspacing=0 cellpadding=0 border=0><tbody><tr>
<td id="TxtInstruction" class="styInstruction" width="50%">
To continue, select an option, and then click Next.
</td>
<td width="10%">&nbsp;</td>
<td class="styText" width="10%" nowrap>
<button id="BtnNext" class="styButton" onclick="OnNext()" accesskey="N" tabindex=0>
<U>N</U>ext &gt;
</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="NoLoc5" class="styImage" width=8% align=right valign=bottom>
</td>
</tr>
<!--
Bottom anchor
-->
<tr height="24px"><td colspan=3>
<table cellspacing=0 cellpadding=0 width=100% height=100%><tbody><tr>
<td width=90%></td><td class="styImage">
</td>
</tr></tbody></table>
</td></tr>
</tbody></table>
</BODY>
</HTML>