';
- $shade = ($shade eq "dark"?"light":"dark");
- print '';
- print '' .$row->{'id'}. ' ';
- print '' .$row->{'title'}. ' | ';
- my $instructor = $row->{'instructor'};
- $instructor =~ s/^([^,]*), ([^,]*)(.*)/$2 $1$3/;
- my $email = get_faculty_email($instructor);
- #if($email) {
- #print ''
- #. $row->{'instructor'} . " | ";
- # } else {
- print "" . $row->{'instructor'} . " | ";
- #}
- print "" . $row->{'days'} . " | ";
- print "" . $row->{'time'} . " | ";
- print "" . $row->{'duration'} . " | ";
- print "" . $row->{'location'} . " | ";
- print "
\n";
- }
- print "