From 5670812ab058f2a364bd0d690fd4ed4e3e3d3dc6 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 16 Aug 2005 22:00:44 +0000 Subject: [PATCH] Added warning and skeleton do_xml_grades --- perl/sct6 | 68 ++++++------------------------------------------------- 1 file changed, 7 insertions(+), 61 deletions(-) diff --git a/perl/sct6 b/perl/sct6 index f8a539a..0176761 100755 --- a/perl/sct6 +++ b/perl/sct6 @@ -6,6 +6,9 @@ # Create a ~/.sct6rc that has SID=yourssn and PIN=yourpin # You'll need to change the url below if you go anywhere but TAMUK. +# Update: This tool now only outputs in XML. For other formats, convert +# with schedproc + use strict; use Date::Calc::Object qw(Day_of_Week Decode_Day_of_Week Decode_Month Week_of_Year Monday_of_Week Day_of_Week_Abbreviation Delta_Days Add_Delta_Days Nth_Weekday_of_Month_Year Gmtime Mktime); use Date::Calendar::Profiles qw($Profiles); @@ -380,67 +383,12 @@ sub do_html_schedule { print "\n"; } -sub do_html_grades { - my @readheaders = ("Section ID", "Course Title", "Grade", "Earned Hours", "Quality Hours", "Quality Points", "GPA"); - @readheaders = ("Section", "Course Title", "FinalGrade", "Earned Hours", "Quality Hours", "Quality Points", "GPA") if($opts{'school'} eq 'tamuk'); - my @showheaders = ("Section ID", "Course Title", "Grade", "Earned
Hours", "Quality
Hours", "Quality
Points"); - my ($row, $lastrow); - my $shade = "dark"; - 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 - die $response->status_line unless $response->is_success; - #my @terms = reverse grep {s/^