--- loncom/interface/lonnotify.pm 2005/12/10 00:46:34 1.11
+++ loncom/interface/lonnotify.pm 2006/03/16 20:09:35 1.12
@@ -56,9 +56,7 @@ sub handler {
my $origin = $env{'form.origin'};
&Apache::lonhtmlcommon::clear_breadcrumbs();
- my %ltext=&Apache::lonlocal::texthash(
- 'note' => 'Notification E-mail',
- );
+
my $function = &Apache::loncommon::get_users_function();
my $loadcode;
my $tablecolor = &Apache::loncommon::designparm($function.'.tabbg');
@@ -75,30 +73,59 @@ sub handler {
}
my $loaditems = ' onLoad="'.$loadcode.'" ';
my $bodytag = &Apache::loncommon::bodytag('Broadcast e-mail to users',$function,$loaditems);
- my $html=&Apache::lonxml::xmlbegin();
&Apache::lonhtmlcommon::add_breadcrumb
({href=>'/adm/notify',
text=>"Broadcast E-mail"});
if ($command eq 'process') {
- &print_request_receipt($r,$command,$cdom,$tablecolor,$bodytag,$html,\%ltext);
+ &print_request_receipt($r,$command,$cdom,$tablecolor,$bodytag);
} elsif ($command eq 'compose') {
- &print_composition_form($r,$command,$cdom,$tablecolor,$bodytag,$html,\%ltext);
+ &print_composition_form($r,$command,$cdom,$tablecolor,$bodytag);
} elsif ($command eq 'pick_target') {
- &print_selection_form($r,$command,$cdom,$tablecolor,$bodytag,$html,\%ltext);
+ &print_selection_form($r,$command,$cdom,$tablecolor,$bodytag);
} elsif ($command eq 'pick_display') {
- &print_display_option_form($r,$command,$cdom,$tablecolor,$bodytag,$html,\%ltext);
+ &print_display_option_form($r,$command,$cdom,$tablecolor,$bodytag);
} elsif ($command eq 'display') {
- &print_display($r,$command,$cdom,$tablecolor,$bodytag,$html,\%ltext);
+ &print_display($r,$command,$cdom,$tablecolor,$bodytag);
} else {
- &print_front_page($r,'front',$cdom,$tablecolor,$bodytag,$html,\%ltext);
+ &print_front_page($r,'front',$cdom,$tablecolor,$bodytag);
}
return OK;
}
+sub add_script {
+ my ($js) = @_;
+ return '';
+}
+
+sub start_page {
+ my ($jscript,$bodytag,$bread_title,$formname) = @_;
+
+ my $html = &Apache::lonxml::xmlbegin();
+
+ my $head = &Apache::loncommon::head('Notification E-mail',$jscript);
+
+ my $breadcrumbs =
+ &Apache::lonhtmlcommon::breadcrumbs(undef,$bread_title,
+ 'Broadcast_system_email');
+ my $output = <<"ENDONE";
+$html
+$head
+$bodytag
+$breadcrumbs
+
+