version 1.100.2.3, 2010/01/27 15:05:21
|
version 1.103, 2009/12/02 09:53:02
|
Line 553 sub Rename1 {
|
Line 553 sub Rename1 {
|
.$newfilename.'" />' |
.$newfilename.'" />' |
.'<p>' |
.'<p>' |
.&mt($action.' [_1] to [_2]?', |
.&mt($action.' [_1] to [_2]?', |
&display($fn) |
&display($fn), |
&display($newfilename)) |
&display($newfilename)) |
.'</p>' |
.'</p>' |
); |
); |
Line 690 sub Copy1 {
|
Line 690 sub Copy1 {
|
$request->print('<br /><a href="'.&url($fn).'">'.&mt('Cancel').'</a>'); |
$request->print('<br /><a href="'.&url($fn).'">'.&mt('Cancel').'</a>'); |
return; |
return; |
} |
} |
|
$request->print( |
$request->print( |
'<input type="hidden" name="newfilename"' |
'<input type="hidden" name="newfilename"' |
.' value="'.$newfilename.'" />' |
.' value="'.$newfilename.'" />' |
.'<p>' |
.'<p>' |
.&mt('Copy [_1] to [_2]?', |
.&mt('Copy [_1] to [_2]?', |
&display($fn), |
&display($fn), |
&display($newfilename)) |
&display($newfilename)) |
.'</p>' |
.'</p>' |
|
); |
); |
&CloseForm1($request, $fn); |
&CloseForm1($request, $fn); |
} else { |
} else { |
Line 859 sub NewFile1 {
|
Line 858 sub NewFile1 {
|
} |
} |
|
|
my @okexts = qw(xml html xhtml htm xhtm problem page sequence rights sty task library js css txt); |
my @okexts = qw(xml html xhtml htm xhtm problem page sequence rights sty task library js css txt); |
|
|
if (($extension eq '') || (!grep(/^\Q$extension\E/,@okexts))) { |
if (($extension eq '') || (!grep(/^\Q$extension\E/,@okexts))) { |
my $validexts = '.'.join(', .',@okexts); |
my $validexts = '.'.join(', .',@okexts); |
$request->print('<p class="LC_warning">'. |
$request->print('<p class="LC_warning">'. |
Line 1073 sub Rename2 {
|
Line 1071 sub Rename2 {
|
unlink $tmp2; |
unlink $tmp2; |
} |
} |
} else { |
} else { |
$request->print('<p>' |
$request->print( |
.&mt('No such file: [_1]', |
'<p>' |
&display($oldfile)) |
.&mt('No such file: [_1]', |
.'</p></form>' |
&display($oldfile)) |
|
.'</p></form>' |
); |
); |
return 0; |
return 0; |
} |
} |
Line 1450 function writeDone() {
|
Line 1449 function writeDone() {
|
$loaditem{'onload'} = "writeDone()"; |
$loaditem{'onload'} = "writeDone()"; |
} |
} |
|
|
|
# Breadcrumbs |
|
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
'text' => 'Construction Space', |
|
'href' => &Apache::loncommon::authorspace(), |
|
}); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
'text' => 'File Operation', |
|
'title' => 'Construction Space File Operation', |
|
'href' => '', |
|
}); |
|
|
$r->print(&Apache::loncommon::start_page('Construction Space File Operation', |
$r->print(&Apache::loncommon::start_page('Construction Space File Operation', |
$js, |
$js, |
{'add_entries' => \%loaditem,})); |
{'add_entries' => \%loaditem,}) |
|
.&Apache::lonhtmlcommon::breadcrumbs() |
|
.&Apache::loncommon::head_subbox( |
|
&Apache::loncommon::CSTR_pageheader()) |
|
); |
|
|
$r->print('<h3>'.&mt('Location').': '.&display($fn).'</h3>'); |
$r->print('<h3>'.&mt('Location').': '.&display($fn).'</h3>'); |
|
|
if (($uname ne $env{'user.name'}) || ($udom ne $env{'user.domain'})) { |
if (($uname ne $env{'user.name'}) || ($udom ne $env{'user.domain'})) { |