[system] / trunk / webwork-modperl / lib / WeBWorK / ProblemSet.pm Repository:
ViewVC logotype

Annotation of /trunk/webwork-modperl/lib/WeBWorK/ProblemSet.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 323 - (view) (download) (as text)

1 : malsyned 323 package WeBWorK::ProblemSet;
2 :     our @ISA = qw(WeBWorK::ContentGenerator);
3 :    
4 :     use WeBWorK::ContentGenerator;
5 :     use Apache::Constants qw(:common);
6 :     use CGI qw(-compile :html :form);
7 :    
8 :     sub go() {
9 :     my ($self, $problem_set) = @_;
10 :     my $r = $self->{r};
11 :     my $courseEnvironment = $self->{courseEnvironment};
12 :     my $user = $r->param('user');
13 :    
14 :     $self->header; return OK if $r->header_only;
15 :     $self->top("Problem set $problem_set for $user");
16 :     print startform({-method=>"POST", -action=>$r->uri."/prob2"});
17 :     print $self->hidden_authen_fields;
18 :     print input({-type=>"submit", -value=>"Do Problem 2"});
19 :     print endform;
20 :     $self->bottom;
21 :    
22 :     return OK;
23 :     }
24 :    
25 :     1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9