--- loncom/homework/inputtags.pm 2005/08/02 18:15:27 1.174 +++ loncom/homework/inputtags.pm 2005/10/18 21:46:42 1.176 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.174 2005/08/02 18:15:27 albertel Exp $ +# $Id: inputtags.pm,v 1.176 2005/10/18 21:46:42 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -306,9 +306,10 @@ sub end_hiddenline { # $which -> 'uploadedonly' -> only newly uploaded files # 'portfolioonly' -> only allow files from portfolio # 'both' -> allow files from either location +# $extratext -> additional text to go between the link and the input box # returns a table row sub file_selector { - my ($part,$id,$uploadedfiletypes,$which)=@_; + my ($part,$id,$uploadedfiletypes,$which,$extratext)=@_; if (!$uploadedfiletypes) { return ''; } my $jspart=$part; @@ -329,7 +330,7 @@ sub file_selector { if ($uploadedfile) { my $url=$Apache::lonhomework::history{"resource.$part.$id.uploadedurl"}; - push (@Apache::lonxml::extlinks,$url); + &Apache::lonxml::extlink($url); &Apache::lonnet::allowuploaded('/adm/essayresponse',$url); my $icon=&Apache::loncommon::icon($url); my $curfile=''. + $result.=$extratext.''. &mt('Select Portfolio Files').'
'. ''. '
';