1999-05-19 04:21:53 +00:00
|
|
|
<?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"
|
1999-07-05 17:01:00 +00:00
|
|
|
title="Profile Manager" align="vertical">
|
1999-05-19 04:21:53 +00:00
|
|
|
|
1999-07-06 08:26:47 +00:00
|
|
|
<html:div flex="100%">
|
1999-05-19 04:21:53 +00:00
|
|
|
|
|
|
|
<html:script>
|
|
|
|
var profName = "";
|
|
|
|
var profDir = "";
|
|
|
|
var fullName = "";
|
|
|
|
var emailAddr = "";
|
|
|
|
var smtpVal = "";
|
|
|
|
|
|
|
|
var toolkitCore;
|
|
|
|
nameGlobal = new Array();
|
|
|
|
nameArray = new Array();
|
|
|
|
var count = 0;
|
1999-06-12 00:32:12 +00:00
|
|
|
var dataCount = 0;
|
1999-05-19 04:21:53 +00:00
|
|
|
|
|
|
|
function Startup()
|
|
|
|
{
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("Doing Startup...\n");
|
1999-05-19 04:21:53 +00:00
|
|
|
toolkitCore = XPAppCoresManager.Find("toolkitCore");
|
|
|
|
if (!toolkitCore) {
|
|
|
|
toolkitCore = new ToolkitCore();
|
|
|
|
|
|
|
|
if (toolkitCore) {
|
|
|
|
toolkitCore.Init("toolkitCore");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function SetValue(name, value)
|
|
|
|
{
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("Inside SetValue\n");
|
1999-05-19 04:21:53 +00:00
|
|
|
var found = false;
|
1999-06-12 00:32:12 +00:00
|
|
|
for (i = 0; i !=dataCount; i++) {
|
1999-05-19 04:21:53 +00:00
|
|
|
if (nameArray[i] == name) {
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("Name exists: "+nameGlobal[i]+"\n");
|
1999-05-19 04:21:53 +00:00
|
|
|
nameGlobal[i] = name+"="+value+"%";
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("New values: "+name+" "+value+"\n");
|
1999-05-19 04:21:53 +00:00
|
|
|
found = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!found) {
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("Name does not exist\n");
|
|
|
|
nameGlobal[dataCount] = name+"="+value+"%";
|
|
|
|
//dump("Name Value: "+name+" "+value+"\n");
|
1999-05-19 04:21:53 +00:00
|
|
|
|
1999-06-12 00:32:12 +00:00
|
|
|
nameArray[dataCount] = name;
|
|
|
|
dataCount++;
|
1999-05-19 04:21:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function Finish()
|
|
|
|
{
|
|
|
|
var data = "";
|
|
|
|
var i = 0;
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("before for loop\n");
|
|
|
|
for (i = 0; i !=dataCount; i++) {
|
1999-05-19 04:21:53 +00:00
|
|
|
data = data+nameGlobal[i];
|
|
|
|
}
|
|
|
|
dump("DATA IS: "+data+"\n");
|
|
|
|
|
|
|
|
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("calling javascript reflection\n");
|
1999-05-19 04:21:53 +00:00
|
|
|
var profileCore = XPAppCoresManager.Find("ProfileCore");
|
|
|
|
if (!profileCore)
|
|
|
|
{
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("!profileCore\n");
|
1999-05-19 04:21:53 +00:00
|
|
|
profileCore = new ProfileCore();
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("!profileCore\n");
|
1999-05-19 04:21:53 +00:00
|
|
|
|
|
|
|
if (profileCore) {
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("after ! yes profileCore in if loop\n");
|
1999-05-19 04:21:53 +00:00
|
|
|
profileCore.Init("ProfileCore");
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
dump("profile not created\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (profileCore) {
|
1999-06-12 00:32:12 +00:00
|
|
|
//dump("yes profileCore\n");
|
1999-05-19 04:21:53 +00:00
|
|
|
profileCore.CreateNewProfile(data);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</html:script>
|
|
|
|
|
|
|
|
<html:iframe src="content1.xul" name="frame1" width="100%" height="350px"> </html:iframe>
|
|
|
|
<html:iframe src="navigationManagerStart.xul" name="frame2" width="100%" height="90px"> </html:iframe>
|
|
|
|
|
1999-07-06 08:26:47 +00:00
|
|
|
</html:div>
|
1999-05-19 04:21:53 +00:00
|
|
|
</window>
|