version 1.136, 2006/06/22 23:22:41
|
version 1.139, 2006/07/03 01:02:32
|
Line 1039 var checkwin;
|
Line 1039 var checkwin;
|
|
|
function spellcheckerwindow() { |
function spellcheckerwindow() { |
checkwin=window.open($nothing,'spellcheckwin','height=320,width=280,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
checkwin=window.open($nothing,'spellcheckwin','height=320,width=280,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
checkwin.document.writeln('$start_page<form name="spellcheckform" action="/adm/spellcheck" method="post"><input type="hidden" name="text" value="" /><\\/form>$end_page'); |
checkwin.document.writeln('$start_page<form name="spellcheckform" action="/adm/spellcheck" method="post"><input type="hidden" name="text" value="" /><\/form>$end_page'); |
checkwin.document.close(); |
checkwin.document.close(); |
} |
} |
// END LON-CAPA Internal --> |
// END LON-CAPA Internal --> |
Line 1178 A link to help for the component will be
|
Line 1178 A link to help for the component will be
|
|
|
All inputs can be undef without problems. |
All inputs can be undef without problems. |
|
|
Inputs: $color (the background color of the table returned), |
Inputs: $component (the large text on the right side of the table), |
$component (the large text on the right side of the table), |
|
$component_help |
$component_help |
$function (role to get colors from) |
|
$domain (domian of role) |
|
$menulink (boolean, controls whether to include a link to /adm/menu) |
$menulink (boolean, controls whether to include a link to /adm/menu) |
|
$helplink (if 'nohelp' don't include the orange help link) |
|
$css_class (optional name for the class to apply to the table for CSS) |
Returns a string containing breadcrumbs for the current page. |
Returns a string containing breadcrumbs for the current page. |
|
|
=item clear_breadcrumbs |
=item clear_breadcrumbs |
Line 1209 returns: nothing
|
Line 1207 returns: nothing
|
my @Crumbs; |
my @Crumbs; |
|
|
sub breadcrumbs { |
sub breadcrumbs { |
my ($component,$component_help,$menulink,$helplink) = @_; |
my ($component,$component_help,$menulink,$helplink,$css_class) = @_; |
# |
# |
my $Str = "\n".'<table id="LC_breadcrumbs"><tr><td>'; |
$css_class ||= 'LC_breadcrumbs'; |
|
my $Str = "\n".'<table class="'.$css_class.'"><tr><td>'; |
# |
# |
# Make the faq and bug data cascade |
# Make the faq and bug data cascade |
my $faq = ''; |
my $faq = ''; |
Line 1266 returns: nothing
|
Line 1265 returns: nothing
|
# $icons .= &Apache::loncommon::help_open_bug($bug); |
# $icons .= &Apache::loncommon::help_open_bug($bug); |
# } |
# } |
if ($helplink ne 'nohelp') { |
if ($helplink ne 'nohelp') { |
$icons .= &Apache::loncommon::help_open_menu(undef,$component, |
$icons .= &Apache::loncommon::help_open_menu($component, |
$component_help, |
$component_help, |
undef,$faq,$bug); |
$faq,$bug); |
} |
} |
if ($icons ne '') { |
if ($icons ne '') { |
$Str .= $icons.' '; |
$Str .= $icons.' '; |
Line 1277 returns: nothing
|
Line 1276 returns: nothing
|
$Str .= $links.'</td>'; |
$Str .= $links.'</td>'; |
# |
# |
if (defined($component)) { |
if (defined($component)) { |
$Str .= '<td class="LC_breadcrumb_component">'. |
$Str .= '<td class="'.$css_class.'_component">'. |
&mt($component).'</td>'; |
&mt($component).'</td>'; |
} |
} |
$Str .= '</tr></table>'."\n"; |
$Str .= '</tr></table>'."\n"; |