--- loncom/interface/londocs.pm 2009/08/28 19:43:16 1.384
+++ loncom/interface/londocs.pm 2009/10/04 09:41:12 1.387
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.384 2009/08/28 19:43:16 raeburn Exp $
+# $Id: londocs.pm,v 1.387 2009/10/04 09:41:12 tempelho Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2744,11 +2744,19 @@ sub create_form_ul {
.$script."\n"
.'// ]]>'."\n"
.''."\n";
- my $brcrum = [{href=>"/adm/createuser",text=>"$type Documents"}];
+
+ # Breadcrumbs
+ &Apache::lonhtmlcommon::clear_breadcrumbs();
+ &Apache::lonhtmlcommon::add_breadcrumb({
+ href=>"/adm/createuser",text=>"$type Documents"});
+
$r->print(&Apache::loncommon::start_page("$type Documents", $script,
- {'force_register' => $showdoc,
- 'bread_crumbs' => $brcrum}).
- &Apache::loncommon::help_open_menu('','',273,'RAT'));
+ {'force_register' => $showdoc,})
+ .&Apache::loncommon::help_open_menu('','',273,'RAT')
+ .&Apache::lonhtmlcommon::breadcrumbs(
+ 'Editing the Table of Contents for your '.$type,
+ 'Docs_Adding_Course_Doc')
+ );
my %allfiles = ();
my %codebase = ();
@@ -2892,7 +2900,7 @@ FIUP
CHBO
my @fileuploada = (
- { pic01 => "$lt{'upld'} $help{'Uploading_From_Harddrive'}" },
+ { '
' => " $help{'Uploading_From_Harddrive'}" },
);
my $fileuploadform=(<
@@ -2918,9 +2926,9 @@ FUFORM
SEDFFORM
my @simpleeditdefaultforma = (
- { pic03 => "$uploadtag$lt{'srch'}" },
- { pic04 => "$lt{'impo'}$help{'Importing_LON-CAPA_Resource'}" },
- { pic05 => "$lt{'book'}" },
+ { '
' => "$uploadtag$lt{'srch'}" },
+ { '
' => "$lt{'impo'}$help{'Importing_LON-CAPA_Resource'}" },
+ { '
' => "$lt{'book'}" },
);
$simpleeditdefaultform .= create_form_ul(create_list_elements(@simpleeditdefaultforma));
$simpleeditdefaultform .=(<
NFFORM
my @newfolderforma= (
- { pic02 => "$newfolderform" }
+ { '
' => "$newfolderform" }
);
@@ -3203,37 +3211,37 @@ NSYLFORM
NGFFORM
@specialdocumentsforma=(
- {pic06=>$newpageform},
- {pic07=>$newsylform},
- {pic08=>$newgroupfileform},
+ {'
'=>$newpageform},
+ {'
'=>$newsylform},
+ {'
'=>$newgroupfileform},
);
}
- push @specialdocumentsforma, ({pic09=>$newnavform},
- {pic10=>$newsmppageform},
- {pic11=>$newsmpproblemform},
- {pic12=>$newdropboxform},
- {pic13=>$newexuploadform},
- {pic14=>$newbulform},
- {pic15=>$newaboutmeform},
- {pic16=>$newaboutsomeoneform},
- {pic17=>$newrosterform},);
+ push @specialdocumentsforma, ({'
'=>$newnavform},
+ {'
'=>$newsmppageform},
+ {'
'=>$newsmpproblemform},
+ {'
'=>$newdropboxform},
+ {'
'=>$newexuploadform},
+ {'
'=>$newbulform},
+ {'
'=>$newaboutmeform},
+ {'
'=>$newaboutsomeoneform},
+ {'
'=>$newrosterform},);
$specialdocumentsform = create_form_ul(create_list_elements(@specialdocumentsforma));
if($env{'form.pagepath'}) {
@specialdocumentsforma=(
- {pic32=>$newsmpproblemform},
- {pic33=>$newexuploadform}
+ {'
'=>$newsmpproblemform},
+ {'
'=>$newexuploadform}
);
$specialdocumentsform= create_form_ul(create_list_elements(@specialdocumentsforma));
}
my @tools = (
- {pic18=>$extresourcesform},
- {pic19=>$imspform},
- {pic20=>$recoverform},
+ {'
'=>$extresourcesform},
+ {'
'=>$imspform},
+ {'
'=>$recoverform},
);
my %orderhash = (
@@ -3256,8 +3264,6 @@ $r->print(&generate_edit_table($tid,$var
}
&changewarning($r,'');
- $r->print(&Apache::loncommon::help_open_topic('Docs_Adding_Course_Doc',
- &mt('Editing the Table of Contents for your '.$type)));
$r->print('');
}
if ($env{'form.pagepath'}) {
@@ -3288,7 +3294,7 @@ $r->print('');
my $path = &HTML::Entities::encode($env{'form.folderpath'},'<>&"');
my @supupdocform = (
- {pic27=>"$lt{'upld'}$help{'Uploading_From_Harddrive'}"},
+ {'
'=>"$lt{'upld'}$help{'Uploading_From_Harddrive'}"},
);
my $supupdocform=(<
@@ -3318,7 +3324,7 @@ SUPDOCFORM
SNFFORM
- my @supnewfolderforma = ({pic28=>$supnewfolderform});
+ my @supnewfolderforma = ({'
'=>$supnewfolderform});
$supnewfolderform = create_form_ul(create_list_elements(@supnewfolderforma));
@@ -3355,9 +3361,9 @@ SNAMFORM
my @specialdocs = (
- {pic29=>$supnewextform},
- {pic30=>$supnewsylform},
- {pic31=>$supnewaboutmeform},
+ {'
'=>$supnewextform},
+ {'
'=>$supnewsylform},
+ {'
'=>$supnewaboutmeform},
);
my %suporderhash = (
'ee' => ['Upload Document',$supupdocform.' '.$supnewfolderform],
@@ -3415,15 +3421,15 @@ sub generate_admin_options {
my $dumpbut=&dumpbutton();
my $exportbut=&exportbutton();
my @list = (
- {pic21=>"$lt{'vc'}$help{'Verify_Content'}"},
- {pic22=>"$lt{'cv'}$help{'Check_Resource_Versions'}"},
+ {'
'=>"$lt{'vc'}$help{'Verify_Content'}"},
+ {'
'=>"$lt{'cv'}$help{'Check_Resource_Versions'}"},
);
if($dumpbut ne ''){
- push @list, {pic23=>$dumpbut};
+ push @list, {'
'=>$dumpbut};
}
- push @list, ({pic24=>$exportbut},
- {pic25=>"$lt{'ls'}"},
- {pic26=>"$lt{'sl'}"},
+ push @list, ({'
'=>$exportbut},
+ {'
'=>"$lt{'ls'}"},
+ {'
'=>"$lt{'sl'}"},
);
return '';