version 1.444, 2006/08/11 22:00:07
|
version 1.450, 2006/09/06 19:08:33
|
Line 729 sub update_help_link {
|
Line 729 sub update_help_link {
|
my $banner_link = "/adm/helpmenu?page=banner&topic=$topic&component_help=$component_help&faq=$faq&bug=$bug&origurl=$origurl&stamp=$timestamp&stayonpage=$stayOnPage"; |
my $banner_link = "/adm/helpmenu?page=banner&topic=$topic&component_help=$component_help&faq=$faq&bug=$bug&origurl=$origurl&stamp=$timestamp&stayonpage=$stayOnPage"; |
my $output .= <<"ENDOUTPUT"; |
my $output .= <<"ENDOUTPUT"; |
<script type="text/javascript"> |
<script type="text/javascript"> |
// <!-- BEGIN LON-CAPA Internal |
|
banner_link = '$banner_link'; |
banner_link = '$banner_link'; |
// END LON-CAPA Internal --> |
|
</script> |
</script> |
ENDOUTPUT |
ENDOUTPUT |
return $output; |
return $output; |
Line 2109 sub noteswrapper {
|
Line 2107 sub noteswrapper {
|
|
|
sub aboutmewrapper { |
sub aboutmewrapper { |
my ($link,$username,$domain,$target)=@_; |
my ($link,$username,$domain,$target)=@_; |
|
if (!defined($username) && !defined($domain)) { |
|
return; |
|
} |
return '<a href="/adm/'.$domain.'/'.$username.'/aboutme"'. |
return '<a href="/adm/'.$domain.'/'.$username.'/aboutme"'. |
($target?' target="$target"':'').' title="'.&mt('View this users personal page').'">'.$link.'</a>'; |
($target?' target="$target"':'').' title="'.&mt('View this users personal page').'">'.$link.'</a>'; |
} |
} |
Line 2139 sub track_student_link {
|
Line 2140 sub track_student_link {
|
$target = ''; |
$target = ''; |
} |
} |
if ($start) { $link.='&start='.$start; } |
if ($start) { $link.='&start='.$start; } |
return qq{<a href="$link" title="$title" $target>$linktext</a>}; |
|
|
return qq{<a href="$link" title="$title" $target>$linktext</a>}. |
|
&help_open_topic('View_recent_activity'); |
} |
} |
|
|
=pod |
=pod |
Line 3181 sub standard_css {
|
Line 3184 sub standard_css {
|
|
|
my $border = ($env{'browser.type'} eq 'explorer') ? '0px 2px 0px 2px' |
my $border = ($env{'browser.type'} eq 'explorer') ? '0px 2px 0px 2px' |
: '0px 3px 0px 4px'; |
: '0px 3px 0px 4px'; |
|
|
return <<END; |
return <<END; |
h1, h2, h3, th { font-family: $sans } |
h1, h2, h3, th { font-family: $sans } |
a:focus { color: red; background: yellow } |
a:focus { color: red; background: yellow } |
Line 3699 sub headtag {
|
Line 3703 sub headtag {
|
my $bgcolor = $args->{'bgcolor'} || &designparm($function.'.pgbg',$domain); |
my $bgcolor = $args->{'bgcolor'} || &designparm($function.'.pgbg',$domain); |
my $url = join(':',$env{'user.name'},$env{'user.domain'}, |
my $url = join(':',$env{'user.name'},$env{'user.domain'}, |
#time(), |
#time(), |
|
$Apache::lonnet::perlvar{'lonVersion'}, |
|
|
$env{'environment.color.timestamp'}, |
$env{'environment.color.timestamp'}, |
$function,$domain,$bgcolor); |
$function,$domain,$bgcolor); |
|
|
Line 5849 sub construct_course {
|
Line 5855 sub construct_course {
|
# |
# |
unless (($args->{'nonstandard'}) || ($args->{'firstres'} eq 'blank') |
unless (($args->{'nonstandard'}) || ($args->{'firstres'} eq 'blank') |
|| ($cloneid)) { |
|| ($cloneid)) { |
|
use LONCAPA::map; |
$outcome .= &mt('Setting first resource').': '; |
$outcome .= &mt('Setting first resource').': '; |
my ($errtext,$fatal)= |
|
&Apache::londocs::mapread($$crsunum,$$crsudom,'default.sequence'); |
my $map = '/uploaded/'.$$crsudom.'/'.$$crsunum.'/default.sequence'; |
|
my ($errtext,$fatal)=&LONCAPA::map::mapread($map); |
|
|
$outcome .= ($fatal?$errtext:'read ok').' - '; |
$outcome .= ($fatal?$errtext:'read ok').' - '; |
my $title; my $url; |
my $title; my $url; |
if ($args->{'firstres'} eq 'syl') { |
if ($args->{'firstres'} eq 'syl') { |
Line 5861 sub construct_course {
|
Line 5870 sub construct_course {
|
$title='Navigate Contents'; |
$title='Navigate Contents'; |
$url='/adm/navmaps'; |
$url='/adm/navmaps'; |
} |
} |
$Apache::lonratedt::resources[1]=$title.':'.$url.':false:start:res'; |
|
($errtext,$fatal)= |
$LONCAPA::map::resources[1]=$title.':'.$url.':false:start:res'; |
&Apache::londocs::storemap($$crsunum,$$crsudom,'default.sequence'); |
(my $outtext,$errtext) = &LONCAPA::map::storemap($map,1); |
$outcome .= ($fatal?$errtext:'write ok').'<br>'; |
|
|
if ($errtext) { $fatal=2; } |
|
$outcome .= ($fatal?$errtext:'write ok').'<br />'; |
} |
} |
return $outcome; |
return $outcome; |
} |
} |
Line 5916 sub lonhttpdurl {
|
Line 5927 sub lonhttpdurl {
|
return 'http://'.$ENV{'SERVER_NAME'}.':'.$lonhttpd_port.$url; |
return 'http://'.$ENV{'SERVER_NAME'}.':'.$lonhttpd_port.$url; |
} |
} |
|
|
|
sub absolute_url { |
|
my ($host_name) = @_; |
|
my $protocol = ($ENV{'SERVER_PORT'} == 443?'https://':'http://'); |
|
if ($host_name eq '') { |
|
$host_name = $ENV{'SERVER_NAME'}; |
|
} |
|
return $protocol.$host_name; |
|
} |
|
|
sub connection_aborted { |
sub connection_aborted { |
my ($r)=@_; |
my ($r)=@_; |
$r->print(" ");$r->rflush(); |
$r->print(" ");$r->rflush(); |