version 1.153, 2005/11/01 15:59:18
|
version 1.155, 2005/11/18 13:35:30
|
Line 115 use Mail::Send;
|
Line 115 use Mail::Send;
|
use Apache::lonlocal; |
use Apache::lonlocal; |
use Apache::loncommunicate; |
use Apache::loncommunicate; |
use Apache::lonfeedback; |
use Apache::lonfeedback; |
|
use Apache::lonrss(); |
|
|
# Querystring component with sorting type |
# Querystring component with sorting type |
my $sqs; |
my $sqs; |
Line 1114 sub compout {
|
Line 1115 sub compout {
|
'<label><input type="checkbox" name="sendbck" /> '.&mt('Send as critical message').' ' . |
'<label><input type="checkbox" name="sendbck" /> '.&mt('Send as critical message').' ' . |
&mt('and return receipt') . '</label>' . $crithelp . |
&mt('and return receipt') . '</label>' . $crithelp . |
'</p><p><label><input type="checkbox" name="permanent" /> '. |
'</p><p><label><input type="checkbox" name="permanent" /> '. |
&mt('Send copy to permanent email address (if known)').'</label></p>'; |
&mt('Send copy to permanent email address (if known)').'</label></p>'. |
} |
'<p><label><input type="checkbox" name="rsspost" /> '. |
|
&mt('Include in course RSS newsfeed').'</label></p>'; } |
my %message; |
my %message; |
my %content; |
my %content; |
my $defdom=$env{'user.domain'}; |
my $defdom=$env{'user.domain'}; |
Line 2195 sub handler {
|
Line 2197 sub handler {
|
if ($env{'form.storebasecomment'}) { |
if ($env{'form.storebasecomment'}) { |
&storecomment($r); |
&storecomment($r); |
} |
} |
|
if (($env{'form.rsspost'}) && ($env{'request.course.id'})) { |
|
&Apache::lonrss::addentry($env{'course.'.$env{'request.course.id'}.'.num'}, |
|
$env{'course.'.$env{'request.course.id'}.'.domain'}, |
|
'Course_Announcements', |
|
$env{'form.subject'}, |
|
$env{'form.message'},'/adm/communicate','public'); |
|
} |
&disall($r,($folder?$folder:$dismode)); |
&disall($r,($folder?$folder:$dismode)); |
} elsif ($env{'form.newfolder'}) { |
} elsif ($env{'form.newfolder'}) { |
&printheader($r,'','New Folder'); |
&printheader($r,'','New Folder'); |