version 1.44, 2003/09/02 20:58:31
|
version 1.46, 2003/09/16 20:00:57
|
Line 1667 resources in that sequence, or recurses
|
Line 1667 resources in that sequence, or recurses
|
to false. The "suppressEmptySequences" attribute reflects the |
to false. The "suppressEmptySequences" attribute reflects the |
suppressEmptySequences argument to the render routine, which will cause |
suppressEmptySequences argument to the render routine, which will cause |
folders that have all of their contained resources filtered out to also |
folders that have all of their contained resources filtered out to also |
be filtered out. |
be filtered out. The 'addstatus' attribute, if true, will add the icon |
|
and long status display columns to the display. |
|
|
=head3 SUB-TAGS |
=head3 SUB-TAGS |
|
|
Line 1730 sub start_resource {
|
Line 1731 sub start_resource {
|
$paramHash->{'multichoice'} = $token->[2]{'multichoice'}; |
$paramHash->{'multichoice'} = $token->[2]{'multichoice'}; |
$paramHash->{'suppressEmptySequences'} = $token->[2]{'suppressEmptySequences'}; |
$paramHash->{'suppressEmptySequences'} = $token->[2]{'suppressEmptySequences'}; |
$paramHash->{'toponly'} = $token->[2]{'toponly'}; |
$paramHash->{'toponly'} = $token->[2]{'toponly'}; |
|
$paramHash->{'addstatus'} = $token->[2]{'addstatus'}; |
return ''; |
return ''; |
} |
} |
|
|
Line 1895 BUTTONS
|
Line 1897 BUTTONS
|
}; |
}; |
|
|
$ENV{'form.condition'} = !$self->{'toponly'}; |
$ENV{'form.condition'} = !$self->{'toponly'}; |
|
my $cols = [$renderColFunc, Apache::lonnavmaps::resource()]; |
|
if ($self->{'addstatus'}) { |
|
push @$cols, (Apache::lonnavmaps::part_status_summary()); |
|
|
|
} |
$result .= |
$result .= |
&Apache::lonnavmaps::render( { 'cols' => [$renderColFunc, |
&Apache::lonnavmaps::render( { 'cols' => $cols, |
Apache::lonnavmaps::resource()], |
|
'showParts' => 0, |
'showParts' => 0, |
'filterFunc' => $filterFunc, |
'filterFunc' => $filterFunc, |
'resource_no_folder_link' => 1, |
'resource_no_folder_link' => 1, |
Line 2867 sub render {
|
Line 2873 sub render {
|
} |
} |
|
|
if ($self->{'restartCourse'}) { |
if ($self->{'restartCourse'}) { |
|
my $targetURL = '/adm/menu'; |
|
if ($ENV{'course.'.$ENV{'request.course.id'}.'.clonedfrom'}) { |
|
$targetURL = '/adm/parmset?overview=1'; |
|
} |
$result .= "<center>\n" . |
$result .= "<center>\n" . |
"<form action='/adm/roles' method='post' target='loncapaclient'>\n" . |
"<form action='/adm/roles' method='post' target='loncapaclient'>\n" . |
"<input type='button' onclick='history.go(-1)' value='<- Previous' />" . |
"<input type='button' onclick='history.go(-1)' value='<- Previous' />" . |
"<input type='hidden' name='orgurl' value='/adm/menu' />" . |
"<input type='hidden' name='orgurl' value='$targetURL' />" . |
"<input type='hidden' name='selectrole' value='1' />\n" . |
"<input type='hidden' name='selectrole' value='1' />\n" . |
"<input type='hidden' name='" . $ENV{'request.role'} . |
"<input type='hidden' name='" . $ENV{'request.role'} . |
"' value='1' />\n<input type='submit' value='Finish Course Initialization' />\n" . |
"' value='1' />\n<input type='submit' value='Finish Course Initialization' />\n" . |