Checking in profile wizard on behalf of gayatrib and racham.

git-svn-id: svn://10.0.0.236/trunk@30153 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mcmullen%netscape.com
1999-05-04 19:29:52 +00:00
parent 74b1a94b65
commit e8570eee1b
5 changed files with 130 additions and 132 deletions

View File

@@ -11,56 +11,40 @@
<script>
function commit()
{
var element;
element = document.getElementById("ProfileName");
parent.SetValue(element.id, element.value);
element = document.getElementById("ProfileDir");
data += "ProfileDir="+element.value+"%";
parent.SetValue(element.id, element.value);
}
</script>
<table>
<tr>
<td >
If you create several profile you can tell them apart by the profile names
</td>
</tr>
<tr>
<td >
Enter New Profile name
</td>
</tr>
<tr>
<td>
<input type="text" id="ProfileName" size="30"/>
</td>
</tr>
<tr>
<td >
Your user settings will be stored in the directory below
</td>
</tr>
<b>Communicator Profile Manager</b>
<p>
Creating a New Profile
<br></br>
Communicator stores information about your settings, preferences, bookmarks and
<br></br>
stored messages in your personal profile.
</p>
<tr>
<td>
<input type="text" id="ProfileDir" size="30"/>
</td>
</tr>
<p>
If you are sharing this copy of Communicator with other users, you can use profiles
<br></br>
to keep each user's information separate. To do this, each user should create his or
<br></br>
her own profile and optionally protect it with a password.
</p>
<tr>
<td>
Please click Next to continue
</td>
</tr>
<p>
If you are the only person using this copy of Communicator, you must create atleast
<br></br>
one profile. If you would like, you can create multiple profiles for yourself to store
<br></br>
different sets of setting and preferences. For example, you may want to have separate
<br></br>
profiles for business and personal use.
</p>
</table>
</xul:window>
<p>
To begin Creating your profile, click Next.
</p>
</xul:window>

View File

@@ -12,64 +12,41 @@
function commit()
{
var element;
var value;
var data;
element = document.getElementById("name");
data = "ProfileName="+element.value+"%";
parent.SetValue("pname", element.value);
element = document.getElementById("ProfileName");
parent.SetValue(element.id, element.value);
element = document.getElementById("email");
element = document.getElementById("ProfileDir");
data += "ProfileDir="+element.value+"%";
parent.SetValue("setting", element.value);
parent.SetValue(element.id, element.value);
}
</script>
<table>
<tr>
<td >
Please Enter name and information for the profile
</td>
</tr>
<p>
If you create several profiles you can tell them apart by the profile names.
<br></br>
You may use the name provided here or use one of your own.
</p>
<tr>
<td >
Full name
</td>
</tr>
<p>
Enter New Profile name
<br></br>
<input type="text" id="ProfileName" size="30"/>
</p>
<tr>
<td>
<input type="text" id="name" size="30"/>
</td>
<p>
Your user settings, preferences, bookmarks and stored messages will be
<br></br>
stored in the directory below. We recommend that you use the default
<br></br>
directory (by leaving the box blank).
<br></br>
<input type="text" id="ProfileDir" size="30"/>
</p>
<td>
(e.g. John Smith)
</td>
</tr>
<tr>
<td >
Email Address if available
</td>
</tr>
<tr>
<td>
<input type="text" id="email" size="30"/>
</td>
<td >
(e.g. jsmith@company.com)
</td>
</tr>
<tr>
<td>
Please click Next to continue
</td>
</tr>
</table>
<p>
Please click Next to continue
</p>
</xul:window>

View File

@@ -7,14 +7,42 @@
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.w3.org/TR/REC-html40">
<script>
function commit()
{
var element;
element = document.getElementById("FullName");
parent.SetValue(element.id, element.value);
element = document.getElementById("Email");
data += "ProfileDir="+element.value+"%";
parent.SetValue(element.id, element.value);
}
</script>
Communicator Profile Manager
Start creating your profile
<p>
Please Enter name and information for the profile. This information will be
<br></br>
saved in the preferences of the new profile.
</p>
<p>
Full name
<br></br>
<input type="text" id="FullName" size="30"/> (e.g. John Smith)
</p>
<p>
Email Address if available
<br></br>
<input type="text" id="Email" size="30"/> (e.g. jsmith@company.com)
</p>
<p>
Please click Next to continue
</p>
</xul:window>

View File

@@ -12,47 +12,36 @@
function commit()
{
var element;
var value;
var data;
dump("GRRRRRR.....frame 4 commit called\n");
element = document.getElementById("smtp");
parent.SetValue("smtp", element.value);
element = document.getElementById("SMTP");
parent.SetValue(element.id, element.value);
}
</script>
<table>
<tr>
<td >
Please Enter information about your mail servers
</td>
</tr>
<tr>
<td >
Outgoing SMTP server
</td>
</tr>
<p>
Communicator now has enough information to setup your basic profile.
<br></br>
However, Communicator needs additional information if you want to
<br></br>
send or receive email or use newsgroups. If you do not know the
<br></br>
information requested, please contact your system administrator or
<br></br>
Internet Service Provider.
</p>
<tr>
<td>
<input type="text" id="smtp" size="30"/>
</td>
</tr>
<p>
Outgoing SMTP server
<br></br>
<input type="text" id="SMTP" size="30"/>
</p>
<tr>
<td>
Please click Next to continue entering information
</td>
</tr>
<tr>
<td>
Click Finish if you want to start communicator and enter your mail preferences later
</td>
</tr>
</table>
<p>
<b>
Click Exit and start apprunner again for this new profile
to be used.
</b>
</p>
</xul:window>

View File

@@ -15,6 +15,7 @@
var toolkitCore;
nameGlobal = new Array();
nameArray = new Array();
count = 0;
function Startup()
@@ -32,8 +33,27 @@ function Startup()
function SetValue(name, value)
{
nameGlobal[count] = name+"="+value+"%";
count++;
dump("Inside SetValue\n");
var found = false;
for (i = 0; i !=count; 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[count] = name+"="+value+"%";
dump("Name Value: "+name+" "+value+"\n");
nameArray[count] = name;
count++;
}
}
function Finish()