| 1 | ################################################################################ |
1 | ################################################################################ |
| 2 | # WeBWorK Online Homework Delivery System |
2 | # WeBWorK Online Homework Delivery System |
| 3 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
3 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
| 4 | # $CVSHeader: webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm,v 1.51 2005/08/11 21:40:55 sh002i Exp $ |
4 | # $CVSHeader: webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm,v 1.52 2005/08/13 21:35:56 jj Exp $ |
| 5 | # |
5 | # |
| 6 | # This program is free software; you can redistribute it and/or modify it under |
6 | # This program is free software; you can redistribute it and/or modify it under |
| 7 | # the terms of either: (a) the GNU General Public License as published by the |
7 | # the terms of either: (a) the GNU General Public License as published by the |
| 8 | # Free Software Foundation; either version 2, or (at your option) any later |
8 | # Free Software Foundation; either version 2, or (at your option) any later |
| 9 | # version, or (b) the "Artistic License" which comes with this package. |
9 | # version, or (b) the "Artistic License" which comes with this package. |
| … | |
… | |
| 837 | sourceFilePath => "$sourceFileName", |
837 | sourceFilePath => "$sourceFileName", |
| 838 | displayMode => $displayMode, |
838 | displayMode => $displayMode, |
| 839 | } |
839 | } |
| 840 | )}, "Try it"); |
840 | )}, "Try it"); |
| 841 | |
841 | |
| 842 | my %add_box_data = ( -name=>"trial$cnt",-value=>1,-label=>"Add this problem to the current set on the next update"); |
842 | my %add_box_data = ( -name=>"trial$cnt",-value=>1,-label=>"Add this problem to the target set on the next update"); |
| 843 | if($mark & SUCCESS) { |
843 | if($mark & SUCCESS) { |
| 844 | $add_box_data{ -label } .= " (just added this problem)"; |
844 | $add_box_data{ -label } .= " (just added this problem)"; |
| 845 | } elsif($mark & ADDED) { |
845 | } elsif($mark & ADDED) { |
| 846 | $add_box_data{ -checked } = 1; |
846 | $add_box_data{ -checked } = 1; |
| 847 | } |
847 | } |