--- loncom/interface/lonhtmlcommon.pm 2007/07/11 20:32:15 1.160 +++ loncom/interface/lonhtmlcommon.pm 2007/10/04 01:16:58 1.166 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.160 2007/07/11 20:32:15 albertel Exp $ +# $Id: lonhtmlcommon.pm,v 1.166 2007/10/04 01:16:58 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -481,6 +481,19 @@ ENDJS return $result; } + +sub build_url { + my ($base, $fields)=@_; + my $url; + $url = $base.'?'; + foreach my $key(keys(%$fields)) { + $url.=$key.'='.$$fields{$key}.'&'; + } + $url =~ s/&$//; + return $url; +} + + ############################################## ############################################## @@ -682,7 +695,7 @@ Returns: a perl string as described. ############################################## ############################################## sub StatusOptions { - my ($status, $formName,$size,$onchange)=@_; + my ($status, $formName,$size,$onchange,$mult)=@_; $size = 1 if (!defined($size)); if (! defined($status)) { $status = 'Active'; @@ -691,6 +704,9 @@ sub StatusOptions { my $Str = ''; $Str .= '