--- loncom/interface/lonnotify.pm 2006/03/16 20:27:26 1.14
+++ loncom/interface/lonnotify.pm 2006/05/30 12:46:09 1.19
@@ -34,6 +34,8 @@ use Apache::lonlocal;
use Mail::Send;
use HTML::TokeParser;
use HTML::Entities;
+use lib '/home/httpd/lib/perl/';
+use LONCAPA;
sub handler {
my ($r) = @_;
@@ -87,10 +89,6 @@ sub add_script {
sub start_page {
my ($jscript,$bread_title,$formname) = @_;
- my $html = &Apache::lonxml::xmlbegin();
-
- my $head = &Apache::loncommon::head('Notification E-mail',$jscript);
-
my $loadcode;
if ((defined($env{'form.origin'}))
&& ($env{'form.command'} eq 'compose'
@@ -108,18 +106,15 @@ sub start_page {
}
}
- $loadcode = ' onLoad="'.$loadcode.'" ';
- my $bodytag =
- &Apache::loncommon::bodytag('Broadcast e-mail to users', undef,
- $loadcode);
-
+ my $start_page =
+ &Apache::loncommon::start_page('Broadcast e-mail to users', $jscript,
+ {'add_entries' =>
+ {'onload' => $loadcode,},});
my $breadcrumbs =
- &Apache::lonhtmlcommon::breadcrumbs(undef,$bread_title,
+ &Apache::lonhtmlcommon::breadcrumbs($bread_title,
'Broadcast_system_email');
my $output = <<"ENDONE";
-$html
-$head
-$bodytag
+$start_page
$breadcrumbs