sub do_html_grades {
my @readheaders = ("Section ID", "Course Title", "Grade", "Earned Hours", "Quality Hours", "Quality Points", "GPA");
- my @showheaders = ("Section ID", "Course Title", "Grade", "Earned<br />Hours", "Quality<br />Hours", "Quality<br />Points", "GPA");
+ my @showheaders = ("Section ID", "Course Title", "Grade", "Earned<br />Hours", "Quality<br />Hours", "Quality<br />Points");
my ($row, $lastrow);
my $te = new HTML::TableExtract( headers => [ @readheaders ] );
my $response = $ua->get("$url&tserve_tip_write=||WID|SID|PIN|Term&tserve_trans_config=rgrdterm.cfg"); # Valid grading terms
$lastrow=$row;
next if $row->[0] =~ /:/;
print '<tr><td>';
- print join('</td><td>', @$row);
+ print join('</td><td>', @$row[0 .. 5]);
print "</td></tr>\n";
}
}
print '<tr><td colspan="2">', capitalize($lastrow->[0]);
- shift @$lastrow; shift @$lastrow;
+ #shift @$lastrow; shift @$lastrow;
print "</td><td>";
- print join('</td><td>', @$lastrow);
+ print $$lastrow[6];
+ print "</td><td>";
+ print join('</td><td>', @$lastrow[3 .. 5]);
print "</td></tr>\n";
print "</table>\n";
}