version 1.29, 2002/03/06 20:15:35
|
version 1.30, 2002/03/08 18:30:33
|
Line 421 sub select_or_text_arg {
|
Line 421 sub select_or_text_arg {
|
#----------------------------------------------------- browse |
#----------------------------------------------------- browse |
sub browse { |
sub browse { |
# insert a link to call up the filesystem browser (lonindexer) |
# insert a link to call up the filesystem browser (lonindexer) |
|
$_ = shift; |
my $form = 'lonhomework'; |
my $form = 'lonhomework'; |
my $element = &Apache::lonnet::escape("$Apache::lonxml::curdepth.bgimg"); |
my $element = &Apache::lonnet::escape("$Apache::lonxml::curdepth.$_"); |
my $result = <<"ENDBUTTON"; |
my $result = <<"ENDBUTTON"; |
<a href=\"javascript:openbrowser('$form','$element')\"\>Browse</a> |
<a href=\"javascript:openbrowser('$form','$element')\"\>Browse</a> |
ENDBUTTON |
ENDBUTTON |
return $result; |
return $result; |
} |
} |
|
|
|
#----------------------------------------------------- browse |
|
sub search { |
|
# insert a link to call up the filesystem browser (lonindexer) |
|
$_ = shift; |
|
my $form = 'lonhomework'; |
|
my $element = &Apache::lonnet::escape("$Apache::lonxml::curdepth.$_"); |
|
my $result = <<"ENDBUTTON"; |
|
<a href=\"javascript:opensearcher('$form','$element')\"\>Search</a> |
|
ENDBUTTON |
|
return $result; |
|
} |
|
|
|
|
1; |
1; |
__END__ |
__END__ |
|
|
Line 533 browse($elementname) : provide a link wh
|
Line 547 browse($elementname) : provide a link wh
|
browser (lonindexer) and, once a file is selected, place the result in |
browser (lonindexer) and, once a file is selected, place the result in |
the form element $elementname. |
the form element $elementname. |
|
|
|
=item * |
|
search($elementname) : provide a link which will open up the filesystem |
|
searcher (lonsearchcat) and, once a file is selected, place the result in |
|
the form element $elementname. |
|
|
=back |
=back |
|
|
incomplete... |
incomplete... |