version 1.25, 2009/05/25 14:31:00
|
version 1.29, 2009/12/02 18:33:35
|
Line 55 sub handler {
|
Line 55 sub handler {
|
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
$r->send_http_header; |
$r->send_http_header; |
|
|
|
# Breadcrumbs |
|
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
'text' => 'Construction Space', |
|
'href' => &Apache::loncommon::authorspace(), |
|
}); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
'text' => 'Custom Rights Editor', |
|
'title' => 'Custom Distribution Rights Editor', |
|
'href' => '',}); |
|
|
my $js = &Apache::loncommon::coursebrowser_javascript(). |
my $js = &Apache::loncommon::coursebrowser_javascript(). |
&Apache::loncommon::studentbrowser_javascript(); |
&Apache::loncommon::studentbrowser_javascript(); |
$r->print(&Apache::loncommon::start_page('Custom Distribution Rights',$js)); |
# Breadcrumbs are included by &start_page |
|
$r->print(&Apache::loncommon::start_page('Custom Distribution Rights',$js) |
|
.&Apache::loncommon::head_subbox( |
|
&Apache::loncommon::CSTR_pageheader()) |
|
); |
$r->rflush(); |
$r->rflush(); |
|
|
my $uri=$r->uri; |
my $uri=$r->uri; |
Line 196 sub handler {
|
Line 211 sub handler {
|
if ($constructmode) { |
if ($constructmode) { |
$r->print(&Apache::loncommon::select_form('','action_0', |
$r->print(&Apache::loncommon::select_form('','action_0', |
('' => '', |
('' => '', |
'insertbelow' => 'Insert rule below'))); |
'insertbelow' => &mt('Insert rule below')))); |
|
|
} else { |
} else { |
$r->print(' '); |
$r->print(' '); |
Line 205 sub handler {
|
Line 220 sub handler {
|
if ($constructmode) { |
if ($constructmode) { |
$r->print(&Apache::loncommon::select_form |
$r->print(&Apache::loncommon::select_form |
($token->[2]->{'effect'},'effect_0', |
($token->[2]->{'effect'},'effect_0', |
|
&Apache::lonlocal::texthash |
('allow' => 'allow', |
('allow' => 'allow', |
'deny' => 'deny'))); |
'deny' => 'deny'))); |
} else { |
} else { |
Line 227 sub handler {
|
Line 243 sub handler {
|
if ($constructmode) { |
if ($constructmode) { |
$r->print(&Apache::loncommon::select_form( |
$r->print(&Apache::loncommon::select_form( |
'','action_'.$rulecounter, |
'','action_'.$rulecounter, |
|
&Apache::lonlocal::texthash |
('' => '', |
('' => '', |
'delete' => 'Delete this rule', |
'delete' => 'Delete this rule', |
'insertabove' => 'Insert rule above', |
'insertabove' => 'Insert rule above', |
Line 241 sub handler {
|
Line 258 sub handler {
|
$r->print(&Apache::loncommon::select_form |
$r->print(&Apache::loncommon::select_form |
($token->[2]->{'effect'}, |
($token->[2]->{'effect'}, |
'effect_'.$rulecounter, |
'effect_'.$rulecounter, |
|
&Apache::lonlocal::texthash |
('allow' => 'allow', |
('allow' => 'allow', |
'deny' => 'deny'))); |
'deny' => 'deny'))); |
} else { |
} else { |
Line 253 sub handler {
|
Line 271 sub handler {
|
if ($constructmode) { |
if ($constructmode) { |
$r->print(&Apache::loncommon::select_form($type, |
$r->print(&Apache::loncommon::select_form($type, |
'type_'.$rulecounter, |
'type_'.$rulecounter, |
|
&Apache::lonlocal::texthash |
('course' => 'Course', |
('course' => 'Course', |
'user' => 'User'))); |
'user' => 'User'))); |
} else { |
} else { |