version 1.56, 2003/04/07 18:24:05
|
version 1.58, 2003/06/03 14:08:32
|
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 155 ENDENTERKEY
|
Line 156 ENDENTERKEY
|
$msg= |
$msg= |
'<h1><font color=red>Could not initialize top-level map.</font></h1>'; |
'<h1><font color=red>Could not initialize top-level map.</font></h1>'; |
} |
} |
|
|
|
# Check to see if the user is a CC entering a course |
|
# for the first time |
|
my (undef, undef, $role, $courseid) = split(/\./, $envkey); |
|
if (substr($courseid, 0, 1) eq '/') { |
|
$courseid = substr($courseid, 1); |
|
} |
|
$courseid =~ s/\//_/; |
|
if ($role eq 'cc' && $ENV{'course.' . $courseid . |
|
'.course.helper.not.run'}) { |
|
$furl = "/adm/helper/course.initialization.helper"; |
|
} |
|
|
$r->content_type('text/html'); |
$r->content_type('text/html'); |
&Apache::loncommon::no_cache($r); |
&Apache::loncommon::no_cache($r); |
$r->send_http_header; |
$r->send_http_header; |
Line 437 ENDHEADER
|
Line 451 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. |