| 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.pm,v 1.97 2004/05/07 18:21:19 sh002i Exp $ |
4 | # $CVSHeader: webwork-modperl/lib/WeBWorK/ContentGenerator.pm,v 1.98 2004/05/07 18:47:23 sh002i 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. |
| … | |
… | |
| 297 | # FIXME: we should probably |
297 | # FIXME: we should probably |
| 298 | |
298 | |
| 299 | sub addmessage { |
299 | sub addmessage { |
| 300 | my ($self, $message) = @_; |
300 | my ($self, $message) = @_; |
| 301 | $self->{status_message} .= $message; |
301 | $self->{status_message} .= $message; |
|
|
302 | } |
|
|
303 | |
|
|
304 | =item addgoodmessage($message) |
|
|
305 | |
|
|
306 | Adds a success message to the list of messages to be printed by the |
|
|
307 | message() template escape handler. |
|
|
308 | |
|
|
309 | =cut |
|
|
310 | |
|
|
311 | |
|
|
312 | sub addgoodmessage { |
|
|
313 | my ($self, $message) = @_; |
|
|
314 | $self->addmessage(CGI::div({class=>"ResultsWithoutError"}, $message)); |
| 302 | } |
315 | } |
| 303 | |
316 | |
| 304 | =back |
317 | =back |
| 305 | |
318 | |
| 306 | =cut |
319 | =cut |