version 1.259.2.1, 2009/09/23 03:15:18
|
version 1.260.4.1, 2009/12/06 21:00:15
|
Line 873 sub decideoutput {
|
Line 873 sub decideoutput {
|
if ($target eq 'web') { |
if ($target eq 'web') { |
$message .= '<br />'.&mt('Thank you for making a submission to the Geosciences Concept Inventory via the GCI Web Center.'); |
$message .= '<br />'.&mt('Thank you for making a submission to the Geosciences Concept Inventory via the GCI Web Center.'); |
} |
} |
|
} else { |
|
$message = &mt("Your submission has been recorded."); |
} |
} |
$css_class=$possible_class{'no_grade'}; |
$css_class=$possible_class{'no_grade'}; |
$button=1; |
$button=1; |
Line 932 sub decideoutput {
|
Line 934 sub decideoutput {
|
&mt('Thank you for making a submission to the Geosciences Concept Inventory via the GCI Web Center.'); |
&mt('Thank you for making a submission to the Geosciences Concept Inventory via the GCI Web Center.'); |
} |
} |
} else { |
} else { |
$message = &mt("Answer Submitted: Your final submission will be graded after the due date."); |
$message = &mt("Answer Submitted: Your final submission will be graded after the due date."); |
} |
} |
$css_class=$possible_class{'no_grade'}; |
$css_class=$possible_class{'no_grade'}; |
$button=1; |
$button=1; |
} |
} |
if ($Apache::inputtags::status[-1] eq 'SHOW_ANSWER' && |
if ($Apache::inputtags::status[-1] eq 'SHOW_ANSWER' && |
!$added_computer_text && $target ne 'tex') { |
!$added_computer_text && $target ne 'tex') { |
Line 1252 sub get_grade_messages {
|
Line 1254 sub get_grade_messages {
|
my %parmhash=&Apache::lonnet::coursedescription($env{'request.course.id'}); |
my %parmhash=&Apache::lonnet::coursedescription($env{'request.course.id'}); |
if ($parmhash{'suppress_tries'} ne 'yes') { |
if ($parmhash{'suppress_tries'} ne 'yes') { |
$trystr .= "$tries_text $tries"; |
$trystr .= "$tries_text $tries"; |
if ($Apache::lonhomework::parsing_a_task) { |
if ($Apache::lonhomework::parsing_a_task) { |
} elsif($env{'request.state'} ne 'construct') { |
} elsif($env{'request.state'} ne 'construct') { |
$trystr.="/$maxtries"; |
$trystr.="/$maxtries"; |
} else { |
} else { |
if (defined($Apache::inputtags::params{'maxtries'})) { |
if (defined($Apache::inputtags::params{'maxtries'})) { |
$trystr.="/".$Apache::inputtags::params{'maxtries'}; |
$trystr.="/".$Apache::inputtags::params{'maxtries'}; |
} |
} |
} |
} |
} |
} |
$trystr.="</span></td>"; |
$trystr.="</span></td>"; |
} |
} |
} |
} |
|
|
Line 1302 sub gradestatus {
|
Line 1304 sub gradestatus {
|
undef($previousmsg); |
undef($previousmsg); |
} |
} |
if ( $showbutton ) { |
if ( $showbutton ) { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
my $submit_text = &mt('Submit Answer'); |
my $submit_text = &mt('Submit Answer'); |
if ($env{'request.uri'} eq '/res/gci/gci/internal/submission.problem') { |
if ($env{'request.uri'} eq '/res/gci/gci/internal/submission.problem') { |
$submit_text = &mt('Submit Questions'); |
$submit_text = &mt('Submit Questions'); |
} |
} |
$button = |
$button = |
'<input |
'<input onmouseup="javascript:setSubmittedPart(\''.$id.'\')" |
onmouseup="javascript:setSubmittedPart(\''.$id.'\')" |
type="submit" name="submit_'.$id.'" |
onsubmit="javascript:setSubmittedPart(\''.$id.'\')" |
value="'.$submit_text.'" />'; |
type="submit" name="submit_'.$id.'" |
|
value="'.$submit_text.'" />'; |
|
} |
} |
} |
} |
|
|
Line 1408 sub previous_tries {
|
Line 1408 sub previous_tries {
|
$output.='<br /><form action=""><center><input type="button" name="close" value="'.&mt('Close Window').'" onClick="window.close()" /></center></form>'; |
$output.='<br /><form action=""><center><input type="button" name="close" value="'.&mt('Close Window').'" onClick="window.close()" /></center></form>'; |
|
|
my $windowopen=&Apache::lonhtmlcommon::javascript_docopen(); |
my $windowopen=&Apache::lonhtmlcommon::javascript_docopen(); |
|
my $pagetitle = 'Previous Tries'; |
|
if ($env{'request.uri'} eq '/res/gci/gci/internal/submission.problem') { |
|
$pagetitle = 'Submission History'; |
|
} |
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page('Previous Tries', undef, |
&Apache::loncommon::start_page($pagetitle, undef, |
{'only_body' => 1, |
{'only_body' => 1, |
'bgcolor' => '#FFFFFF', |
'bgcolor' => '#FFFFFF', |
'js_ready' => 1, |
'js_ready' => 1, |