[system] / trunk / webwork2 / lib / WeBWorK / ContentGenerator / Problem.pm Repository:
ViewVC logotype

Diff of /trunk/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2156 Revision 2166
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/Problem.pm,v 1.130 2004/05/20 21:25:20 jj Exp $ 4# $CVSHeader: webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm,v 1.131 2004/05/22 19:01:37 jjholt 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.
708 } 708 }
709 709
710 print CGI::end_div(); 710 print CGI::end_div();
711 711
712 print CGI::start_div({class=>"problem"}); 712 print CGI::start_div({class=>"problem"});
713 713
714 # main form 714 # main form
715 print 715 print
716 CGI::startform("POST", $r->uri), 716 CGI::startform("POST", $r->uri),
717 $self->hidden_authen_fields, 717 $self->hidden_authen_fields,
718 CGI::p($pg->{body_text}), 718 CGI::p($pg->{body_text}),
812 )) if defined($self->{problem}->{source_file}); 812 )) if defined($self->{problem}->{source_file});
813 813
814 # end of main form 814 # end of main form
815 print CGI::endform(); 815 print CGI::endform();
816 816
817
818 print CGI::start_div({class=>"problemFooter"}); 817 print CGI::start_div({class=>"problemFooter"});
819 818
820 ## arguments for answer inspection button 819 ## arguments for answer inspection button
821 #my $prof_url = $ce->{webworkURLs}->{oldProf}; 820 #my $prof_url = $ce->{webworkURLs}->{oldProf};
822 #my $webworkURL = $ce->{webworkURLs}->{root}; 821 #my $webworkURL = $ce->{webworkURLs}->{root};
1037 1036
1038 return CGI::div({-style=>"border: thin groove; padding: 1ex; margin: 2ex align: left"}, 1037 return CGI::div({-style=>"border: thin groove; padding: 1ex; margin: 2ex align: left"},
1039 "View equations as:    ".CGI::br(), 1038 "View equations as:    ".CGI::br(),
1040 CGI::radio_group( 1039 CGI::radio_group(
1041 -name => "displayMode", 1040 -name => "displayMode",
1042 -values => ['plainText', 'formattedText', 'images'], 1041 -values => ['plainText', 'formattedText', 'images', 'jsMath'],
1043 -default => $displayMode, 1042 -default => $displayMode,
1044 -linebreak=>'true', 1043 -linebreak=>'true',
1045 -labels => { 1044 -labels => {
1046 plainText => "plain", 1045 plainText => "plain",
1047 formattedText => "formatted", 1046 formattedText => "formatted",
1048 images => "images", 1047 images => "images",
1048 jsMath => "jsMath",
1049 } 1049 }
1050 ), CGI::br(),CGI::hr(), 1050 ), CGI::br(),CGI::hr(),
1051 $optionLine, 1051 $optionLine,
1052 CGI::submit(-name=>"redisplay", -label=>"Save Options"), 1052 CGI::submit(-name=>"redisplay", -label=>"Save Options"),
1053 ); 1053 );

Legend:
Removed from v.2156  
changed lines
  Added in v.2166

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9