version 1.69, 2004/04/20 15:08:26
|
version 1.71, 2004/04/21 17:29:57
|
Line 263 sub real_handler {
|
Line 263 sub real_handler {
|
|
|
|
|
# Send header, don't cache this page |
# Send header, don't cache this page |
|
if ($ENV{'browser.mathml'}) { |
if (&Apache::lonhomework::setupheader($r)) { return OK; } |
&Apache::loncommon::content_type($r,'text/xml'); |
|
} else { |
|
&Apache::loncommon::content_type($r,'text/html'); |
|
} |
|
$r->send_http_header; |
|
return OK if $r->header_only; |
$r->rflush(); |
$r->rflush(); |
|
|
# Discard result, we just want the objects that get created by the |
# Discard result, we just want the objects that get created by the |
Line 3152 sub render {
|
Line 3157 sub render {
|
$result .= '<p>'.&mt('Confirm that this information is correct, then click "Finish Helper" to complete setting the parameter.').'<ul>'; |
$result .= '<p>'.&mt('Confirm that this information is correct, then click "Finish Helper" to complete setting the parameter.').'<ul>'; |
|
|
# Print the type of manipulation: |
# Print the type of manipulation: |
$result .= '<li>Setting the <b>' . $dateTypeHash{$vars->{ACTION_TYPE}} . '</b>'; |
$result .= '<li>'.&mt('Setting the').' <b>' . &mt($dateTypeHash{$vars->{ACTION_TYPE}}) . '</b>'; |
if ($vars->{ACTION_TYPE} eq 'tries') { |
if ($vars->{ACTION_TYPE} eq 'tries') { |
$result .= ' to <b>' . $vars->{TRIES} . '</b>'; |
$result .= ' '.&mt('to').' <b>' . $vars->{TRIES} . '</b>'; |
} |
} |
if ($vars->{ACTION_TYPE} eq 'weight') { |
if ($vars->{ACTION_TYPE} eq 'weight') { |
$result .= ' to <b>' . $vars->{WEIGHT} . '</b>'; |
$result .= ' '.&mt('to').' <b>' . $vars->{WEIGHT} . '</b>'; |
} |
} |
$result .= "</li>\n"; |
$result .= "</li>\n"; |
if ($vars->{ACTION_TYPE} eq 'due_date' || |
if ($vars->{ACTION_TYPE} eq 'due_date' || |
Line 3188 sub render {
|
Line 3193 sub render {
|
|
|
# Print targets |
# Print targets |
if ($vars->{TARGETS} eq 'course') { |
if ($vars->{TARGETS} eq 'course') { |
$result .= '<li>for <b>all students in course</b></li>'; |
$result .= '<li>'.&mt('for').' <b>'.&mt('all students in course').'</b></li>'; |
} elsif ($vars->{TARGETS} eq 'section') { |
} elsif ($vars->{TARGETS} eq 'section') { |
my $section = $vars->{SECTION_NAME}; |
my $section = $vars->{SECTION_NAME}; |
$result .= "<li>for section <b>$section</b></li>"; |
$result .= "<li>for section <b>$section</b></li>"; |
Line 3228 sub render {
|
Line 3233 sub render {
|
$result .= "\n<input type='hidden' value='$symb' name='pssymb' />"; |
$result .= "\n<input type='hidden' value='$symb' name='pssymb' />"; |
$result .= "\n<input type='hidden' value='$paramlevel' name='parmlev' />"; |
$result .= "\n<input type='hidden' value='$paramlevel' name='parmlev' />"; |
|
|
$result .= "<br /><br /><center><input type='submit' value='Finish Helper' /></center></form>\n"; |
$result .= "<br /><br /><center><input type='submit' value='".&mt('Finish Helper')."' /></center></form>\n"; |
|
|
return $result; |
return $result; |
} |
} |