--- loncom/interface/lonfeedback.pm 2003/10/15 20:01:48 1.62 +++ loncom/interface/lonfeedback.pm 2003/10/15 20:13:31 1.63 @@ -1,7 +1,7 @@ # The LearningOnline Network # Feedback # -# $Id: lonfeedback.pm,v 1.62 2003/10/15 20:01:48 www Exp $ +# $Id: lonfeedback.pm,v 1.63 2003/10/15 20:13:31 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -92,7 +92,7 @@ sub list_discussion { $message.='

'.&mt('Attachment').': '.$fname.'.'.$ft.''; + '">'.$fname.'.'.$ft.'

'; } if ($message) { if ($hidden) { @@ -159,7 +159,7 @@ sub list_discussion {
Note: in anonymous discussion, your name is visible only to course faculty
- +

Attachment (128 KB max size):

@@ -182,7 +182,8 @@ sub mail_screen { The LearningOnline Network with CAPA - $bodytag

$title

- + Please check at least one of the following feedback types: -$options
-My question/comment/feedback:

+$options


+

My question/comment/feedback:

+

$latexHelp -

+

+

Attachment (128 KB max size):

- +

ENDDOCUMENT @@ -250,12 +254,12 @@ sub fail_redirect { my ($r,$feedurl) = @_; $r->print (<Feedback not sent - - + + - + Sorry, no recipients ... @@ -267,15 +271,15 @@ sub redirect_back { $r->print (< Feedback sent - + - + $typestyle Sent $sendsomething message(s), and $sendposts post(s). -$status +$status
@@ -287,7 +291,7 @@ sub no_redirect_back { my ($r,$feedurl) = @_; $r->print (<Feedback not sent - + ENDNOREDIR if ($feedurl!~/^\/adm\/feedback/) { @@ -298,7 +302,7 @@ ENDNOREDIR - + Sorry, no feedback possible on this resource ... @@ -311,22 +315,22 @@ sub screen_header { my $discussoptions=''; if (($feedurl=~/^\/res\//) && ($feedurl!~/^\/res\/adm/)) { $msgoptions= - '

'. - &mt('Feedback to resource author'); + '

'. + &mt('Feedback to resource author').'

'; } if (&feedback_available(1)) { $msgoptions.= - '
'. + '
'. &mt('Question about resource content'); } if (&feedback_available(0,1)) { $msgoptions.= - '
'. + '
'. &mt('Question/Comment/Feedback about course content'); } if (&feedback_available(0,0,1)) { $msgoptions.= - '
'. + '
'. &mt('Question/Comment/Feedback about course policy'); } @@ -334,9 +338,9 @@ sub screen_header { if (&Apache::lonnet::allowed('pch', $ENV{'request.course.id'}. ($ENV{'request.course.sec'}?'/'.$ENV{'request.course.sec'}:''))) { - $discussoptions=' '. + $discussoptions=' '. &mt('Contribution to course discussion of resource'); - $discussoptions.='
'. + $discussoptions.='
'. &mt('Anonymous contribution to course discussion of resource'). ' ('.&mt('name only visible to course faculty').')'; } @@ -392,7 +396,7 @@ ENDEMAIL my $citations=<<"ENDCITE";

Previous attempts of student (if applicable)

$prevattempts -


+

Original screen output (if applicable)

$usersaw

Correct Answer(s) (if applicable)

@@ -439,7 +443,7 @@ sub decide_receiver { } } if ($ENV{'form.course'}||$course) { - $typestyle.='Submitting as Comment
'; + $typestyle.='Submitting as Comment
'; foreach (split(/\,/, $ENV{'course.'.$ENV{'request.course.id'}.'.comment.email'}) ) { @@ -448,7 +452,7 @@ sub decide_receiver { } } if ($ENV{'form.policy'}||$policy) { - $typestyle.='Submitting as Policy Feedback
'; + $typestyle.='Submitting as Policy Feedback
'; foreach (split(/\,/, $ENV{'course.'.$ENV{'request.course.id'}.'.policy.email'}) ) { @@ -479,7 +483,7 @@ sub send_msg { unless (&Apache::lonmsg::user_normal_msg(split(/\:/,$_), 'Feedback ['.$declutter.']',$email,$citations,$feedurl, $attachmenturl)=~/ok/) { - $status.='
'.&mt('Error sending message to').' '.$_.'
'; + $status.='
'.&mt('Error sending message to').' '.$_.'
'; } else { $sendsomething++; } @@ -493,7 +497,7 @@ sub send_msg { $newrecord{'resource'}=$feedurl; $newrecord{'subnumber'}=$record{'subnumber'}+1; unless (&Apache::lonnet::cstore(\%newrecord,'_feedback') eq 'ok') { - $status.='
'.&mt('Not registered').'
'; + $status.='
'.&mt('Not registered').'
'; } } @@ -524,7 +528,7 @@ sub adddiscuss { $ENV{'course.'.$ENV{'request.course.id'}.'.domain'}, $ENV{'course.'.$ENV{'request.course.id'}.'.num'}); my %storenewentry=($symb => time); - $status.='
'.&mt('Updating discussion time').': '. + $status.='
'.&mt('Updating discussion time').': '. &Apache::lonnet::put('discussiontimes',\%storenewentry, $ENV{'course.'.$ENV{'request.course.id'}.'.domain'}, $ENV{'course.'.$ENV{'request.course.id'}.'.num'}); @@ -535,13 +539,13 @@ sub adddiscuss { my %newrecord=(); $newrecord{'resource'}=$symb; $newrecord{'subnumber'}=$record{'subnumber'}+1; - $status.='
'.&mt('Registering').': '. + $status.='
'.&mt('Registering').': '. &Apache::lonnet::cstore(\%newrecord,'_discussion'); } } else { $status.='Failed.'; } - return $status.'
'; + return $status.'
'; } # ----------------------------------------------------------- Preview function @@ -606,7 +610,7 @@ sub handler { $ENV{'course.'.$ENV{'request.course.id'}.'.num'}); &redirect_back($r,&Apache::lonnet::clutter($url), - &mt('Changed discussion status').'

','0','0'); + &mt('Changed discussion status').'
','0','0'); } elsif ($ENV{'form.deldisc'}) { # --------------------------------------------------------------- Hide for good $r->content_type('text/html'); @@ -633,7 +637,7 @@ sub handler { $ENV{'course.'.$ENV{'request.course.id'}.'.num'}); &redirect_back($r,&Apache::lonnet::clutter($url), - &mt('Changed discussion status').'

','0','0'); + &mt('Changed discussion status').'
','0','0'); } elsif ($ENV{'form.preview'}) { # -------------------------------------------------------- User wants a preview &show_preview($r);