--- loncom/homework/edit.pm 2002/01/21 16:40:57 1.28 +++ loncom/homework/edit.pm 2002/03/06 20:15:35 1.29 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # edit mode helpers # -# $Id: edit.pm,v 1.28 2002/01/21 16:40:57 matthew Exp $ +# $Id: edit.pm,v 1.29 2002/03/06 20:15:35 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -27,6 +27,7 @@ # # 3/20 Guy # 01/10/02 Matthew +# 03/06/02 Matthew package Apache::edit; use strict; @@ -416,6 +417,18 @@ sub select_or_text_arg { } return $result; } + +#----------------------------------------------------- browse +sub browse { + # insert a link to call up the filesystem browser (lonindexer) + my $form = 'lonhomework'; + my $element = &Apache::lonnet::escape("$Apache::lonxml::curdepth.bgimg"); + my $result = <<"ENDBUTTON"; +Browse +ENDBUTTON + return $result; +} + 1; __END__ @@ -515,6 +528,11 @@ from lonxml; return a scalar string get_insert_list($token) : provide an insertion list based on possibilities from lonxml; return a scalar string +=item * +browse($elementname) : provide a link which will open up the filesystem +browser (lonindexer) and, once a file is selected, place the result in +the form element $elementname. + =back incomplete...