[LON-CAPA-cvs] cvs: loncom /interface/statistics lonproblemanalysis.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Wed, 29 Sep 2004 14:38:36 -0000
matthew Wed Sep 29 10:38:36 2004 EDT
Modified files:
/loncom/interface/statistics lonproblemanalysis.pm
Log:
Interface & localization changes
Index: loncom/interface/statistics/lonproblemanalysis.pm
diff -u loncom/interface/statistics/lonproblemanalysis.pm:1.89 loncom/interface/statistics/lonproblemanalysis.pm:1.90
--- loncom/interface/statistics/lonproblemanalysis.pm:1.89 Tue Sep 28 16:45:40 2004
+++ loncom/interface/statistics/lonproblemanalysis.pm Wed Sep 29 10:38:35 2004
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonproblemanalysis.pm,v 1.89 2004/09/28 20:45:40 matthew Exp $
+# $Id: lonproblemanalysis.pm,v 1.90 2004/09/29 14:38:35 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1376,48 +1376,44 @@
##
##
$Str .= '<td>';
- { # These braces are here to organize the code, not scope it.
- {
- $Str .= '<nobr>'.&mt('Analyze Over ');
- $Str .= &Apache::loncommon::help_open_topic
- ('Analysis_Analyze_Over');
- $Str .='<select name="AnalyzeOver" >';
- $Str .= '<option value="Tries" ';
- if (! exists($ENV{'form.AnalyzeOver'}) ||
- $ENV{'form.AnalyzeOver'} eq 'Tries'){
- # Default to Tries
- $Str .= ' selected ';
- }
- $Str .= '>'.&mt('Tries').'</option>';
- $Str .= '<option value="Time" ';
- $Str .= ' selected ' if ($ENV{'form.AnalyzeOver'} eq 'Time');
- $Str .= '>'.&mt('Time').'</option>';
- $Str .= '</select>';
- $Str .= '</nobr><br />';
- }
- {
- $Str .= '<nobr>'.&mt('Number of Plots:');
- $Str .= '<select name="NumPlots">';
- if (! exists($ENV{'form.NumPlots'})
- || $ENV{'form.NumPlots'} < 1
- || $ENV{'form.NumPlots'} > 20) {
- $ENV{'form.NumPlots'} = 5;
- }
- foreach my $i (1,2,3,4,5,6,7,8,10,15,20) {
- $Str .= '<option value="'.$i.'" ';
- if ($ENV{'form.NumPlots'} == $i) { $Str.=' selected '; }
- $Str .= '>'.$i.'</option>';
- }
- $Str .= '</select></nobr><br />';
- }
- {
- $Str .= '<nobr>'.&mt('Status: [_1]',
+ my $analyze_selector = '<select name="AnalyzeOver" >';
+ $analyze_selector .= '<option value="Tries" ';
+ if (! exists($ENV{'form.AnalyzeOver'}) ||
+ $ENV{'form.AnalyzeOver'} eq 'Tries'){
+ # Default to Tries
+ $analyze_selector .= ' selected ';
+ }
+ $analyze_selector .= '>'.&mt('Tries').'</option>';
+ $analyze_selector .= '<option value="Time" ';
+ $analyze_selector .= ' selected ' if ($ENV{'form.AnalyzeOver'} eq 'Time');
+ $analyze_selector .= '>'.&mt('Time').'</option>';
+ $analyze_selector .= '</select>';
+ $Str .= '<nobr>'.
+ &mt('Analyze Over [_1] [_2]',
+ $analyze_selector,
+ &Apache::loncommon::help_open_topic('Analysis_Analyze_Over')).
+ '</nobr><br />'.$/;
+ ##
+ my $numplots_selector = '<select name="NumPlots">';
+ if (! exists($ENV{'form.NumPlots'})
+ || $ENV{'form.NumPlots'} < 1
+ || $ENV{'form.NumPlots'} > 20) {
+ $ENV{'form.NumPlots'} = 5;
+ }
+ foreach my $i (1,2,3,4,5,6,7,8,10,15,20) {
+ $numplots_selector .= '<option value="'.$i.'" ';
+ if ($ENV{'form.NumPlots'} == $i) { $numplots_selector.=' selected '; }
+ $numplots_selector .= '>'.$i.'</option>';
+ }
+ $numplots_selector .= '</select></nobr><br />';
+ $Str .= '<nobr><label>'.&mt('Number of Plots [_1]',$numplots_selector).
+ '</label></nobr>';
+ ##
+ $Str .= '<nobr><label>'.&mt('Status: [_1]',
'<input type="text" '.
'name="stats_status" size="60" value="" />'
).
- '</nobr><br />';
- }
- }
+ '</label></nobr>';
$Str .= '</td>';
##
##