version 1.8, 2006/02/23 17:23:09
|
version 1.12, 2006/03/29 16:22:46
|
Line 102 sub handler {
|
Line 102 sub handler {
|
sub print_main_menu { |
sub print_main_menu { |
my ($r,$cdom,$cnum,$function,$tabcol,$functions,$idx,$view_permission, |
my ($r,$cdom,$cnum,$function,$tabcol,$functions,$idx,$view_permission, |
$manage_permission,$action,$rowColor1,$rowColor2) = @_; |
$manage_permission,$action,$rowColor1,$rowColor2) = @_; |
$r->print(&header('Course Groups',&mt('LON-CAPA Course Groups'), |
$r->print(&header('Course Groups',undef,undef,undef,undef,$function)); |
undef,undef,undef,undef,$function)); |
|
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
({href=>"/adm/coursegroups", |
({href=>"/adm/coursegroups", |
text=>"Course Groups",}); |
text=>"Course Groups",}); |
Line 465 sub group_administration {
|
Line 464 sub group_administration {
|
} |
} |
} |
} |
|
|
if ($action eq 'create') { |
if (($action eq 'create') || |
|
($action eq 'modify' && $state eq 'pick_members')) { |
if (defined($env{'form.types'})) { |
if (defined($env{'form.types'})) { |
@types=&Apache::loncommon::get_env_multiple('form.types'); |
@types=&Apache::loncommon::get_env_multiple('form.types'); |
} |
} |
Line 721 function changeSort(caller) {
|
Line 721 function changeSort(caller) {
|
} |
} |
|
|
my $loaditems = &onload_action($action,$state); |
my $loaditems = &onload_action($action,$state); |
$r->print(&header('Course Groups Manager',&mt('LON-CAPA Groups Manager'), |
$r->print(&header('Course Groups Manager', |
$jscript,$action,$state,$page,$function,$loaditems)); |
$jscript,$action,$state,$page,$function,$loaditems)); |
|
|
if ($env{'form.refpage'} eq 'enrl') { |
if ($env{'form.refpage'} eq 'enrl') { |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
Line 951 sub display_control {
|
Line 951 sub display_control {
|
} |
} |
|
|
sub header { |
sub header { |
my ($bodytitle,$title,$jscript,$action,$state,$page,$function,$loaditems) = @_; |
my ($bodytitle,$jscript,$action,$state,$page,$function,$loaditems) = @_; |
my $html=&Apache::lonxml::xmlbegin(); |
my $start_page= |
my $bodytag=&Apache::loncommon::bodytag($bodytitle,$function,$loaditems); |
&Apache::loncommon::start_page($bodytitle, |
|
'<script type="text/javascript">'. |
|
$jscript.'</script>', |
|
{'function' => $function, |
|
'add_entries' => $loaditems,}); |
my $output = <<"END"; |
my $output = <<"END"; |
$html |
$start_page |
<head> |
<form method="POST" name="$state"> |
<title>$title</title> |
|
<script type="text/javascript"> |
|
$jscript |
|
</script> |
|
</head> |
|
$bodytag |
|
<form method="post" name="$state"> |
|
|
|
END |
END |
if ($action eq 'create' || $action eq 'modify') { |
if ($action eq 'create' || $action eq 'modify') { |
Line 999 sub onload_action {
|
Line 996 sub onload_action {
|
} |
} |
|
|
sub footer { |
sub footer { |
|
my $end_page = &Apache::loncommon::end_page(); |
return(<<ENDFOOT); |
return(<<ENDFOOT); |
<input type="hidden" name="sortby" value="$env{'form.sortby'}" /> |
<input type="hidden" name="sortby" value="$env{'form.sortby'}" /> |
</form> |
</form> |
</body> |
$end_page |
</html> |
|
ENDFOOT |
ENDFOOT |
} |
} |
|
|