--- loncom/interface/lonannounce.pm 2002/08/09 20:39:13 1.5 +++ loncom/interface/lonannounce.pm 2003/04/30 15:49:45 1.8 @@ -1,7 +1,7 @@ # The LearningOnline Network # Announce # -# $Id: lonannounce.pm,v 1.5 2002/08/09 20:39:13 www Exp $ +# $Id: lonannounce.pm,v 1.8 2003/04/30 15:49:45 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -31,6 +31,7 @@ package Apache::lonannounce; use strict; use Apache::Constants qw(:common); use Apache::loncommon; +use Apache::lonhtmlcommon(); sub readcalendar { my $courseid=shift; @@ -120,6 +121,7 @@ sub handler { 'dlsav' => $todayhash{'dlsav'} )); my $weekday=$firstday{'weekday'}; # ------------------------------------------------------------ Print the screen + my $pjump_function = &Apache::lonhtmlcommon::pjump_javascript_definition(); $r->print(< @@ -131,14 +133,7 @@ sub handler { parmwin.close(); } - function pjump(type,dis,value,marker,ret,call) { - parmwin=window.open("/adm/rat/parameter.html?type="+escape(type) - +"&value="+escape(value)+"&marker="+escape(marker) - +"&return="+escape(ret) - +"&call="+escape(call)+"&name="+escape(dis),"LONCAPAparms", - "height=350,width=350,scrollbars=no,menubar=no"); - - } + $pjump_function function dateset() { if (document.anno.pres_marker.value=='end') { @@ -175,10 +170,8 @@ sub handler { } - -

Announcements

ENDDOCUMENT - + $r->print(&Apache::loncommon::bodytag("Announcements and Calendar")); # does this user have privileges to post, etc? my $allowed=0; if ($ENV{'request.course.id'}) { @@ -245,7 +238,7 @@ ENDFORM 'Previous Month '. 'Next Month

'. ''. - ''); + ''); my $tk=&Apache::loncommon::maketime(%firstday); my $outp; @@ -270,8 +263,9 @@ ENDFORM $r->print(''); } # ------------------------------------------------------------------- End table + $r->print('
SunMonTueWedThuFriSatTueWedThuFriSat
'); if ($allowed) { $r->print(''); } - $r->print('

'. + $r->print('

'. 'Previous Month '. 'Next Month

'. '');