');
-
+sub send_message {
+ my ($r,$cnum,$cdom) = @_;
+ my $linktext = &mt('Send message to [_1]',
+ &Apache::loncommon::plainname($cnum,$cdom));
+ my $image = qq{};
+ return &Apache::loncommon::messagewrapper($image,$cnum,$cdom).' '.&Apache::loncommon::messagewrapper($linktext,$cnum,$cdom);
}
-sub end_ContentBox{
- my ($r) = @_;
+sub print_template {
+ my ($r,$topic,$content, $allowed,$boxclass) = @_;
+ $r->print('
');
+ $r->print('
'.$topic.'
');
+ $r->print($content);
$r->print('
');
}
-sub send_message{
- my ($r,$cnum,$cdom) = @_;
- my $s;
- my $image = qq{};
- #$r->print('
');
- $s=&Apache::loncommon::messagewrapper($image,$cnum,$cdom).' '.&Apache::loncommon::messagewrapper(&mt('Send me a message'),$cnum,$cdom);
- #$r->print('