version 1.95, 2009/05/20 13:55:40
|
version 1.98, 2009/12/04 11:13:58
|
Line 78 sub buttons {
|
Line 78 sub buttons {
|
my $adv=shift; |
my $adv=shift; |
my $output='<form method="post">'; |
my $output='<form method="post">'; |
if ($adv==1) { |
if ($adv==1) { |
$output.='<input type="submit" name="forceadv" value="'.&mt('Edit').'" />'. |
$output.= |
&Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation'); |
'<input type="submit" name="forceadv"' |
|
.' value="'.&mt('Edit').'" />' |
|
.&Apache::loncommon::help_open_topic( |
|
'Sequence_Advanced_Editor_Creation'); |
} else { |
} else { |
unless ($adv==2) { |
unless ($adv==2) { |
$output.='<input type="submit" name="forcesmp" value="'.&mt('Simple Edit').'" />'. |
$output.= |
&Apache::loncommon::help_open_topic('Sequence_Simple_Editor_Creation'); |
'<input type="submit" name="forcesmp"' |
|
.' value="'.&mt('Simple Edit').'" />' |
|
.&Apache::loncommon::help_open_topic( |
|
'Sequence_Simple_Editor_Creation') |
|
.' '; |
} |
} |
$output.='<input type="submit" name="forceadv" value="'.&mt('Advanced Edit').'" />'. |
$output.= |
&Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation'); |
'<input type="submit" name="forceadv"' |
|
.' value="'.&mt('Advanced Edit').'" />' |
|
.&Apache::loncommon::help_open_topic( |
|
'Sequence_Advanced_Editor_Creation'); |
} |
} |
return $output.'</form>'; |
return $output.'</form>'; |
} |
} |
Line 540 sub smpedt {
|
Line 550 sub smpedt {
|
</script> |
</script> |
ENDJS |
ENDJS |
|
|
|
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
text => 'Construction Space', |
|
href => &Apache::loncommon::authorspace(), |
|
faq => 6, |
|
bug => 'RAT', |
|
help => 'Sequence_Simple_Editor_Creation',}); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
text => 'RAT', |
|
title => 'Resource Assembly Tool', |
|
href => '',}); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
text => 'Editor', |
|
title => 'Simple Editor', |
|
href => '',}); |
|
|
|
# Breadcrumbs are included by &start_page |
my $start_page = &Apache::loncommon::start_page('Construction Space',$js) |
my $start_page = &Apache::loncommon::start_page('Construction Space',$js) |
.&Apache::lonhtmlcommon::breadcrumbs(# FIXME add breadcrumbs |
|
&Apache::loncommon::help_open_menu('Sequence_Simple_Editor_Creation', |
|
'Sequence_Simple_Editor_Creation', |
|
6,'RAT')) |
|
.&Apache::loncommon::head_subbox( |
.&Apache::loncommon::head_subbox( |
&Apache::loncommon::CSTR_pageheader() |
&Apache::loncommon::CSTR_pageheader() |
.&buttons(2)); |
.&buttons(2)); |
Line 627 ENDSMPHEAD
|
Line 650 ENDSMPHEAD
|
sub nodir { |
sub nodir { |
my ($r,$dir)=@_; |
my ($r,$dir)=@_; |
$dir=~s{^/home/$LONCAPA::username_re/public_html}{}; |
$dir=~s{^/home/$LONCAPA::username_re/public_html}{}; |
$r->print(&Apache::loncommon::start_page('Construction Space',undef) |
my $brcrum = [{'href' => &Apache::loncommon::authorspace(), |
.&Apache::lonhtmlcommon::breadcrumbs() # FIXME add breadcrumbs |
'text' => 'Construction Space'}]; |
|
# {'href' => '', |
|
# 'text' => 'No such directory'}]; |
|
$r->print(&Apache::loncommon::start_page('Construction Space', |
|
undef, |
|
{'bread_crumbs' => $brcrum,}) |
.&Apache::loncommon::head_subbox( |
.&Apache::loncommon::head_subbox( |
&Apache::loncommon::CSTR_pageheader()) |
&Apache::loncommon::CSTR_pageheader()) |
.'<p class="LC_error">' |
.'<p class="LC_error">' |
Line 642 sub nodir {
|
Line 670 sub nodir {
|
|
|
sub viewmap { |
sub viewmap { |
my ($r,$url,$adv,$errtext)=@_; |
my ($r,$url,$adv,$errtext)=@_; |
|
|
|
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
text => 'Construction Space', |
|
href => &Apache::loncommon::authorspace(), |
|
faq => 6, |
|
bug => 'RAT', |
|
help => 'Sequence_Simple_Editor_Creation',}); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
text => 'RAT', |
|
title => 'Resource Assembly Tool', |
|
href => '',}); |
|
|
|
# Breadcrumbs are included by &start_page |
$r->print(&Apache::loncommon::start_page('Edit Content of a Map') |
$r->print(&Apache::loncommon::start_page('Edit Content of a Map') |
.&Apache::lonhtmlcommon::breadcrumbs(# FIXME add breadcrumbs |
|
&Apache::loncommon::help_open_menu('','',6,'RAT')) # FIXME help broken? |
|
.&Apache::loncommon::head_subbox( |
.&Apache::loncommon::head_subbox( |
&Apache::loncommon::CSTR_pageheader() |
&Apache::loncommon::CSTR_pageheader() |
.&buttons($adv)) |
.&buttons($adv)) |
Line 657 sub viewmap {
|
Line 697 sub viewmap {
|
); |
); |
} |
} |
my $idx=0; |
my $idx=0; |
$r->print('<h1>'.$url.'</h1>'); |
$r->print('<p><span class="LC_filename">'.$url.'</span></p>'); |
if ($adv) { |
if ($adv) { |
$r->print('<p class="LC_warning">' |
$r->print('<p class="LC_warning">' |
.&mt('Map contents are not shown in order.') |
.&mt('Map contents are not shown in order.') |