version 1.249, 2008/12/09 04:49:01
|
version 1.252, 2009/02/13 20:20:30
|
Line 207 sub menubuttons {
|
Line 207 sub menubuttons {
|
|
|
my $logo=&Apache::loncommon::lonhttpdurl("/adm/lonIcons/minilogo.gif"); |
my $logo=&Apache::loncommon::lonhttpdurl("/adm/lonIcons/minilogo.gif"); |
$logo = '<td class="LC_top_nav_logo"><a href="/adm/about.html"><img src="'. |
$logo = '<td class="LC_top_nav_logo"><a href="/adm/about.html"><img src="'. |
$logo.'" alt="LON-CAPA Logo" class="noBorder" /></a></td>'; |
$logo.'" alt="LON-CAPA Logo" class="LC_noBorder" /></a></td>'; |
|
|
if ($env{'request.state'} eq 'construct') { |
if ($env{'request.state'} eq 'construct') { |
if (($env{'request.noversionuri'} eq '') || (!defined($env{'request.noversionuri'}))) { |
if (($env{'request.noversionuri'} eq '') || (!defined($env{'request.noversionuri'}))) { |
Line 1027 sub switch {
|
Line 1027 sub switch {
|
my $pic= |
my $pic= |
'<img alt="'.$text.'" src="'. |
'<img alt="'.$text.'" src="'. |
&Apache::loncommon::lonhttpdurl('/res/adm/pages/'.$img). |
&Apache::loncommon::lonhttpdurl('/res/adm/pages/'.$img). |
'" align="'.($nobreak==3?'right':'left').'" class="noBorder" />'; |
'" align="'.($nobreak==3?'right':'left').'" class="LC_noBorder" />'; |
if ($env{'browser.interface'} eq 'faketextual') { |
if ($env{'browser.interface'} eq 'faketextual') { |
# Accessibility |
# Accessibility |
if ($nobreak==3) { |
if ($nobreak==3) { |
Line 1094 sub inlinemenu {
|
Line 1094 sub inlinemenu {
|
foreach my $cat (keys(%category_members)) { |
foreach my $cat (keys(%category_members)) { |
if ($category_positions{$cat} ne "$col,$row") { next; } |
if ($category_positions{$cat} ne "$col,$row") { next; } |
#$output.='<table><tr><td colspan="4" class="LC_menubuttons_category">'.&mt($category_names{$cat}).'</td></tr>'; |
#$output.='<table><tr><td colspan="4" class="LC_menubuttons_category">'.&mt($category_names{$cat}).'</td></tr>'; |
$output.='<div class="ContentBoxSpecial">'; |
$output.='<div class="LC_ContentBoxSpecial">'; |
$output.='<h4 class="hcell">'.&mt($category_names{$cat}).'</h4>'; |
$output.='<h4 class="LC_hcell">'.&mt($category_names{$cat}).'</h4>'; |
$output.='<table>'; |
$output.='<table>'; |
my %active=(); |
my %active=(); |
foreach my $menu_item (split(/\:/,$category_members{$cat})) { |
foreach my $menu_item (split(/\:/,$category_members{$cat})) { |
Line 1228 sub rawconfig {
|
Line 1228 sub rawconfig {
|
my @tools = ('aboutme','blog','portfolio'); |
my @tools = ('aboutme','blog','portfolio'); |
if (grep(/^\Q$prt\E$/,@tools)) { |
if (grep(/^\Q$prt\E$/,@tools)) { |
if (!&Apache::lonnet::usertools_access($env{'user.name'}, |
if (!&Apache::lonnet::usertools_access($env{'user.name'}, |
$env{'user.domain'},$prt)) { |
$env{'user.domain'}, |
|
$prt,undef,'tools')) { |
|
$output.=&clear($row,$col); |
|
next; |
|
} |
|
} elsif ($prt eq 'reqcrs') { |
|
my $showreqcrs = 0; |
|
foreach my $type ('official','unofficial') { |
|
if (&Apache::lonnet::usertools_access($env{'user.name'}, |
|
$env{'user.domain'}, |
|
$type,undef,'requestcourses')) { |
|
$showreqcrs = 1; |
|
last; |
|
} |
|
} |
|
if (!$showreqcrs) { |
$output.=&clear($row,$col); |
$output.=&clear($row,$col); |
next; |
next; |
} |
} |
Line 1459 function set_bookmark() {
|
Line 1474 function set_bookmark() {
|
+"type='text' name='title' size=45 value='"+clienttitle+"' />" |
+"type='text' name='title' size=45 value='"+clienttitle+"' />" |
+"<br />Address:<br /><input type='text' name='address' size='45' " |
+"<br />Address:<br /><input type='text' name='address' size='45' " |
+"value='"+clienthref+"' /><br /><center><input type='submit' " |
+"value='"+clienthref+"' /><br /><center><input type='submit' " |
+"value='Save' /> <input type='button' value='Close (no save)' " |
+"value='Save' /> <input type='button' value='Close' " |
+"onclick='javascript:window.close();' /><\\/center><\\/td>" |
+"onclick='javascript:window.close();' /><\\/center><\\/td>" |
+"<\\/tr><\\/table><\\/form><\\/center>" |
+"<\\/tr><\\/table><\\/form><\\/center>" |
+'$end_page_bookmark' ); |
+'$end_page_bookmark' ); |