version 1.97, 2009/06/09 15:01:28
|
version 1.105.2.1, 2012/05/01 23:00:29
|
Line 44 use HTML::Entities();
|
Line 44 use HTML::Entities();
|
sub ratedt { |
sub ratedt { |
my ($r,$url)=@_; |
my ($r,$url)=@_; |
my %layout = ('border' => "0"); |
my %layout = ('border' => "0"); |
if ($env{'environment.remote'} eq 'off') { |
if ($env{'environment.remote'} eq 'off') { |
$layout{'rows'} = "1,250,*"; |
$layout{'rows'} = "1,250,*"; |
} else { |
} else { |
$layout{'rows'} = "1,70,*"; |
$layout{'rows'} = "1,70,*"; |
Line 78 sub buttons {
|
Line 78 sub buttons {
|
my $adv=shift; |
my $adv=shift; |
my $output='<form method="post">'; |
my $output='<form method="post">'; |
if ($adv==1) { |
if ($adv==1) { |
$output.='<input type="submit" name="forceadv" value="'.&mt('Edit').'" />'. |
$output.= |
&Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation'); |
'<input type="submit" name="forceadv"' |
|
.' value="'.&mt('Edit').'" />' |
|
.&Apache::loncommon::help_open_topic( |
|
'Sequence_Advanced_Editor_Creation'); |
} else { |
} else { |
unless ($adv==2) { |
unless ($adv==2) { |
$output.='<input type="submit" name="forcesmp" value="'.&mt('Simple Edit').'" />'. |
$output.= |
&Apache::loncommon::help_open_topic('Sequence_Simple_Editor_Creation'); |
'<input type="submit" name="forcesmp"' |
|
.' value="'.&mt('Simple Edit').'" />' |
|
.&Apache::loncommon::help_open_topic( |
|
'Sequence_Simple_Editor_Creation') |
|
.' '; |
} |
} |
$output.='<input type="submit" name="forceadv" value="'.&mt('Advanced Edit').'" />'. |
$output.= |
&Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation'); |
'<input type="submit" name="forceadv"' |
|
.' value="'.&mt('Advanced Edit').'" />' |
|
.&Apache::loncommon::help_open_topic( |
|
'Sequence_Advanced_Editor_Creation'); |
} |
} |
return $output.'</form>'; |
return $output.'</form>'; |
} |
} |
Line 148 function idxopen(mode) {
|
Line 158 function idxopen(mode) {
|
function groupopen(url,recover,bookmarks) { |
function groupopen(url,recover,bookmarks) { |
var options="scrollbars=1,resizable=1,menubar=0"; |
var options="scrollbars=1,resizable=1,menubar=0"; |
idxflag=1; |
idxflag=1; |
idx=open("/adm/groupsort?inhibitmenu=yes&mode=$mode&recover="+recover+"&readfile="+url+"&bookmarks="+bookmarks,"idxout",options); |
idx=open("/adm/groupsort?inhibitmenu=yes&mode=$mode&recover="+recover+"&readfile="+url+"&bookmarks="+bookmarks,"idxout",options); |
idx.focus(); |
idx.focus(); |
} |
} |
|
|
Line 543 ENDJS
|
Line 553 ENDJS
|
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::add_breadcrumb({ |
&Apache::lonhtmlcommon::add_breadcrumb({ |
text => 'Construction Space', |
text => 'Construction Space', |
href => &Apache::loncommon::authorspace(), |
href => &Apache::loncommon::authorspace($url), |
faq => 6, |
faq => 6, |
bug => 'RAT', |
bug => 'RAT', |
help => 'Sequence_Simple_Editor_Creation',}); |
help => 'Sequence_Simple_Editor_Creation',}); |
Line 556 ENDJS
|
Line 566 ENDJS
|
title => 'Simple Editor', |
title => 'Simple Editor', |
href => '',}); |
href => '',}); |
|
|
|
# Breadcrumbs are included by &start_page |
my $start_page = &Apache::loncommon::start_page('Construction Space',$js) |
my $start_page = &Apache::loncommon::start_page('Construction Space',$js) |
.&Apache::lonhtmlcommon::breadcrumbs('') |
|
.&Apache::loncommon::head_subbox( |
.&Apache::loncommon::head_subbox( |
&Apache::loncommon::CSTR_pageheader() |
&Apache::loncommon::CSTR_pageheader() |
.&buttons(2)); |
.&buttons(2)); |
Line 639 ENDSMPHEAD
|
Line 649 ENDSMPHEAD
|
# ----------------------------------------------------------------- No such dir |
# ----------------------------------------------------------------- No such dir |
sub nodir { |
sub nodir { |
my ($r,$dir)=@_; |
my ($r,$dir)=@_; |
$dir=~s{^/home/$LONCAPA::username_re/public_html}{}; |
my $londocroot = $r->dir_config('lonDocRoot'); |
my $brcrum = [{'href' => &Apache::loncommon::authorspace(), |
my ($path) = ($dir =~ m{^\Q$londocroot\E?(/priv/[^/]+/[^/]+/)}); |
|
$dir=~s{^\Q$londocroot/priv/\E[^/]+/[^/]+}{}; |
|
my $brcrum = [{'href' => &Apache::loncommon::authorspace($path), |
'text' => 'Construction Space'}]; |
'text' => 'Construction Space'}]; |
# {'href' => '', |
# {'href' => '', |
# 'text' => 'No such directory'}]; |
# 'text' => 'No such directory'}]; |
Line 664 sub viewmap {
|
Line 676 sub viewmap {
|
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::add_breadcrumb({ |
&Apache::lonhtmlcommon::add_breadcrumb({ |
text => 'Construction Space', |
text => 'Construction Space', |
href => &Apache::loncommon::authorspace(), |
href => &Apache::loncommon::authorspace($url), |
faq => 6, |
faq => 6, |
bug => 'RAT', |
bug => 'RAT', |
help => 'Sequence_Simple_Editor_Creation',}); |
help => 'Sequence_Simple_Editor_Creation',}); |
Line 673 sub viewmap {
|
Line 685 sub viewmap {
|
title => 'Resource Assembly Tool', |
title => 'Resource Assembly Tool', |
href => '',}); |
href => '',}); |
|
|
|
# Breadcrumbs are included by &start_page |
$r->print(&Apache::loncommon::start_page('Edit Content of a Map') |
$r->print(&Apache::loncommon::start_page('Edit Content of a Map') |
.&Apache::lonhtmlcommon::breadcrumbs('') |
|
.&Apache::loncommon::head_subbox( |
.&Apache::loncommon::head_subbox( |
&Apache::loncommon::CSTR_pageheader() |
&Apache::loncommon::CSTR_pageheader() |
.&buttons($adv)) |
.&buttons($adv)) |
Line 719 sub viewmap {
|
Line 731 sub viewmap {
|
$filename = $1; |
$filename = $1; |
} |
} |
my $cstrurl = $resurl; |
my $cstrurl = $resurl; |
$cstrurl =~ s#^/res/[^/]+/([^/]+)/#/priv/$1/#; |
$cstrurl =~ s{^/res/}{/priv/}; |
$r->print(&Apache::loncommon::start_data_table_row() |
$r->print(&Apache::loncommon::start_data_table_row() |
.'<td>' |
.'<td>' |
.'<img src="'.&Apache::loncommon::icon($resfilepath).'" />' |
.'<img src="'.&Apache::loncommon::icon($resfilepath).'" />' |