version 1.570, 2025/02/03 03:04:24
|
version 1.571, 2025/02/03 19:07:54
|
Line 1573 sub render {
|
Line 1573 sub render {
|
my $curRes; |
my $curRes; |
my $foundJump = 0; |
my $foundJump = 0; |
my $counter = 0; |
my $counter = 0; |
|
|
while (($curRes = $mapIterator->next()) && !$foundJump) { |
while (($curRes = $mapIterator->next()) && !$foundJump) { |
if (ref($curRes)) { $counter++; } |
if (ref($curRes)) { $counter++; } |
# Speed up display after course initialization |
# Speed up display after course initialization |
Line 1604 sub render {
|
Line 1604 sub render {
|
# Print key? |
# Print key? |
if ($printKey) { |
if ($printKey) { |
my $location = &Apache::loncommon::lonhttpdurl("/adm/lonMisc"); |
my $location = &Apache::loncommon::lonhttpdurl("/adm/lonMisc"); |
$result .= '<table border="0" cellpadding="2" cellspacing="0">'. |
$result .= '<div class="LC_navtools">'."\n". |
'<tr><td align="right" valign="bottom">Key: </td>'. |
'<span class="LC_middle LC_right">'.&mt('Key').':</span>'. |
'<td align="center" valign="bottom"> '. |
'<span class="LC_middle LC_center"> '. |
'<img src="'.$location.'/chat.gif" alt="" /> '.&mt('Unread Discussion'). |
'<img src="'.$location.'/chat.gif" alt="" /> '.&mt('Unread Discussion'). |
'</td><td align="center" valign="bottom">'. |
' '. |
' <img src="'.$location.'/feedback.gif" alt="" /> '. |
'<img src="'.$location.'/feedback.gif" alt="" /> '. |
&mt('New message (click to open)'). |
&mt('New message (click to open)'). |
'</td></tr></table>'."\n"; |
'</span></div>'. |
|
'<div style="padding:0;clear:both;margin:0;border:0"></div>'."\n"; |
} |
} |
|
|
if ($printCloseAll && !$args->{'resource_no_folder_link'}) { |
if ($printCloseAll && !$args->{'resource_no_folder_link'}) { |
Line 2108 END
|
Line 2109 END
|
} |
} |
} |
} |
|
|
if ($counter) { |
if ($counter) { |
$result.=&Apache::loncommon::end_data_table(); |
$result.=&Apache::loncommon::end_data_table(); |
} |
} |
|
|
Line 2149 sub show_linkitems_toolbar {
|
Line 2150 sub show_linkitems_toolbar {
|
if (ref($args->{'linkitems'}) eq 'HASH') { |
if (ref($args->{'linkitems'}) eq 'HASH') { |
my $numlinks = scalar(keys(%{$args->{'linkitems'}})); |
my $numlinks = scalar(keys(%{$args->{'linkitems'}})); |
if ($numlinks > 1) { |
if ($numlinks > 1) { |
$result = '<td>'. |
$result = '<div class="LC_navtools">'. |
&Apache::loncommon::help_open_menu('Navigation Screen','Navigation_Screen', |
&Apache::loncommon::help_open_menu('Navigation Screen','Navigation_Screen', |
undef,'RAT'). |
undef,'RAT'). |
'</td>'. |
'</div><div class="LC_navtools"> '.&mt('Tools:').'</div>'; |
'<td> </td>'. |
|
'<td class="LC_middle">'.&mt('Tools:').'</td>'; |
|
} |
} |
$result .= '<td align="left">'."\n". |
$result .= '<div class="LC_navtools">'."\n". |
'<ul id="LC_toolbar">'; |
'<ul id="LC_toolbar">'; |
my @linkorder = ('firsthomework','everything','uncompleted', |
my @linkorder = ('firsthomework','everything','uncompleted', |
'changefolder','clearbubbles','printout','edittoplevel'); |
'changefolder','clearbubbles','printout','edittoplevel'); |
Line 2184 sub show_linkitems_toolbar {
|
Line 2183 sub show_linkitems_toolbar {
|
} |
} |
} |
} |
$result .= '</ul>'. |
$result .= '</ul>'. |
'</td>'; |
'</div>'; |
if (($numlinks==1) && (exists($args->{'linkitems'}{'edittoplevel'}))) { |
if (($numlinks==1) && (exists($args->{'linkitems'}{'edittoplevel'}))) { |
$result .= '<td><a href="'.$args->{'linkitems'}{'edittoplevel'}{'cmd'}.'">'. |
$result .= '<div class="LC_navtools">'. |
&mt('Content Editor').'</a></td>'; |
' <a href="'.$args->{'linkitems'}{'edittoplevel'}{'cmd'}.'">'. |
|
&mt('Content Editor').'</a></div>'; |
} |
} |
} |
} |
if ($args->{'sort_html'}) { |
if ($args->{'sort_html'}) { |
$result .= '<td> </td><td> </td><td> </td>'. |
$result .= '<div class="LC_navtools"> '. |
'<td align="right">'.$args->{'sort_html'}.'</td>'; |
$args->{'sort_html'}.'</div>'; |
} |
} |
} |
} |
if ($result) { |
if ($result) { |
$result = "<table><tr>$result</tr></table>"; |
$result = '<div class="LC_navtools">'.$result.'</div>'."\n". |
|
'<div style="padding:0;clear:both;margin:0;border:0"></div>'."\n"; |
} |
} |
return $result; |
return $result; |
} |
} |