version 1.15, 2024/04/14 17:12:28
|
version 1.17, 2024/04/19 03:48:23
|
Line 60 sub handler {
|
Line 60 sub handler {
|
$is_supp = 1; |
$is_supp = 1; |
$supp_path = &escape(&HTML::Entities::decode($Apache::lonnet::env{'form.folderpath'})); |
$supp_path = &escape(&HTML::Entities::decode($Apache::lonnet::env{'form.folderpath'})); |
$supp_title = &escape(&HTML::Entities::decode($Apache::lonnet::env{'form.title'})); |
$supp_title = &escape(&HTML::Entities::decode($Apache::lonnet::env{'form.title'})); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
|
} |
} |
$is_course_doc = 1; |
$is_course_doc = 1; |
$Apache::lonnet::env{'form.forceedit'} = 1; |
$Apache::lonnet::env{'form.forceedit'} = 1; |
Line 85 sub handler {
|
Line 84 sub handler {
|
if ($is_not_assess) { |
if ($is_not_assess) { |
delete($editors{'xml'}); |
delete($editors{'xml'}); |
$editors{'edit'} = 1; |
$editors{'edit'} = 1; |
|
$Apache::lonnet::env{'form.editmode'} = 'daxe'; |
|
} else { |
|
$Apache::lonnet::env{'form.problemmode'} = 'daxe'; |
} |
} |
|
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
my %lt = &Apache::lonlocal::texthash( |
my %lt = &Apache::lonlocal::texthash( |
'noif' => 'No iframe support.', |
'noif' => 'No iframe support.', |
'show' => 'Show content in pop-up window', |
'show' => 'Show content in pop-up window', |
Line 139 sub handler {
|
Line 142 sub handler {
|
$editheader .= ' | <span class="LC_nobreak">'.$other.':</span> '. |
$editheader .= ' | <span class="LC_nobreak">'.$other.':</span> '. |
'<span class="LC_nobreak">'; |
'<span class="LC_nobreak">'; |
if ($is_not_assess) { |
if ($is_not_assess) { |
$editheader .= '<input type="hidden" name="editmode" value="" />'."\n". |
$editheader .= '<input type="hidden" name="editmode" value="daxe" />'."\n". |
'<input type="button" name="editordefault" value="'.$lt{'text'}. |
'<input type="button" name="editordefault" value="'.$lt{'text'}. |
'" onclick="javascript:seteditmode(this.form,'."'edit'".');" />'."\n"; |
'" onclick="javascript:seteditmode(this.form,'."'edit'".');" />'."\n"; |
} else { |
} else { |