version 1.250, 2008/12/17 13:02:37
|
version 1.252, 2009/02/13 20:20:30
|
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' ); |