version 1.105.2.10, 2015/03/12 03:28:51
|
version 1.114, 2013/10/21 22:34:33
|
Line 600 sub display_actions_box {
|
Line 600 sub display_actions_box {
|
} |
} |
my $classlist; |
my $classlist; |
if ($show{'oldroles'} || $show{'newroles'} || $show{'crslogin'}) { |
if ($show{'oldroles'} || $show{'newroles'} || $show{'crslogin'}) { |
$classlist = &Apache::loncoursedata::get_classlist(); |
$classlist = &Apache::loncoursedata::get_classlist(); |
} |
} |
if ($show{'coursenormalmail'}) { |
if ($show{'coursenormalmail'}) { |
$msgcount = &getnormalmail(\@newmsgs); |
$msgcount = &getnormalmail(\@newmsgs); |
Line 799 function toggle_countunread(choice) {
|
Line 799 function toggle_countunread(choice) {
|
.'<br />' |
.'<br />' |
.&mt("This can increase the time taken to gather data for the [_1]What's New Page[_2] by a few seconds.",'<i>','</i>') |
.&mt("This can increase the time taken to gather data for the [_1]What's New Page[_2] by a few seconds.",'<i>','</i>') |
.' ' |
.' ' |
.&mt('Currently set to [_1].','<b>'.$current.'</b>') |
.&mt('Currently set to [_1].','<b>'.$current.'</b>.') |
); |
); |
$r->print('<br /><br /> |
$r->print('<br /><br /> |
<form method="post" name="discussionswitch" action="/adm/whatsnew"> |
<form method="post" name="discussionswitch" action="/adm/whatsnew"> |
Line 1164 sub get_curr_thresholds {
|
Line 1164 sub get_curr_thresholds {
|
my $thresholdcount = 0; |
my $thresholdcount = 0; |
my ($tmp) = %thresholdsettings; |
my ($tmp) = %thresholdsettings; |
unless ($tmp =~ /^(con_lost|error|no_such_host)/i) { |
unless ($tmp =~ /^(con_lost|error|no_such_host)/i) { |
foreach my $item (keys(%{$threshold})) { |
foreach my $item (keys %{$threshold}) { |
if (exists($thresholdsettings{$cid.':threshold_'.$item})) { |
if (exists($thresholdsettings{$cid.':threshold_'.$item})) { |
$$threshold{$item} = |
$$threshold{$item} = |
$thresholdsettings{$cid.':threshold_'.$item}; |
$thresholdsettings{$cid.':threshold_'.$item}; |
Line 1179 sub get_curr_thresholds {
|
Line 1179 sub get_curr_thresholds {
|
$cdom,$crs,'internal.threshold'); |
$cdom,$crs,'internal.threshold'); |
my ($temp) = %coursesettings; |
my ($temp) = %coursesettings; |
unless ($temp =~ /^(con_lost|error|no_such_host)/i) { |
unless ($temp =~ /^(con_lost|error|no_such_host)/i) { |
foreach my $item (keys(%{$threshold})) { |
foreach my $item (keys %{$threshold}) { |
unless (exists($thresholdsettings{$cid.':threshold_'.$item})) { |
unless (exists($thresholdsettings{$cid.':threshold_'.$item})) { |
if (exists($coursesettings{'internal.threshold_'.$item})) { |
if (exists($coursesettings{'internal.threshold_'.$item})) { |
$$threshold{$item} = |
$$threshold{$item} = |
Line 1246 sub process_reset {
|
Line 1246 sub process_reset {
|
sub process_update { |
sub process_update { |
my ($uname,$udom,$threshold_titles) = @_; |
my ($uname,$udom,$threshold_titles) = @_; |
my $setoutput = '<b>'.&mt('Changes to threshold(s) for problem tracking:').'</b><br/><br />'; |
my $setoutput = '<b>'.&mt('Changes to threshold(s) for problem tracking:').'</b><br/><br />'; |
foreach my $key (keys(%env)) { |
foreach (keys %env) { |
my $name; |
next if ($_!~/^form\.(.+)\_setparmval$/); |
if ($key =~/^form\.(.+)\_setparmval$/) { |
my $name = $1; |
$name = $1; |
|
} else { |
|
next; |
|
} |
|
my $value = $env{'form.'.$name.'_value'}; |
my $value = $env{'form.'.$name.'_value'}; |
if ($name && defined($value) && ($value ne '')) { |
if ($name && defined($value) && ($value ne '')) { |
my $put_result = &Apache::lonnet::put('nohist_whatsnew', |
my $put_result = &Apache::lonnet::put('nohist_whatsnew', |
Line 1622 sub display_handgrade {
|
Line 1618 sub display_handgrade {
|
foreach my $res (@{$tograde}) { |
foreach my $res (@{$tograde}) { |
$rowNum ++; |
$rowNum ++; |
my $css_class = $rowNum%2?' class="LC_odd_row"':''; |
my $css_class = $rowNum%2?' class="LC_odd_row"':''; |
my ($map,$id,$url)=&Apache::lonnet::decode_symb($res); |
my $linkurl='/adm/grades'; |
my $linkurl=&Apache::lonnet::clutter($url); |
|
$linkurl .= '?symb='.&escape($res); |
|
if ($$ungraded{$res}{'enclink'}) { |
if ($$ungraded{$res}{'enclink'}) { |
$linkurl = |
$linkurl.='?symb='.$$ungraded{$res}{'encsymb'}; |
$$ungraded{$res}{'enclink'}.'?symb='.$$ungraded{$res}{'encsymb'}; |
} else { |
|
$linkurl.='?symb='.&escape($res); |
} |
} |
|
$linkurl.='&command=ungraded'; |
$r->print('<tr'.$css_class.'><td><a href="'.$linkurl.'">'.$$ungraded{$res}{title}.'</a></td><td class="LC_right_item">'.$$ungraded{$res}{count}.'</td></tr>'); |
$r->print('<tr'.$css_class.'><td><a href="'.$linkurl.'">'.$$ungraded{$res}{title}.'</a></td><td class="LC_right_item">'.$$ungraded{$res}{count}.'</td></tr>'); |
} |
} |
} elsif ($itemserror) { |
} elsif ($itemserror) { |
Line 1870 sub display_crslogins {
|
Line 1866 sub display_crslogins {
|
my $udom = $user->{'udom'}; |
my $udom = $user->{'udom'}; |
my $fullname; |
my $fullname; |
if (ref($classlist->{$uname.':'.$udom}) eq 'ARRAY') { |
if (ref($classlist->{$uname.':'.$udom}) eq 'ARRAY') { |
$fullname = $classlist->{$uname.':'.$udom}->[$fullnameidx]; |
$fullname = $classlist->{$user}->[$fullnameidx]; |
} else { |
} else { |
$fullname = &Apache::loncommon::plainname($uname,$udom,'lastname'); |
$fullname = &Apache::loncommon::plainname($uname,$udom,'lastname'); |
} |
} |
Line 1950 sub display_coursediscussion {
|
Line 1946 sub display_coursediscussion {
|
my $forum_title = $$unread{$ressymb}{'title'}; |
my $forum_title = $$unread{$ressymb}{'title'}; |
my $type = 'Resource'; |
my $type = 'Resource'; |
my $feedurl=&Apache::lonfeedback::get_feedurl($ressymb); |
my $feedurl=&Apache::lonfeedback::get_feedurl($ressymb); |
my $disclink = $feedurl.'?symb='.&escape($$unread{$ressymb}{symb}); |
my $disclink = $feedurl.'?symb='. &escape($$unread{$ressymb}{symb}); |
if ($feedurl =~ /bulletinboard/) { |
if ($feedurl =~ /bulletinboard/) { |
$type = 'Discussion Board'; |
$type = 'Discussion Board'; |
} |
} |