version 1.900, 2009/10/22 13:13:12
|
version 1.903, 2009/10/26 18:59:16
|
Line 4444 sub bodytag {
|
Line 4444 sub bodytag {
|
|
|
if ($env{'environment.remote'} eq 'off') { |
if ($env{'environment.remote'} eq 'off') { |
# No Remote |
# No Remote |
if ($env{'request.state'} eq 'construct') { |
if ($no_nav_bar) { return $bodytag; } |
$forcereg=1; |
|
} |
|
|
|
# if ($env{'request.state'} eq 'construct') { |
if ($env{'request.state'} eq 'construct') { $forcereg=1; } |
# $titleinfo = &CSTR_pageheader(); #FIXME: Will be removed once all scripts have their own calls |
|
# } |
|
|
|
my $titletable = '<table id="LC_title_bar">' |
# if ($env{'request.state'} eq 'construct') { |
."<tr><td> $titleinfo $dc_info</td>" |
# $titleinfo = &CSTR_pageheader(); #FIXME: Will be removed once all scripts have their own calls |
.'</tr></table>'; |
# } |
|
|
if ($no_nav_bar) { |
$bodytag .= qq|<div id="LC_nav_bar">$name $role<br /> |
$bodytag .= $titletable; |
<em>$realm</em> $dc_info</div>| unless $env{'form.inhibitmenu'}; |
} else { |
|
$bodytag .= qq|<div id="LC_nav_bar">$name $role<br /> |
|
<em>$realm</em> $dc_info</div>| unless $env{'form.inhibitmenu'}; |
|
|
|
#SD $titletable is obsolete |
if ( $env{'form.inhibitmenu'} eq 'yes' |
#SD if ($env{'request.state'} eq 'construct') { |
|| $ENV{'REQUEST_URI'} eq '/adm/logout' |
#SD $bodytag .= &Apache::lonmenu::menubuttons($forcereg,$titletable); |
|| $env{'request.noversionuri'} =~ m{^/res/adm/pages/}) { |
#SD } else { |
|
#SD $bodytag .= &Apache::lonmenu::menubuttons($forcereg).$titletable; |
return $bodytag; |
#SD } |
} |
if ( $env{'form.inhibitmenu'} eq 'yes' |
|
|| $ENV{'REQUEST_URI'} eq '/adm/logout' |
|
|| $env{'request.noversionuri'} =~ m{^/res/adm/pages/}) { |
|
|
|
return $bodytag; |
|
} |
|
|
|
$bodytag .= Apache::lonhtmlcommon::scripttag( |
$bodytag .= Apache::lonhtmlcommon::scripttag( |
Apache::lonmenu::utilityfunctions(), |
Apache::lonmenu::utilityfunctions(), 'start'); |
'start'); |
|
$bodytag .= Apache::lonmenu::primary_menu(); |
$bodytag .= Apache::lonmenu::primary_menu(); |
$bodytag .= Apache::lonmenu::secondary_menu(); |
|
#SD remove next line |
#don't show menus for public users |
#$bodytag .= Apache::lonmenu::menubuttons($forcereg); |
if($env{'user.name'} ne 'public' && $env{'user.domain'} ne 'public'){ |
$bodytag .= Apache::lonmenu::serverform(); |
$bodytag .= Apache::lonmenu::secondary_menu(); |
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
$bodytag .= Apache::lonmenu::serverform(); |
$bodytag .= Apache::lonmenu::innerregister($forcereg) if $forcereg; |
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
|
$bodytag .= Apache::lonmenu::innerregister($forcereg) if $forcereg; |
|
}else{ |
|
# this is to seperate menu from content when there's no secondary |
|
# menu. Especially needed for public accessible ressources. |
|
$bodytag .= '<hr style="clear:both" />'; |
|
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
} |
} |
|
|
|
#SD testing |
|
#$bodytag .= Apache::lonmenu::menubuttons($forcereg); |
return $bodytag; |
return $bodytag; |
} |
} |
|
|
Line 5345 table.LC_pick_box td.LC_oddrow_value {
|
Line 5341 table.LC_pick_box td.LC_oddrow_value {
|
background-color: $data_table_light; |
background-color: $data_table_light; |
} |
} |
|
|
table.LC_helpform_receipt { |
|
width: 620px; |
|
border-collapse: separate; |
|
background: white; |
|
border: 1px solid black; |
|
border-spacing: 1px; |
|
} |
|
|
|
table.LC_helpform_receipt td.LC_pick_box_title { |
|
background: $tabbg; |
|
font-weight: bold; |
|
text-align: right; |
|
width: 184px; |
|
padding: 8px; |
|
} |
|
|
|
table.LC_helpform_receipt td.LC_evenrow_value { |
|
text-align: left; |
|
padding: 8px; |
|
background-color: $data_table_light; |
|
} |
|
|
|
table.LC_helpform_receipt td.LC_oddrow_value { |
|
text-align: left; |
|
padding: 8px; |
|
background-color: $data_table_light; |
|
} |
|
|
|
table.LC_helpform_receipt td.LC_pick_box_separator { |
|
padding: 0; |
|
height: 1px; |
|
background: black; |
|
} |
|
|
|
span.LC_helpform_receipt_cat { |
span.LC_helpform_receipt_cat { |
font-weight: bold; |
font-weight: bold; |
} |
} |
Line 10278 sub group_term {
|
Line 10240 sub group_term {
|
return $names{$crstype}; |
return $names{$crstype}; |
} |
} |
|
|
|
sub course_types { |
|
my @types = ('official','unofficial','community'); |
|
my %typename = ( |
|
official => 'Official course', |
|
unofficial => 'Unofficial course', |
|
community => 'Community', |
|
); |
|
return (\@types,\%typename); |
|
} |
|
|
sub icon { |
sub icon { |
my ($file)=@_; |
my ($file)=@_; |
my $curfext = lc((split(/\./,$file))[-1]); |
my $curfext = lc((split(/\./,$file))[-1]); |