This commit is contained in:
gayatrib%netscape.com 1999-08-31 00:35:25 +00:00
Родитель 0f47c7f8db
Коммит bbcf28201f
4 изменённых файлов: 274 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,108 @@
<?xml version="1.0"?>
<?xml-stylesheet href="common.css" type="text/css"?>
<!DOCTYPE window>
<window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="CreateProfile Wizard">
<html:div flex="100%">
<html:script>
var profName = "";
var profDir = "";
var fullName = "";
var emailAddr = "";
var smtpVal = "";
var toolkitCore;
nameGlobal = new Array();
nameArray = new Array();
var count = 0;
var dataCount = 0;
function Startup()
{
//dump("Doing Startup...\n");
toolkitCore = XPAppCoresManager.Find("toolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("toolkitCore");
}
}
}
function SetValue(name, value)
{
//dump("Inside SetValue\n");
var found = false;
for (i = 0; i !=dataCount; i++) {
if (nameArray[i] == name) {
//dump("Name exists: "+nameGlobal[i]+"\n");
nameGlobal[i] = name+"="+value+"%";
//dump("New values: "+name+" "+value+"\n");
found = true;
break;
}
}
if (!found) {
//dump("Name does not exist\n");
nameGlobal[dataCount] = name+"="+value+"%";
//dump("Name Value: "+name+" "+value+"\n");
nameArray[dataCount] = name;
dataCount++;
}
}
function Finish()
{
var data = "";
var i = 0;
//dump("before for loop\n");
for (i = 0; i !=dataCount; i++) {
data = data+nameGlobal[i];
}
dump("DATA IS: "+data+"\n");
//dump("calling javascript reflection\n");
var profileCore = XPAppCoresManager.Find("ProfileCore");
if (!profileCore)
{
//dump("!profileCore\n");
profileCore = new ProfileCore();
//dump("!profileCore\n");
if (profileCore) {
//dump("after ! yes profileCore in if loop\n");
profileCore.Init("ProfileCore");
}
else {
dump("profile not created\n");
}
}
if (profileCore) {
//dump("yes profileCore\n");
profileCore.CreateNewProfile(data);
profileCore.StartCommunicator(profName);
}
}
</html:script>
<html:iframe src="content1.xul" name="frame1" width="100%" height="350px"> </html:iframe>
<html:iframe src="navStartPreg.xul" name="frame2" width="100%" height="100px"> </html:iframe>
</html:div>
</window>

Просмотреть файл

@ -0,0 +1,75 @@
<?xml version="1.0"?>
<?xml-stylesheet href="common.css" type="text/css"?>
<!DOCTYPE window>
<window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:div flex="100%">
<html:script>
var count = parent.count;
pages = new Object();
pages[0] = "resource:/res/profile/content1.xul";
pages[1] = "resource:/res/profile/content2.xul";
function BrowserLoadURL(func)
{
if (func == "Prev") {
if (count > 0) {
count = count - 1;
}
}
parent.frames[0].commit();
//parent.frames[0].location.replace( pages[count] );
parent.frames[0].location.href = pages[count];
parent.count = count;
//parent.frames[1].location.replace("resource:/res/profile/navigationStart.xul");
parent.frames[1].location.href = "resource:/res/profile/navigationStart.xul";
}
function SetValue(name, value)
{
//dump("Set Value");
//dump("name: "+name+"\n");
//dump("value: "+value+"\n");
}
function ExitWizard()
{
dump("Inside the Exit Wizard function...\n");
parent.frames[0].commit();
parent.Finish();
//parent.location.replace("resource:/res/profile/preg.html");
parent.location.href = "resource:/res/profile/preg.html";
//var toolkitCore = XPAppCoresManager.Find("toolkitCore");
//if (!toolkitCore) {
// toolkitCore = new ToolkitCore();
// if (toolkitCore) {
// toolkitCore.Init("toolkitCore");
// }
//}
//if (toolkitCore) {
// toolkitCore.CloseWindow(parent);
//}
}
</html:script>
<html:center>
<html:button onclick="BrowserLoadURL('Prev');"> Prev </html:button>
<html:button onclick="ExitWizard();"> Finish </html:button>
</html:center>
</html:div>
</window>

Просмотреть файл

@ -0,0 +1,63 @@
<?xml version="1.0"?>
<?xml-stylesheet href="common.css" type="text/css"?>
<!DOCTYPE window>
<window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:div flex="100%">
<html:script>
var count = parent.count;
pages = new Object();
pages[0] = "resource:/res/profile/content1.xul";
pages[1] = "resource:/res/profile/content2.xul";
function BrowserLoadURL(func)
{
if (func == "Prev") {
if (count > 0) {
count = count - 1;
}
}
if (func == "Next") {
if (count != 1) {
count = count + 1;
}
}
parent.frames[0].commit();
//parent.frames[0].location.replace( pages[count] );
parent.frames[0].location.href = pages[count];
if (count == 1) {
parent.count = count;
//parent.frames[1].location.replace("resource:/res/profile/navFinishPreg.xul");
parent.frames[1].location.href = "resource:/res/profile/navFinishPreg.xul";
}
}
function SetValue(name, value)
{
//dump("Set Value");
//dump("name: "+name+"\n");
//dump("value: "+value+"\n");
}
</html:script>
<html:center>
<html:button onclick="BrowserLoadURL('Prev');"> Prev </html:button>
<html:button onclick="BrowserLoadURL('Next');"> Next </html:button>
</html:center>
</html:div>
</window>

Просмотреть файл

@ -0,0 +1,28 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="GENERATOR" CONTENT="Mozilla/4.1 [en] (X11; I; IRIX 6.2 IP22) [Netscape]">
<TITLE>Hello</TITLE>
</HEAD>
<BODY>
<CENTER>
<H4>
Product Registration</H4></CENTER>
<HR>
<P><FORM METHOD="POST" ACTION="http://seaspace.mcom.com/racham/PReg/check.cgi">
User Name :&nbsp;<INPUT type=text size=15 name="PREG_USER_NAME">
<BR>
<P>
<BR><INPUT type=checkbox name="PREG_USER_DENIAL" value="TRUE">&nbsp;Do not register me&nbsp;
<BR>&nbsp;
<P>
<HR>
<P><INPUT type=submit value="submit"><INPUT type=reset value="clear">
<P>
<HR>
<P></FORM>
</BODY>
</HTML>