version 1.243, 2009/11/14 18:54:17
|
version 1.247, 2009/11/21 22:36:23
|
Line 62 use Apache::lonlocal;
|
Line 62 use Apache::lonlocal;
|
use Apache::lonnet; |
use Apache::lonnet; |
use LONCAPA; |
use LONCAPA; |
|
|
|
|
|
sub coursepreflink { |
|
my ($text,$category)=@_; |
|
if (&Apache::lonnet::allowed('opa',$env{'request.course.id'})) { |
|
return '<a href="/adm/courseprefs?phase=display&actions='.$category.'">'.$text.'</a>'; |
|
} else { |
|
return ''; |
|
} |
|
} |
|
|
############################################## |
############################################## |
############################################## |
############################################## |
|
|
Line 111 sub dragmath_button {
|
Line 121 sub dragmath_button {
|
} |
} |
my $buttontext=&mt('Edit Math'); |
my $buttontext=&mt('Edit Math'); |
return <<ENDDRAGMATH; |
return <<ENDDRAGMATH; |
<input type="button" value="$buttontext", onclick="javascript:mathedit('$textarea',document)" />$help_text |
<input type="button" value="$buttontext" onclick="javascript:mathedit('$textarea',document)" />$help_text |
ENDDRAGMATH |
ENDDRAGMATH |
} |
} |
|
|
Line 1473 returns: nothing
|
Line 1483 returns: nothing
|
push @{$tools{$category}}, $html; |
push @{$tools{$category}}, $html; |
} |
} |
|
|
|
sub clear_breadcrumb_tools { |
|
undef(%tools); |
|
} |
|
|
sub add_tools { |
sub add_tools { |
my ($links) = @_; |
my ($links) = @_; |
return unless defined %tools; |
return unless defined %tools; |
Line 2343 Returns: HTML code with function list st
|
Line 2357 Returns: HTML code with function list st
|
sub start_funclist { |
sub start_funclist { |
my($legendtext)=@_; |
my($legendtext)=@_; |
$legendtext=&mt('Functions') if !$legendtext; |
$legendtext=&mt('Functions') if !$legendtext; |
return "<fieldset>\n<legend>$legendtext</legend>\n" |
return '<ul class="LC_funclist"><li style="font-weight:bold; margin-left:0.8em;">'.$legendtext.'</li>'."\n"; |
.'<ul class="LC_funclist">'."\n"; |
|
} |
} |
|
|
|
|
Line 2402 Returns: HTML code with function list en
|
Line 2415 Returns: HTML code with function list en
|
############################################## |
############################################## |
|
|
sub end_funclist { |
sub end_funclist { |
my($r)=@_; |
return "</ul>\n"; |
return "</ul>\n</fieldset>\n"; |
|
} |
} |
|
|
1; |
1; |