| ');
+ if ($constructmode) {
+ $r->print(&Apache::loncommon::select_form
+ ($token->[2]->{'effect'},'effect_0',
+ ('allow' => 'allow',
+ 'deny' => 'deny')));
+ } else {
+ $r->print($token->[2]->{'effect'});
+ }
+ $r->print(' | Default');
+ if (($token->[2]->{'realm'}) || ($token->[2]->{'role'})) {
+ $r->print(' - Error! No default set.');
+ }
+ $r->print(' |
');
+# Additional roles
while ($token=$parser->get_token) {
if (($token->[0] eq 'S') && ($token->[1] eq 'accessrule')) {
- $r->print('');
+# inset, delete, etc
+ $r->print(' | ');
+# effect
+ if ($constructmode) {
+ $r->print(&Apache::loncommon::select_form
+ ($token->[2]->{'effect'},
+ 'effect_'.$rulecounter,
+ ('allow' => 'allow',
+ 'deny' => 'deny')));
+ } else {
+ $r->print($token->[2]->{'effect'});
+ }
+ $r->print(' | ');
+# realm
+ my $realm=$token->[2]->{'realm'};
+ $realm=~s/^\W//;
+ my ($rdom,$rcourse,$rsec)=split(/(\/|\_)/,$realm);
+ if ($constructmode) {
+ $r->print(&Apache::loncommon::select_dom_form($rdom,
+ 'domain_'.$rulecounter));
+ } else {
+ $r->print($token->[2]->{'realm'});
+ }
+ $r->print(' | ');
+# role
+ if ($constructmode) {
+ } else {
+ $r->print($token->[2]->{'role'});
+ }
+# close row
+ $r->print(' |
');
}
}
+ $r->print('