version 1.55, 2003/03/24 18:46:44
|
version 1.57, 2003/05/21 20:10:53
|
Line 50 use Apache::Constants qw(:common);
|
Line 50 use Apache::Constants qw(:common);
|
use Apache::File(); |
use Apache::File(); |
use Apache::lonmenu; |
use Apache::lonmenu; |
use Apache::loncommon; |
use Apache::loncommon; |
|
use Apache::lonannounce; |
|
|
sub handler { |
sub handler { |
|
|
Line 72 sub handler {
|
Line 73 sub handler {
|
"request.course.uri" => '', |
"request.course.uri" => '', |
"request.course.sec" => '', |
"request.course.sec" => '', |
"request.role" => 'cm', |
"request.role" => 'cm', |
|
"request.role.adv" => $ENV{'user.adv'}, |
"request.role.domain" => $ENV{'user.domain'}); |
"request.role.domain" => $ENV{'user.domain'}); |
foreach $envkey (keys %ENV) { |
foreach $envkey (keys %ENV) { |
next if ($envkey!~/^user\.role\./); |
next if ($envkey!~/^user\.role\./); |
Line 129 ENDENTERKEY
|
Line 131 ENDENTERKEY
|
} |
} |
} |
} |
} |
} |
&Apache::lonnet::appenv('request.role' => $trolecode, |
my $tadv=0; |
'request.role.domain' => $cdom, |
if (($trolecode!~/^st/) && |
'request.course.sec' => $csec); |
($trolecode!~/^ta/) && |
|
($trolecode!~/^cm/)) { $tadv=1; } |
|
&Apache::lonnet::appenv( |
|
'request.role' => $trolecode, |
|
'request.role.adv' => $tadv, |
|
'request.role.domain' => $cdom, |
|
'request.course.sec' => $csec); |
my $msg='Entering course ...'; |
my $msg='Entering course ...'; |
if (($cnum) && ($role ne 'ca')) { |
if (($cnum) && ($role ne 'ca')) { |
my ($furl,$ferr)= |
my ($furl,$ferr)= |
Line 430 ENDHEADER
|
Line 438 ENDHEADER
|
$r->print('<td> </td>'); |
$r->print('<td> </td>'); |
} |
} |
} |
} |
|
$tremark.=&Apache::lonannounce::showday(time,1, |
|
&Apache::lonannounce::readcalendar($tdom.'_'.$trest)); |
|
|
$r->print('<td><font color="'.$tfont.'">'.$trole. |
$r->print('<td><font color="'.$tfont.'">'.$trole. |
'</font></td><td><font color="'.$tfont.'">'.$ttype. |
'</font></td><td><font color="'.$tfont.'">'.$ttype. |
'</font></td><td><font color="'.$tfont.'">'.$twhere. |
'</font></td><td><font color="'.$tfont.'">'.$twhere. |