version 1.531.2.7, 2013/05/12 00:00:24
|
version 1.531.2.8, 2013/05/12 13:32:16
|
Line 1629 sub inserteditinfo {
|
Line 1629 sub inserteditinfo {
|
// ]]> |
// ]]> |
</script> |
</script> |
FULLPAGE |
FULLPAGE |
|
my $textareaclass; |
if ($filetype eq 'html') { |
if ($filetype eq 'html') { |
my $context; |
my $context; |
if ($env{'request.course.id'}) { |
if ($env{'request.course.id'}) { |
Line 1642 FULLPAGE
|
Line 1643 FULLPAGE
|
$uri,undef, |
$uri,undef, |
"/public/$cdom/$cnum/syllabus"). |
"/public/$cdom/$cnum/syllabus"). |
"\n"; |
"\n"; |
|
if (&Apache::lonhtmlcommon::htmlareabrowser()) { |
|
$textareaclass = 'class="LC_richDefaultOn"'; |
|
} |
} |
} |
} |
} |
unless ($context eq 'syllabus') { |
unless ($context eq 'syllabus') { |
Line 1663 FULLPAGE
|
Line 1667 FULLPAGE
|
} |
} |
|
|
my $titledisplay=&display_title(); |
my $titledisplay=&display_title(); |
my $textareaclass; |
|
my %lt=&Apache::lonlocal::texthash('st' => 'Save and Edit', |
my %lt=&Apache::lonlocal::texthash('st' => 'Save and Edit', |
'vi' => 'Save and View', |
'vi' => 'Save and View', |
'dv' => 'Discard Edits and View', |
'dv' => 'Discard Edits and View', |
Line 1679 FULLPAGE
|
Line 1682 FULLPAGE
|
$htmlerror='<span class="LC_error">'.$htmlerror.'</span>'; |
$htmlerror='<span class="LC_error">'.$htmlerror.'</span>'; |
} |
} |
if (&Apache::lonhtmlcommon::htmlareabrowser()) { |
if (&Apache::lonhtmlcommon::htmlareabrowser()) { |
$textareaclass = 'class="LC_richDefaultOff"'; |
unless ($textareaclass) { |
|
$textareaclass = 'class="LC_richDefaultOff"'; |
|
} |
} |
} |
} |
} |
my $editfooter=(<<ENDFOOTER); |
my $editfooter=(<<ENDFOOTER); |
Line 1785 sub handler {
|
Line 1790 sub handler {
|
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
['todocs']); |
['todocs']); |
} |
} |
|
my ($cdom,$cnum); |
|
if ($env{'request.course.id'}) { |
|
$cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
|
$cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; |
|
if ($filetype eq 'html') { |
|
if ($request->uri =~ m{^\Q/uploaded/$cdom/$cnum/portfolio/syllabus/\E.+$}) { |
|
if (&Apache::lonnet::allowed('mdc',$env{'request.course.id'})) { |
|
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
|
['editmode']); |
|
} |
|
} |
|
} |
|
} |
if ($filetype eq 'sty') { |
if ($filetype eq 'sty') { |
$breadcrumbtext = 'Style File Editor'; |
$breadcrumbtext = 'Style File Editor'; |
} elsif ($filetype eq 'js') { |
} elsif ($filetype eq 'js') { |
Line 1914 ENDNOTFOUND
|
Line 1932 ENDNOTFOUND
|
$displayfile=$request->uri; |
$displayfile=$request->uri; |
if ($request->uri =~ m{^/uploaded/}) { |
if ($request->uri =~ m{^/uploaded/}) { |
if ($env{'request.course.id'}) { |
if ($env{'request.course.id'}) { |
my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
|
my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; |
|
if ($request->uri =~ m{^\Q/uploaded/$cdom/$cnum/supplemental/\E}) { |
if ($request->uri =~ m{^\Q/uploaded/$cdom/$cnum/supplemental/\E}) { |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
['folderpath','title']); |
['folderpath','title']); |
} elsif ($request->uri =~ m{^\Q/uploaded/$cdom/$cnum/portfolio/syllabus/\E(.+)$}) { |
} elsif ($request->uri =~ m{^\Q/uploaded/$cdom/$cnum/portfolio/syllabus/\E(.+)$}) { |
$displayfile = &mt('Syllabus file: [_1]',$1); |
my $filename = $1; |
|
if ($1 eq 'loncapa.html') { |
|
$displayfile = &mt('Syllabus (minimal template)'); |
|
} else { |
|
$displayfile = &mt('Syllabus file: [_1]',$1); |
|
} |
$itemtitle = &mt('Syllabus'); |
$itemtitle = &mt('Syllabus'); |
} |
} |
} |
} |