@@ -569,6 +569,7 @@ void start_table_output( bool /*for_instructor*/,
569
569
int counter = 0 ;
570
570
table.set (0 ,counter++,TableCell (" ffffff" ," #" ));
571
571
table.set (0 ,counter++,TableCell (" ffffff" ," SECTION" ));
572
+ table.set (0 ,counter++,TableCell (" ffffff" ," reg type" ));
572
573
if (DISPLAY_INSTRUCTOR_NOTES) {
573
574
table.set (0 ,counter++,TableCell (" ffffff" ," part." ));
574
575
table.set (0 ,counter++,TableCell (" ffffff" ," under." ));
@@ -677,9 +678,9 @@ void start_table_output( bool /*for_instructor*/,
677
678
table.set (0 ,counter++,TableCell (" ffffff" ," INCORRECT POLLS" ));
678
679
679
680
// Late days headers
680
- student_data.push_back (counter); table.set (0 ,counter++,TableCell (" ffffff" ," ALLOWED LATE DAYS" ));
681
- student_data.push_back (counter); table.set (0 ,counter++,TableCell (" ffffff" ," USED LATE DAYS" ));
682
- student_data.push_back (counter); table.set (0 ,counter++,TableCell (" ffffff" ," EXCUSED EXTENSIONS" ));
681
+ // student_data.push_back(counter); table.set(0,counter++,TableCell("ffffff","ALLOWED LATE DAYS"));
682
+ // student_data.push_back(counter); table.set(0,counter++,TableCell("ffffff","USED LATE DAYS"));
683
+ // student_data.push_back(counter); table.set(0,counter++,TableCell("ffffff","EXCUSED EXTENSIONS"));
683
684
student_data.push_back (counter); table.set (0 ,counter++,TableCell (grey_divider));
684
685
}
685
686
}
@@ -754,8 +755,13 @@ void start_table_output( bool /*for_instructor*/,
754
755
755
756
std::string section_color = default_color;
756
757
std::string section_label = " " ;
758
+ std::string status = " " ;
757
759
if (!csv_mode) {
758
760
colorit_section2 (this_student->getSection (), section_color, section_label);
761
+ if (validSection (this_student->getSection ())) {
762
+ status = this_student->getRegistrationStatus ();
763
+ if (status == " withdrawn" ) section_color = default_color;
764
+ }
759
765
}
760
766
else {
761
767
if (validSection (this_student->getSection ())) {
@@ -765,8 +771,10 @@ void start_table_output( bool /*for_instructor*/,
765
771
section_label = this_student->getSection () + " (" + section_label + " )" ;
766
772
}
767
773
}
774
+ if (status != " graded" ) section_color = default_color;
768
775
assert (section_color.size ()==6 );
769
776
table.set (myrow,counter++,TableCell (section_color,section_label));
777
+ table.set (myrow,counter++,TableCell (default_color,status));
770
778
771
779
if (DISPLAY_INSTRUCTOR_NOTES) {
772
780
float participation = this_student->getParticipation ();
@@ -1084,23 +1092,23 @@ void start_table_output( bool /*for_instructor*/,
1084
1092
table.set (myrow,counter++,TableCell (color,polls_correct," " ,0 ,CELL_CONTENTS_VISIBLE," right" ));
1085
1093
table.set (myrow,counter++,TableCell (color,polls_incorrect," " ,0 ,CELL_CONTENTS_VISIBLE," right" ));
1086
1094
1087
- std::string color = coloritcolor (allowed,5 ,4 ,3 ,2 ,2 );
1088
- table.set (myrow,counter++,TableCell (color,allowed," " ,0 ,CELL_CONTENTS_VISIBLE," right" ));
1089
- int used = this_student->getUsedLateDays ();
1090
- color = coloritcolor (allowed-used+2 , 5 +2 , 3 +2 , 2 +2 , 1 +2 , 0 +2 );
1091
- table.set (myrow,counter++,TableCell (color,used," " ,0 ,CELL_CONTENTS_VISIBLE," right" ));
1092
- int exceptions = this_student->getLateDayExceptions ();
1093
- color = coloritcolor (exceptions,5 ,4 ,3 ,2 ,2 );
1094
- table.set (myrow,counter++,TableCell (color,exceptions," " ,0 ,CELL_CONTENTS_VISIBLE," right" ));
1095
+ // std::string color = coloritcolor(allowed,5,4,3,2,2);
1096
+ // table.set(myrow,counter++,TableCell(color,allowed,"",0,CELL_CONTENTS_VISIBLE,"right"));
1097
+ // int used = this_student->getUsedLateDays();
1098
+ // color = coloritcolor(allowed-used+2, 5+2, 3+2, 2+2, 1+2, 0+2);
1099
+ // table.set(myrow,counter++,TableCell(color,used,"",0,CELL_CONTENTS_VISIBLE,"right"));
1100
+ // int exceptions = this_student->getLateDayExceptions();
1101
+ // color = coloritcolor(exceptions,5,4,3,2,2);
1102
+ // table.set(myrow,counter++,TableCell(color,exceptions,"",0,CELL_CONTENTS_VISIBLE,"right"));
1095
1103
} else {
1096
1104
color=" ffffff" ; // default_color;
1097
1105
table.set (myrow,counter++,TableCell (color," " ));
1098
1106
table.set (myrow,counter++,TableCell (color," " ));
1099
1107
table.set (myrow,counter++,TableCell (color," " ));
1100
1108
table.set (myrow,counter++,TableCell (color," " ));
1101
- table.set (myrow,counter++,TableCell (color," " ));
1102
- table.set (myrow,counter++,TableCell (color," " ));
1103
- table.set (myrow,counter++,TableCell (color," " ));
1109
+ // table.set(myrow,counter++,TableCell(color,""));
1110
+ // table.set(myrow,counter++,TableCell(color,""));
1111
+ // table.set(myrow,counter++,TableCell(color,""));
1104
1112
}
1105
1113
table.set (myrow,counter++,TableCell (grey_divider));
1106
1114
}
0 commit comments