version 1.105.2.2, 2012/12/16 15:55:25
|
version 1.105.2.5, 2013/06/05 14:50:15
|
Line 155 function idxopen(mode) {
|
Line 155 function idxopen(mode) {
|
} |
} |
|
|
// ------------------------------------------------------ Open groupsort window |
// ------------------------------------------------------ Open groupsort window |
function groupopen(url,recover,bookmarks) { |
function groupopen(url,recover) { |
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,"idxout",options); |
idx.focus(); |
idx.focus(); |
} |
} |
|
|
Line 552 ENDJS
|
Line 552 ENDJS
|
|
|
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::add_breadcrumb({ |
&Apache::lonhtmlcommon::add_breadcrumb({ |
text => 'Construction Space', |
text => 'Authoring Space', |
href => &Apache::loncommon::authorspace($url), |
href => &Apache::loncommon::authorspace($url), |
faq => 6, |
faq => 6, |
bug => 'RAT', |
bug => 'RAT', |
Line 567 ENDJS
|
Line 567 ENDJS
|
href => '',}); |
href => '',}); |
|
|
# Breadcrumbs are included by &start_page |
# Breadcrumbs are included by &start_page |
my $start_page = &Apache::loncommon::start_page('Construction Space',$js) |
my $start_page = &Apache::loncommon::start_page('Authoring Space',$js) |
.&Apache::loncommon::head_subbox( |
.&Apache::loncommon::head_subbox( |
&Apache::loncommon::CSTR_pageheader() |
&Apache::loncommon::CSTR_pageheader() |
.&buttons(2)); |
.&buttons(2)); |
Line 576 ENDJS
|
Line 576 ENDJS
|
$r->print(<<ENDSMPHEAD); |
$r->print(<<ENDSMPHEAD); |
$start_page |
$start_page |
<span class="LC_error">$errtext</span> |
<span class="LC_error">$errtext</span> |
<form name="simpleedit" method="post" action""> |
<form name="simpleedit" method="post" action=""> |
<input type="hidden" name="forcesmp" value="1" /> |
<input type="hidden" name="forcesmp" value="1" /> |
<input type="hidden" name="renameres" value="0" /> |
<input type="hidden" name="renameres" value="0" /> |
<input type="hidden" name="renametitle" value="" /> |
<input type="hidden" name="renametitle" value="" /> |
Line 653 sub nodir {
|
Line 653 sub nodir {
|
my ($path) = ($dir =~ m{^\Q$londocroot\E?(/priv/[^/]+/[^/]+/)}); |
my ($path) = ($dir =~ m{^\Q$londocroot\E?(/priv/[^/]+/[^/]+/)}); |
$dir=~s{^\Q$londocroot/priv/\E[^/]+/[^/]+}{}; |
$dir=~s{^\Q$londocroot/priv/\E[^/]+/[^/]+}{}; |
my $brcrum = [{'href' => &Apache::loncommon::authorspace($path), |
my $brcrum = [{'href' => &Apache::loncommon::authorspace($path), |
'text' => 'Construction Space'}]; |
'text' => 'Authoring Space'}]; |
# {'href' => '', |
# {'href' => '', |
# 'text' => 'No such directory'}]; |
# 'text' => 'No such directory'}]; |
$r->print(&Apache::loncommon::start_page('Construction Space', |
$r->print(&Apache::loncommon::start_page('Authoring Space', |
undef, |
undef, |
{'bread_crumbs' => $brcrum,}) |
{'bread_crumbs' => $brcrum,}) |
.&Apache::loncommon::head_subbox( |
.&Apache::loncommon::head_subbox( |
Line 675 sub viewmap {
|
Line 675 sub viewmap {
|
|
|
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::add_breadcrumb({ |
&Apache::lonhtmlcommon::add_breadcrumb({ |
text => 'Construction Space', |
text => 'Authoring Space', |
href => &Apache::loncommon::authorspace($url), |
href => &Apache::loncommon::authorspace($url), |
faq => 6, |
faq => 6, |
bug => 'RAT', |
bug => 'RAT', |
Line 712 sub viewmap {
|
Line 712 sub viewmap {
|
.'<th>'.&mt('Title in map').'</th>' |
.'<th>'.&mt('Title in map').'</th>' |
.'<th>'.&mt('Filename of resource').'</th>' |
.'<th>'.&mt('Filename of resource').'</th>' |
.'<th>'.&mt('Link to published resource').'</th>' |
.'<th>'.&mt('Link to published resource').'</th>' |
.'<th>'.&mt('Link to resource in Construction Space').'</th>' |
.'<th>'.&mt('Link to resource in Authoring Space').'</th>' |
.&Apache::loncommon::end_data_table_header_row() |
.&Apache::loncommon::end_data_table_header_row() |
); |
); |
foreach (&LONCAPA::map::attemptread(&Apache::lonnet::filelocation('',$url))) { |
foreach (&LONCAPA::map::attemptread(&Apache::lonnet::filelocation('',$url))) { |
Line 750 sub viewmap {
|
Line 750 sub viewmap {
|
$r->print('</td><td>'); |
$r->print('</td><td>'); |
if ($url) { |
if ($url) { |
$r->print('<a href="'.$cstrurl.'">'. |
$r->print('<a href="'.$cstrurl.'">'. |
&mt('Construction space').'</a>'); |
&mt('Authoring space').'</a>'); |
} else { |
} else { |
$r->print(' '); |
$r->print(' '); |
} |
} |