');
if ($constructmode) {
$r->print(&Apache::loncommon::select_form('','action_0',
- ('' => '',
- 'insertbelow' => 'Insert rule below')));
+ ('' => '',
+ 'insertbelow' => 'Insert rule below ')));
} else {
$r->print(' ');
@@ -199,7 +200,7 @@ ENDSTARTTABLE
while ($token=$parser->get_token) {
if (($token->[0] eq 'S') && ($token->[1] eq 'accessrule')) {
$rulecounter++;
- $r->print(' |
');
# insert, delete, etc
$r->print($rulecounter.'. ');
if ($constructmode) {
@@ -208,11 +209,11 @@ ENDSTARTTABLE
('' => '',
'delete' => 'Delete this rule',
'insertabove' => 'Insert rule above',
- 'insertbelow' => 'Insert rule below',
+ 'insertbelow' => 'Insert rule below ',
'moveup' => 'Move rule up',
'movedown' => 'Move rule down')));
}
- $r->print(' | ');
+ $r->print(' | ');
# effect
if ($constructmode) {
$r->print(&Apache::loncommon::select_form
@@ -228,8 +229,9 @@ ENDSTARTTABLE
my $realm=$token->[2]->{'realm'};
$realm=~s/^\W//;
my ($rdom,$rcourse,$rsec)=split(/[\/\_]/,$realm);
-# realm role
+# realm domain
if ($constructmode) {
+ unless ($rdom) { $rdom=$ENV{'user.domain'}; }
$r->print(&Apache::loncommon::select_dom_form($rdom,
'domain_'.$rulecounter));
} else {
@@ -244,7 +246,7 @@ ENDSTARTTABLE
$r->print($rcourse);
}
- $r->print(' | ');
+ $r->print(' | ');
# realm section
if ($constructmode) {
$r->print('');
# role
if ($constructmode) {
my %hash=('' => '');
@@ -267,6 +269,15 @@ ENDSTARTTABLE
} else {
$r->print(&Apache::lonnet::plaintext($token->[2]->{'role'}));
}
+# course selection link
+ $r->print(' |