[LON-CAPA-cvs] cvs: loncom /interface lonstatistics.pm
bisitz
bisitz@source.lon-capa.org
Mon, 12 Apr 2010 15:55:30 -0000
bisitz Mon Apr 12 15:55:30 2010 EDT
Modified files:
/loncom/interface lonstatistics.pm
Log:
XHTML:
- "selected" attribute; optimized spacing
- input tag closure
Index: loncom/interface/lonstatistics.pm
diff -u loncom/interface/lonstatistics.pm:1.148 loncom/interface/lonstatistics.pm:1.149
--- loncom/interface/lonstatistics.pm:1.148 Wed Dec 16 13:00:45 2009
+++ loncom/interface/lonstatistics.pm Mon Apr 12 15:55:29 2010
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstatistics.pm,v 1.148 2009/12/16 13:00:45 bisitz Exp $
+# $Id: lonstatistics.pm,v 1.149 2010/04/12 15:55:29 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -405,10 +405,10 @@
$Str .= 'size="'.$numvisible.'" >'."\n";
#
# Deal with 'all'
- $Str .= ' <option value="all" ';
+ $Str .= ' <option value="all"';
foreach (@SelectedStudentData) {
if ($_ eq 'all') {
- $Str .= 'selected ';
+ $Str .= ' selected="selected"';
last;
}
}
@@ -416,10 +416,10 @@
#
# Loop through the student data fields
foreach my $item (@StudentDataOrder) {
- $Str .= ' <option value="'.$item.'" ';
+ $Str .= ' <option value="'.$item.'"';
foreach (@SelectedStudentData) {
if ($item eq $_ ) {
- $Str .= 'selected ';
+ $Str .= ' selected="selected"';
last;
}
}
@@ -506,9 +506,9 @@
$form .= 'size="'.$numvisible.'" >'."\n";
#
# Put in option for 'all'
- $form .= ' <option value="all" ';
+ $form .= ' <option value="all"';
if ($selected_maps[0] eq 'all') {
- $form .= 'selected ';
+ $form .= ' selected="selected"';
}
$form .= ">all</option>\n";
#
@@ -521,10 +521,10 @@
$navmap = shift(@sequences);
}
foreach my $seq (@sequences){
- $form .= ' <option value="'.$seq->symb.'" ';
+ $form .= ' <option value="'.$seq->symb.'"';
foreach (@selected_maps) {
if ($seq->symb eq $_) {
- $form .= 'selected ';
+ $form .= ' selected="selected"';
last;
}
}
@@ -556,10 +556,10 @@
#
# Loop through the sequences
foreach my $s (@Sections) {
- $Str .= ' <option value="'.$s.'" ';
+ $Str .= ' <option value="'.$s.'"';
foreach (&get_selected_sections()) {
if ($s eq $_) {
- $Str .= 'selected ';
+ $Str .= ' selected="selected"';
last;
}
}
@@ -591,10 +591,10 @@
#
# Loop through the groups
foreach my $s (@Groups) {
- $Str .= ' <option value="'.$s.'" ';
+ $Str .= ' <option value="'.$s.'"';
foreach my $group (&get_selected_groups()) {
if ($s eq $group) {
- $Str .= 'selected ';
+ $Str .= ' selected="selected"';
last;
}
}
@@ -881,7 +881,7 @@
my $GoToPage = $env{'form.reportSelected'};
#
$r->print('<input type="hidden" name="reportSelected" value="'.
- $GoToPage.'">');
+ $GoToPage.'" />');
if($GoToPage eq 'activitylog') {
# &Apache::lonproblemstatistics::Activity();
} elsif($GoToPage eq 'problem_statistics') {