--- loncom/interface/lonpreferences.pm 2002/10/14 20:41:07 1.15
+++ loncom/interface/lonpreferences.pm 2003/04/19 01:34:22 1.19
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Preferences
#
-# $Id: lonpreferences.pm,v 1.15 2002/10/14 20:41:07 albertel Exp $
+# $Id: lonpreferences.pm,v 1.19 2003/04/19 01:34:22 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -148,7 +148,7 @@ sub verify_and_change_screenname {
}
# Nickname
$message.='
';
- my $newscreen = $ENV{'form.nickname'};
+ $newscreen = $ENV{'form.nickname'};
$newscreen=~s/[^ \w]//g;
if ($newscreen) {
&Apache::lonnet::put('environment',{'nickname' => $newscreen});
@@ -172,69 +172,146 @@ ENDVCSCREEN
}
################################################################
-# Message Forward #
+# Colors #
################################################################
-sub msgforwardchanger {
+sub colorschanger {
my $r = shift;
- my $user = $ENV{'user.name'};
- my $domain = $ENV{'user.domain'};
- my %userenv = &Apache::lonnet::get('environment',['msgforward']);
- my $msgforward=$userenv{'msgforward'};
my $bodytag=&Apache::loncommon::bodytag(
- 'Change Your Message Forwarding');
- $r->print(< 'Page Background',
+ 'tabbg' => 'Header Background',
+ 'sidebg'=> 'Header Border',
+ 'font' => 'Font',
+ 'link' => 'Un-Visited Link',
+ 'vlink' => 'Visited Link',
+ 'alink' => 'Active Link');
+ my $chtable='';
+ foreach my $item (keys %colortypes) {
+ my $curcol=&Apache::loncommon::designparm($function.'.'.$item,$domain);
+ $chtable.=''.$colortypes{$item}.' | | | Select |
';
+ }
+ $r->print(<
+
$bodytag