');
-# ''.&mt('Main Course Documents'). -# ($allowed?' '.$help{'Main_Course_Documents'}:'').''); + my $active = 'style="display: none;"'; + if($activeClass == 0){ + $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 eq 'supplemental') {
$folder='default';
@@ -2860,11 +2930,6 @@ ENDCOURSEVERIFY
#$postexec='self.close();';
}
$hadchanges=0;
- my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,
- $upload_output,$type);
- if ($error) {
- $r->print(' '.$error.' '); - } if ($hadchanges) { &mark_hash_old(); } @@ -2878,230 +2943,231 @@ ENDCOURSEVERIFY $container='page'; } my $readfile='/uploaded/'.$coursedom.'/'.$coursenum.'/'.$folder.'.'.$container; - $r->print(<$lt{'uplm'} |
-$lt{'impp'} |
-$lt{'spec'} |
-
-$lt{'file'}: |
-- -
-
- | - -ENDFORM - unless ($env{'form.pagepath'}) { - $r->print(< -ENDFORM - } - $r->print(' ');
+
+
+
+ my $recoverform=(< | - - - - - - - - - - - -ENDFORM + + my $newpageform=(< $newpageform + $newsylform + $newnavform + $newsmppageform + $newsmpproblemform + $newdropboxform + $newexuploadform + $newbulform + $newaboutmeform + $newaboutsomeoneform + $newgroupfileform + $newrosterform +SPDOFORM + + +my %orderhash = ( + 'aa' => 'New Document', + 'bb' => 'Published Documents', + 'cc' => 'Special Documents', + 'dd' => 'More Options', + 'zz' => 'Hide all Options', + ); +my %namehash = ( + 'New Document' => $fileuploadform, + 'Published Documents' => $simpleeditdefaultform, + 'Special Documents' => $specialdocumentsform, + 'More Options' => $extresourcesform.' '.$imspform.' '.$recoverform, + ); +my $tid='1'; +my $content='content'; +my $navigation='navigation'; +my $varcd = 'Main Course Documents'; +$r->print(&generate_edit_table($tid,$content,$navigation,$varcd,\%namehash,\%orderhash)); +my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$type); + if ($error) { + $r->print(' '.$error.' '); } +$r->print(''); + } if ($env{'form.pagepath'}) { - $r->print(<-ENDBLOCK } - $r->print(' |
'.&mt('Supplemental Course Documents'). -# ($allowed?' '.$help{'Supplemental'}:'').'
'); + my $active = 'style="display: none;"'; + if($activeClass == 1){ + $active = 'style="display: block;"'; + } + $r->print('');
+ &changewarning($r);
my $folder=$env{'form.folder'};
unless ($folder=~/^supplemental/) {
$folder='supplemental';
@@ -3111,87 +3177,114 @@ ENDBLOCK
$env{'form.folderpath'} = 'supplemental&'.
&escape(&mt('Supplemental '.$type.' Documents'));
}
- my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$type);
- if ($error) {
- $r->print('
-$lt{'upls'}
-$lt{'spec'}
-
-
-
-
-
-
-
-
-
-
-
'.$error.'
'); - } if ($allowed) { my $folderseq= '/uploaded/'.$coursedom.'/'.$coursenum.'/supplemental_'.time. '.sequence'; my $path = &HTML::Entities::encode($env{'form.folderpath'},'<>&"'); - $r->print(<-
-
-
+
+ + $checkbox + +
+ $lt{'comment'}:
+ +
+ + + + + $help{'Uploading_From_Harddrive'} + + +SUPDOCFORM + + my $supnewfolderform=(<
'.$supnewextform.'
'.$supnewsylform.'
'.$supnewaboutmeform, + ); + +my $tid='2'; +my $content='content'; +my $navigation='navigation'; +my $varscd = 'Supplemental Course Documents'; + +$r->print(&generate_edit_table($tid,$content,$navigation,$varscd,\%supnamehash,\%suporderhash)); +my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$type); + if ($error) { + $r->print('
'.$error.'
'); } - } - $r->print(''); +$r->print('