--- loncom/interface/loncreateuser.pm 2001/03/17 15:06:57 1.7
+++ loncom/interface/loncreateuser.pm 2001/03/19 19:54:37 1.9
@@ -229,15 +229,37 @@ ENDNUSER
}
}
$r->print('
Add Roles
System Level
');
- $r->print('Domain Level
');
+#
+# Domain level
+#
+ $r->print('Domain Level
'.
+ '');
+#
+# Course level
+#
$r->print('Course Level
'.
'Activate | Role | Extent | '.
'Group/Section | Start | End |
');
@@ -343,7 +365,20 @@ ENDTHREEHEAD
$r->print('Assigning: '.$3.' in '.$url.': '.
&Apache::lonnet::assignrole($ENV{'form.cdomain'},$ENV{'form.cuname'},
$url,$3,$end,$start).'
');
- }
+ } elsif (($_=~/^form\.act\_([^\_]+)\_([^\_]+)$/) && ($ENV{$_})) {
+ my $url='/'.$1.'/';
+ my $start=$now;
+ if ($ENV{'form.start_'.$1.'_'.$2}) {
+ $start=$ENV{'form.start_'.$1.'_'.$2};
+ }
+ my $end=0;
+ if ($ENV{'form.end_'.$1.'_'.$2}) {
+ $end=$ENV{'form.end_'.$1.'_'.$2};
+ }
+ $r->print('Assigning: '.$2.' in '.$url.': '.
+ &Apache::lonnet::assignrole($ENV{'form.cdomain'},$ENV{'form.cuname'},
+ $url,$2,$end,$start).'
');
+ }
} keys %ENV;
$r->print('