');
# --------------------------------------------------------- Standard documents
my $savefolderpath;
my $active = 'style="display: none;"';
@@ -2913,8 +2960,6 @@ HIDDENFORM
$active = 'style="display: block;"';
}
$r->print('
');
- $r->print(&Apache::loncommon::help_open_topic('Docs_Adding_Course_Doc',
- &mt('Editing the Table of Contents for your '.$type)));
my $folder=$env{'form.folder'};
if ($folder eq '' || $folder=~/^supplemental/) {
$folder='default';
@@ -2925,7 +2970,12 @@ HIDDENFORM
}
my $postexec='';
if ($folder eq 'default') {
- $r->print('');
+ $r->print(''."\n"
+ );
} else {
#$postexec='self.close();';
}
@@ -2943,19 +2993,20 @@ HIDDENFORM
my $recoverform=(<
-
+
RFORM
my $imspform=(<
-
+
IMSPFORM
my $newnavform=(<
+
$uploadtag
@@ -2967,22 +3018,24 @@ IMSPFORM
NNFORM
my $newsmppageform=(<
+
$uploadtag
$help{'Simple Page'}
+ onclick="javascript:makesmppage();" /> $help{'Simple Page'}
NSPFORM
my $newsmpproblemform=(<
+
$uploadtag
$help{'Simple Problem'}
+ onclick="javascript:makesmpproblem();" />$help{'Simple Problem'}
@@ -2990,22 +3043,24 @@ NSPROBFORM
my $newdropboxform=(<
+
$uploadtag
+ onclick="javascript:makedropbox();" />
NDBFORM
my $newexuploadform=(<
+
$uploadtag
+ onclick="javascript:makeexamupload();" />
$help{'Score_Upload_Form'}
@@ -3013,11 +3068,12 @@ NEXUFORM
my $newbulform=(<
+
$uploadtag
+ onclick="javascript:makebulboard();" />
$help{'Bulletin Board'}
@@ -3025,6 +3081,7 @@ NBFORM
my $newaboutmeform=(<
+
$uploadtag
@@ -3037,11 +3094,12 @@ NAMFORM
my $newaboutsomeoneform=(<
+
$uploadtag
+ onclick="javascript:makeabout();" />
NASOFORM
@@ -3049,6 +3107,7 @@ NASOFORM
my $newrosterform=(<
+
$uploadtag
@@ -3069,9 +3128,10 @@ my $newfolderform;
@@ -3081,9 +3141,10 @@ NPFORM
@@ -3091,6 +3152,7 @@ NFFORM
my $newsylform=(<
+
$uploadtag
@@ -3100,9 +3162,10 @@ NFFORM
NSYLFORM
-
+
my $newgroupfileform=(<
+
$uploadtag
@@ -3125,11 +3188,11 @@ if($env{'form.pagepath'}) {
}
my %orderhash = (
- 'aa' => ['New Document',$fileuploadform.'
'.$newfolderform],
- 'bb' => ['Published Documents',$simpleeditdefaultform],
+ 'aa' => ['Upload Document',$fileuploadform.'
'.$newfolderform],
+ 'bb' => ['Published Resources',$simpleeditdefaultform],
'cc' => ['Special Documents',$specialdocumentsform],
'dd' => ['Tools',$extresourcesform.'
'.$imspform.'
'.$recoverform.'
'.&generate_admin_options($containertag,$uploadtag,\%help,\%env)],
- 'zz' => ['Hide all Options'],
+ 'zz' => ['Hide'],
);
my $tid='1';
my $varcd = 'Main Course Documents';
@@ -3144,6 +3207,8 @@ $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'}) {
}
@@ -3152,7 +3217,7 @@ $r->print('
');
if($activeClass == 1){
$active = 'style="display: block;"';
}
- $r->print('
');
+ $r->print('
');
my $folder=$env{'form.folder'};
unless ($folder=~/^supplemental/) {
$folder='supplemental';
@@ -3174,6 +3239,7 @@ $r->print('
');
my $supupdocform=(<
+
$fileupload
@@ -3196,11 +3262,12 @@ SUPDOCFORM
my $supnewfolderform=(<
+
$help{'Adding_Folders'}
@@ -3209,11 +3276,12 @@ SNFFORM
my $supnewextform=(<
+
$help{'Adding_External_Resource'}
@@ -3221,6 +3289,7 @@ SNEFORM
my $supnewsylform=(<
+
@@ -3233,6 +3302,7 @@ SNSFORM
my $supnewaboutmeform=(<
+
@@ -3246,9 +3316,9 @@ SNAMFORM
my %suporderhash = (
- 'ee' => ['New Document',$supupdocform.'
'.$supnewfolderform],
+ 'ee' => ['Upload Document',$supupdocform.'
'.$supnewfolderform],
'ff' => ['Special Documents',$supnewextform.'
'.$supnewsylform.'
'.$supnewaboutmeform],
- 'zz' => ['Hide all Options'],
+ 'zz' => ['Hide'],
);
my $tid='2';
@@ -3260,7 +3330,7 @@ my $error = &editor($r,$coursenum,$cours
$r->print(''.$error.'
');
}
$r->print('