--- loncom/interface/lonannounce.pm 2012/04/18 16:22:31 1.84 +++ loncom/interface/lonannounce.pm 2013/05/27 00:19:32 1.87 @@ -1,7 +1,7 @@ # The LearningOnline Network # Announce # -# $Id: lonannounce.pm,v 1.84 2012/04/18 16:22:31 bisitz Exp $ +# $Id: lonannounce.pm,v 1.87 2013/05/27 00:19:32 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -68,14 +68,14 @@ sub editfield { $r->print(<$lt{'annon'} $help -
+
$lt{'start'}:$startdateform
$lt{'end'}:$enddateform

-

+

ENDFORM } @@ -228,7 +228,7 @@ sub normalcell { && ($env{'form.pickdate'} ne 'yes') && (!$internalflag)) { $output.=''; + $end.'" />'; $showedcheck{$start.'_'.$end}=1; } } @@ -573,7 +573,7 @@ ENDDOCUMENT my $rc; my $message; foreach my $key (keys(%env)) { - if ($key=~/^form\.postto\_(\w+[\w|-]*)/) { + if ($key=~/^form\.postto\_(\w+[\w\-]*)/) { $rc = &Apache::lonnet::postannounce ($1,$env{'form.serverannnounce'}); if ($rc eq 'ok') { @@ -592,7 +592,7 @@ ENDDOCUMENT } $r->print(&Apache::loncommon::confirmwrapper($message)); } - $r->print('' + $r->print('' .'

'.&mt('Post Server Announcements').'

' .&mt('Post announcements to the system login and roles screen').'
' .''.&mt('(leave blank to delete announcement)').'
' @@ -775,7 +775,7 @@ ENDDOCUMENT # ----------------------------------------------------------------- Check marks undef(%showedcheck); # --------------------------------------------------------------- Remove button - if ($allowed) { $r->print('
'. + if ($allowed) { $r->print('
'. &Apache::loncommon::help_open_topic('Calendar_Remove_Announcement').'
'); } $r->print('

'. '