version 1.410, 2009/06/02 13:10:29
|
version 1.414, 2010/01/30 21:46:06
|
Line 549 sub start_body {
|
Line 549 sub start_body {
|
'text' => 'HTML Editor', |
'text' => 'HTML Editor', |
'href' => '', |
'href' => '', |
}); |
}); |
|
# breadcrumbs (and tools) will be created |
|
# in start_page->bodytag->innerregister |
} else { |
} else { |
# FIXME Where are we? |
# FIXME Where are we? |
} |
} |
Line 561 sub start_body {
|
Line 563 sub start_body {
|
# 'no_title' => 1, |
# 'no_title' => 1, |
'force_register' => 1}); |
'force_register' => 1}); |
|
|
$currentstring .= &Apache::lonhtmlcommon::breadcrumbs(); |
|
|
|
my $header = ''; |
my $header = ''; |
|
if ($env{'request.state'} ne 'published' && |
|
$env{'request.state'} ne 'construct') { |
|
$header=&Apache::lonmenu::constspaceform(); |
|
} |
if ($env{'request.state'} ne 'published') { |
if ($env{'request.state'} ne 'published') { |
$header=&Apache::lonmenu::constspaceform() |
$header.=&Apache::londefdef::edit_controls(); |
.&Apache::londefdef::edit_controls(); |
|
} |
} |
if ($env{'request.state'} eq 'construct') { |
if ($env{'request.state'} eq 'construct') { |
$currentstring.=&Apache::loncommon::head_subbox( |
$currentstring.=&Apache::loncommon::head_subbox( |
&Apache::loncommon::CSTR_pageheader() |
&Apache::loncommon::CSTR_pageheader() |
.$header); |
.$header); |
|
} elsif ($env{'request.state'} eq 'edit') { |
|
$currentstring.=&Apache::loncommon::head_subbox($header); |
} |
} |
$currentstring.=&Apache::lonxml::message_location(); |
$currentstring.=&Apache::lonxml::message_location(); |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
Line 594 sub edit_controls {
|
Line 599 sub edit_controls {
|
</div>'; |
</div>'; |
} |
} |
$result .= ' |
$result .= ' |
<div><input type="submit" name="editmode" accesskey="e" value="'.&mt('Edit').'" /></div> |
<div><input type="submit" name="editmode" accesskey="e" value="'.&mt('Edit').'" />'; |
|
if (($env{'request.course.id'}) && ($env{'form.forceedit'})) { |
|
$result .= (' ' x 3).'<input type="button" value="'.&mt('Course View').'" onclick="javascript:location.href=currentURL" />'; |
|
} |
|
$result .= '</div> |
</div> |
</div> |
</form> |
</form> |
'; |
'; |
Line 4806 sub is_inside_of {
|
Line 4815 sub is_inside_of {
|
# |
# |
# This sub provides the typical LaTeX prefix matter for tex output: |
# This sub provides the typical LaTeX prefix matter for tex output: |
# |
# |
sub latex_header |
sub latex_header { |
{ |
|
my ($mode) = @_; |
my ($mode) = @_; |
my $currentstring = ''; |
my $currentstring = ''; |
|
|