version 1.122, 2013/12/18 01:31:43
|
version 1.125, 2014/02/28 19:20:06
|
Line 831 sub group_administration {
|
Line 831 sub group_administration {
|
} |
} |
} |
} |
if (warn_zero == 1) { |
if (warn_zero == 1) { |
alert("You have indicated that the group portfolio should be enabled, but you have set the respository quota to 0 MB.\nThis will prevent any upload of files.\nPlease set a value or disable the repository feature."); |
alert("You have indicated that the group portfolio should be enabled, but you have set the repository quota to 0 MB.\nThis will prevent any upload of files.\nPlease set a value or disable the repository feature."); |
return; |
return; |
} |
} |
} |
} |
Line 2549 sub current_membership {
|
Line 2549 sub current_membership {
|
'actn' => 'Action?', |
'actn' => 'Action?', |
'name' => 'Name', |
'name' => 'Name', |
'usnm' => 'Username', |
'usnm' => 'Username', |
|
'stid' => 'ID', |
'doma' => 'Domain', |
'doma' => 'Domain', |
'stda' => 'Start Date', |
'stda' => 'Start Date', |
'enda' => 'End Date', |
'enda' => 'End Date', |
Line 2610 END
|
Line 2611 END
|
<th><a href="javascript:changeSort('fullname')">$lt{'name'}</a></th> |
<th><a href="javascript:changeSort('fullname')">$lt{'name'}</a></th> |
<th><a href="javascript:changeSort('username')">$lt{'usnm'}</a></th> |
<th><a href="javascript:changeSort('username')">$lt{'usnm'}</a></th> |
<th><a href="javascript:changeSort('domain')">$lt{'doma'}</a></th> |
<th><a href="javascript:changeSort('domain')">$lt{'doma'}</a></th> |
<th><a href="javascript:changeSort('id')">ID</a></th> |
<th><a href="javascript:changeSort('id')">$lt{'ID'}</a></th> |
<th><a href="javascript:changeSort('start')">$lt{'stda'}</a></th> |
<th><a href="javascript:changeSort('start')">$lt{'stda'}</a></th> |
<th><a href="javascript:changeSort('end')">$lt{'enda'}</a></th> |
<th><a href="javascript:changeSort('end')">$lt{'enda'}</a></th> |
END |
END |
Line 2734 END
|
Line 2735 END
|
} |
} |
$r->print(&Apache::loncommon::end_data_table()); |
$r->print(&Apache::loncommon::end_data_table()); |
} else { |
} else { |
$r->print(&mt('There are no active, future or previous group members to modify.')); |
$r->print( |
|
'<p class="LC_info">' |
|
.&mt('There are no active, future or previous group members to modify.') |
|
.'</p>'); |
} |
} |
return $numcurrent; |
return $numcurrent; |
} |
} |
Line 2802 sub change_privs_form {
|
Line 2806 sub change_privs_form {
|
} |
} |
} |
} |
if (!$exp_or_del) { |
if (!$exp_or_del) { |
$r->print($lt{'nome'}.'<br />'); |
$r->print('<p class="LC_info">'.$lt{'nome'}.'</p>'); |
} |
} |
|
|
$r->print(&Apache::lonhtmlcommon::topic_bar(4,&mt('Setting optional privileges for specific group members'))); |
$r->print(&Apache::lonhtmlcommon::topic_bar(4,&mt('Setting optional privileges for specific group members'))); |
Line 3365 sub write_group_data {
|
Line 3369 sub write_group_data {
|
&Apache::lonnet::logthis("Failed to store $gpterm $groupname ". |
&Apache::lonnet::logthis("Failed to store $gpterm $groupname ". |
'in '.lc($crstype).': '.$cnum. |
'in '.lc($crstype).': '.$cnum. |
' in domain: '.$cdom); |
' in domain: '.$cdom); |
$r->print('<div class="LC_error">' |
$r->print('<p class="LC_error">' |
.&mt('An error occurred when [_1] the '.$gpterm.'. ' |
.&mt('An error occurred when '.$actiontype{$action}.' the '.$gpterm.'. ' |
.'Please try again.',$actiontype{$action}) |
.'Please try again.') |
.'</div>'); |
.'</p'); |
} |
} |
return $result; |
return $result; |
} |
} |
Line 3499 sub process_membership {
|
Line 3503 sub process_membership {
|
if (grep/^$user$/,@reenable) { |
if (grep/^$user$/,@reenable) { |
$start = $startdate; |
$start = $startdate; |
$end = $enddate; |
$end = $enddate; |
$type = 'reenabled'; |
$type = 're-enabled'; |
} |
} |
} |
} |
if ($type eq '') { |
if ($type eq '') { |
Line 3535 sub process_membership {
|
Line 3539 sub process_membership {
|
if ($num_ok) { |
if ($num_ok) { |
my $msgall =''; |
my $msgall =''; |
foreach my $type (sort(keys(%added))) { |
foreach my $type (sort(keys(%added))) { |
my $message = &mt("The following users were successfully $type"); |
my $message; |
|
my $tmsg = "The following users were successfully $type"; |
if (!($type eq 'deleted' || $type eq 'expired')) { |
if (!($type eq 'deleted' || $type eq 'expired')) { |
$message .= &mt(' with the following privileges'); |
$tmsg .= ' with the following privileges'; |
} |
} |
$message .= ':<br/>'; |
$message .= &mt($tmsg.':').'<br/>'; |
foreach my $user (@{$added{$type}}) { |
foreach my $user (@{$added{$type}}) { |
my $privlist = ''; |
my $privlist = ''; |
if (!($type eq 'deleted' || $type eq 'expired')) { |
if (!($type eq 'deleted' || $type eq 'expired')) { |