version 1.24, 2007/07/13 18:35:28
|
version 1.26, 2009/05/26 11:21:47
|
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' => '', # FIXME Add link to /priv/[user] |
|
}); |
|
&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)); |
$r->print(&Apache::loncommon::start_page('Custom Distribution Rights',$js) |
|
.&Apache::lonhtmlcommon::breadcrumbs() |
|
.&Apache::loncommon::head_subbox( |
|
&Apache::loncommon::CSTR_pageheader()) |
|
); |
$r->rflush(); |
$r->rflush(); |
|
|
my $uri=$r->uri; |
my $uri=$r->uri; |
Line 174 sub handler {
|
Line 189 sub handler {
|
my $token; |
my $token; |
my $rulecounter=0; |
my $rulecounter=0; |
my $colzero=&mt($constructmode?'Edit action':'Rule'); |
my $colzero=&mt($constructmode?'Edit action':'Rule'); |
my %lt=&Apache::lonlocal::texthash('ef' => 'Effect', |
my %lt=&Apache::lonlocal::texthash( |
|
'ef' => 'Effect', |
|
'ty' => 'Type', |
'do' => 'Domain', |
'do' => 'Domain', |
'co' => 'Course / User', |
'co' => 'Course / User', |
'se' => 'Section', |
'se' => 'Section', |
Line 182 sub handler {
|
Line 199 sub handler {
|
# ---------------------------------------------------------- Start table output |
# ---------------------------------------------------------- Start table output |
$r->print(&Apache::loncommon::start_data_table(). |
$r->print(&Apache::loncommon::start_data_table(). |
&Apache::loncommon::start_data_table_header_row(). |
&Apache::loncommon::start_data_table_header_row(). |
"<th>$colzero</th><th>$lt{'ef'}</th><th>Type</th><th>$lt{'do'}</th>". |
"<th>$colzero</th><th>$lt{'ef'}</th><th>$lt{'ty'}</th><th>$lt{'do'}</th>". |
"<th>$lt{'co'}</th><th>$lt{'se'}</th><th>$lt{'ro'}</th>". |
"<th>$lt{'co'}</th><th>$lt{'se'}</th><th>$lt{'ro'}</th>". |
&Apache::loncommon::end_data_table_header_row()); |
&Apache::loncommon::end_data_table_header_row()); |
# --------------------------------------------------------------------- Default |
# --------------------------------------------------------------------- Default |
Line 194 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' => 'Insert rule below'))); |
|
|
} else { |
} else { |
$r->print(' '); |
$r->print(' '); |
Line 228 sub handler {
|
Line 245 sub handler {
|
('' => '', |
('' => '', |
'delete' => 'Delete this rule', |
'delete' => 'Delete this rule', |
'insertabove' => 'Insert rule above', |
'insertabove' => 'Insert rule above', |
'insertbelow' => 'Insert rule below ', |
'insertbelow' => 'Insert rule below', |
'moveup' => 'Move rule up', |
'moveup' => 'Move rule up', |
'movedown' => 'Move rule down'))); |
'movedown' => 'Move rule down'))); |
} |
} |